# Context Packer

> Build a compact, high-signal context brief (files, symbols, recent commits) instead of pasting large code blocks

- Skill: `majiayu000/context-packer` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/context-packer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/context-packer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/context-packer

---


# Context Packer

## Purpose
Reduce token usage by summarizing only what’s needed for the task.

## Behavior
1. 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
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.


