context-packer
构建一个紧凑、高信号的上下文摘要(文件、符号、最近的提交),而不是粘贴大段代码块
📖 中文导读:构建一个紧凑、高信号的上下文摘要(文件、符号、最近的提交),而不是粘贴大段代码块 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: context-packer description: Build a compact, high-signal context brief (files, symbols, recent commits) instead of pasting large code blocks version: 0.1.0 tags: [context, tokens] triggers: - context - summarize repo - what files matter
Context Packer
Purpose
Reduce token usage by summarizing only what’s needed for the task.
Behavior
- Produce a 10–20 line brief:
- File map (key paths)
- Key symbols/functions/classes
- Last 3 relevant commits (subject only)
- Pointers to exact files/lines if code is needed
- Include ≤1 short code window only if critical.
Guardrails
- Never paste large files; link paths/lines instead.
- Prefer bullets over prose.
Integration
UserPromptSubmitenrichment; before sub-agent calls.
Example Prompt
Pack context to implement auth middleware with minimal tokens.