From tac
Audits Claude Code context: memory files, MCP servers, commands, hooks. Scores health and suggests token optimizations for overloaded windows or sluggish agents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tac:context-auditThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit a codebase's context engineering health and identify optimization opportunities.
Audit a codebase's context engineering health and identify optimization opportunities.
A focused agent is a performant agent. This skill helps you understand what's consuming your context window and where to apply the R&D framework.
Scan for CLAUDE.md and related memory files:
Check:
- Root CLAUDE.md size (target: <2KB)
- Number of imports
- Per-directory CLAUDE.md files
- Total memory file tokens
Score memory health:
| Size | Score | Assessment |
|---|---|---|
| <1KB | Excellent | Minimal and focused |
| 1-2KB | Good | Within target range |
| 2-5KB | Needs Review | Growing, audit content |
| >5KB | Action Required | Bloated, needs R&D |
Check MCP configurations:
Check:
- .mcp.json existence
- Number of MCP servers configured
- Per-server token estimate (2-5% each)
- Active vs unused servers
Score MCP health:
| Servers | Score | Assessment |
|---|---|---|
| 0 | Excellent | No MCP bloat |
| 1-2 | Good | Targeted usage |
| 3-5 | Review | May be over-provisioned |
| >5 | Action Required | Likely consuming 15%+ |
Review .claude/commands/:
Check:
- Number of commands
- Command complexity (simple vs complex)
- Priming commands present?
- Task-type coverage
Score command health:
| Commands | Score | Assessment |
|---|---|---|
| Has priming | Excellent | Dynamic context loading |
| No priming | Needs Attention | Relying on static memory |
Check for context-consuming hooks:
Check:
- Number of hooks
- Hook event types
- Potential context injection
Calculate overall context engineering score:
| Component | Weight | Max Points |
|---|---|---|
| Memory Files | 30% | 30 |
| MCP Configuration | 25% | 25 |
| Command Infrastructure | 25% | 25 |
| Context Patterns | 20% | 20 |
{
"score": 75,
"grade": "B",
"components": {
"memory": {
"score": 20,
"max": 30,
"files_found": ["CLAUDE.md"],
"total_tokens": 1500,
"issues": ["No priming commands detected"]
},
"mcp": {
"score": 25,
"max": 25,
"servers_found": 0,
"estimated_consumption": "0%"
},
"commands": {
"score": 15,
"max": 25,
"count": 5,
"has_priming": false,
"issues": ["Missing /prime command"]
},
"patterns": {
"score": 15,
"max": 20,
"issues": ["No output styles defined"]
}
},
"recommendations": [
"Create /prime command for dynamic context loading",
"Reduce CLAUDE.md size by delegating to priming",
"Consider output styles for token efficiency"
]
}
| Score | Grade | Status |
|---|---|---|
| 90-100 | A | Elite context engineering |
| 80-89 | B | Good practices, minor optimizations |
| 70-79 | C | Functional, needs attention |
| 60-69 | D | Significant issues |
| <60 | F | Context bloat, major rework needed |
Based on findings, recommend:
Date: 2025-12-26 Model: claude-opus-4-5-20251101
npx claudepluginhub melodic-software/claude-code-plugins --plugin tacAudits Claude Code setup for token waste and context bloat. Checks MCP servers, CLAUDE.md, skills, and settings. Trigger with 'audit my context', 'usage audit', or similar phrases.
Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.
Optimizes Claude Code context-window usage for accuracy and cost. Helps when hitting context limits, structuring prompts, or trimming injected content.