Files
gh-macroman5-claude-code-wo…/.claude/skills/context-packer/SKILL.md
2025-11-30 08:38:46 +08:00

35 lines
867 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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 whats needed for the task.
## Behavior
1. Produce a 1020 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
2. Include ≤1 short code window only if critical.
## Guardrails
- Never paste large files; link paths/lines instead.
- Prefer bullets over prose.
## Integration
- `UserPromptSubmit` enrichment; before sub-agent calls.
## Example Prompt
> Pack context to implement auth middleware with minimal tokens.