Contextpack — AI skill for Claude Code
Compile a repository into a lean, reusable context bundle for AI agents (Claude, GPT, Codex, Cursor): architecture, locked decisions, recent changes, current milestone - and warn when a proposal viola.
How to install Contextpack
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open beernathan87/contextpack and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Contextpack does
Compile a repository into a lean, reusable context bundle for AI agents (Claude, GPT, Codex, Cursor): architecture, locked decisions, recent changes, current milestone - and warn when a proposal violates a locked decision.
Alternatives in AI
- Contributing To Claude Skills Library — Thank you for your interest in contributing to the Claude Skills Library 5.3k ★
- Claude Code Sourcemap Learning Notebook — Reverse-engineering Claude Code's 512K+ lines of TypeScript — architecture, design decisions, and 11 transfera 160 ★
- Bmad Bmm Create Architecture — Create architecture solution design decisions for AI agent consistency 98 ★
README
contextpack
Compile a repository into a lean, reusable context bundle for AI agents - Claude, GPT, Codex, Cursor, anything that reads a file. It preserves **decisions and constraints**, not just file summaries, and it warns when a proposal violates a locked decision.
npx contextpack . # writes CONTEXTPACK.md
npx contextpack . --for all # + CLAUDE.md, AGENTS.md, .cursor/rules/contextpack.mdc, contextpack.gpt.txt, contextpack.json
npx contextpack . --budget 6k # target ~6k estimated tokens (low-value sections trimmed first)
npx contextpack check plan.md # does this plan violate a locked decision? exit 2 if so
git diff | npx contextpack check . -
npx contextpack check . --staged # pre-commit: check staged changes
Zero dependencies, Node 20+. Nothing leaves your machine.
What goes in the bundle
- Identity - name, README's first paragraph, branch.
- Stack - runtime, languages, frameworks (from manifests), entry points, tests, scripts, Docker.
- Locked decisions - the part agents keep re-litigating. Rendered as rules with rationale, scope, and "do not introduce" lists.
- Current milestone / open work - unchecked boxes from
TODO.md/ROADMAP.md/CURRENT_TASK.md/.agent/*.md, plusTODO/FIXMEmarkers in code. - Architecture - directory layout with counts, most-imported local modules (JS/TS/Python import graph), largest files.
- Recent changes - last commits with touched files, hot files of the last 14 days, uncommitted work.
- How to work here - conventions derived from the above, including the test command.
Sections have priorities; `--budget` drops complete low-priority sections first. Identity and locked decisions are always retained, even if they exceed the budget. Tokens are estimated as JavaScript string length / 4 (rounded up), not counted with a model tokenizer; export wrappers and structured JSON are outside this budget.
Recording decisions
Any of these are pi
Related Skills
Project Recap
Generate a visual HTML project recap — rebuild mental model of a project's current state, recent decisions, an
Concept Update
Sweep recent changes and update the LLM-Wiki repo's concept docs, architecture diagram, AGENTS.md, and memory.
Sovereign AI SDK
Agent runtime for Sovereign AI. TypeScript on Bun. Claude-Code-core architecture with a Hermes-pattern learnin
Multipov Code
Run a multi-agent code review on $ARGUMENTS (default: current branch changes) via the multipov.ai MCP server.
Multipov Performance
Run a multi-agent performance-focused code review on $ARGUMENTS (default: current branch changes) via the mult
Architecture AI Workflows
AI assistants can support architectural work by helping analyse trade-offs, document decisions, explore design
Related Agents
Gpt5 Cursor
Use this agent when you need to use gpt-5 for deep research, second opinion or fixing a bug. Pass all the cont
Flutter Template Refiner
Expert in iterative application-to-template refinement for Flutter applications. Use when stripping functional
Biz Model
Business analysis and business model proposal. Use to define a business model, create a Lean Canvas, or evalua