codebase-context
Use when the user asks about codebase structure, architecture, what a project does, how components relate, or needs project-wide context to answer a question.
by Barnett-Studios★ 36 GitHub stars
Install codebase-context in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Codebase Context via cxpak
When this skill is triggered, gather structured codebase context using cxpak before answering the user's question.
Steps
Ask for token budget. Ask the user: "How large a context budget should I use? (default: 50k tokens)" If they don't specify, use
50k.Resolve the cxpak binary. Run the ensure-cxpak script to get the binary path:
CXPAK="$("${CLAUDE_PLUGIN_ROOT}/lib/ensure-cxpak")"Run cxpak overview. Execute:
"$CXPAK" overview --tokens <budget> --format markdown .Where
<budget>is what the user specified (e.g.,50k,100k,20k).Use the output. The command outputs a structured codebase summary including:
- Project metadata (file counts, languages, tokens)
- Directory tree
- Module/component map with public symbols
- Dependency graph (import relationships)
- Key files (README, configs, manifests)
- Function/type signatures
- Git context (recent commits, churn)
Answer the user's question using the cxpak output as your primary source of codebase understanding.
Mention the source. Tell the user that cxpak provided the structured codebase context, e.g., "Based on the cxpak overview of this repo..."
Important
- Always use
--format markdown— it's native to your context window. - If cxpak fails (not a git repo, no files found), fall back to standard file reading.
- The overview may include
.cxpak/detail file pointers if the repo exceeds the budget — you can read those for deeper context.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the codebase-context skill do?
Use when the user asks about codebase structure, architecture, what a project does, how components relate, or needs project-wide context to answer a question.
How do I install the codebase-context skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the codebase-context skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…