/agents-course:context-auditfrom agents-course
Audits an agent's context layout across system prompt, tools, history, and tail. Reports token counts, cache killers, and window bloat with ranked fixes.
Ships in agents-course. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Theory: How models read context and The four places. Every piece of context belongs in exactly one of four places — a byte-stable system prompt, a frozen tool set, a compacting history, and a short live tail — and most agent problems trace back to something sitting in the wrong one.
Report and rank; never edit. The output is an audit, and the user decides what to apply. If they ask you to apply fixes afterwards, that is a normal edit session, not this skill.
Context audit — <project>
system prompt <n> tok <clean | N dynamic values: ...>
tools <n> tok <n> tools <frozen | mutates mid-run>
history <n> tok largest item: <what, n tok>
tail <present | goal only in opening message>
Top fixes, in order of saved tokens per turn:
1. ...
2. ...
Each fix names the file and line where possible, states what moves to which of the four places, and estimates the saving. Close with the one-line rule: stable prefix, frozen tools, compact history, live tail.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
context-audit, prompt-caching, token-optimization, claude-md, agents-md
npx claudepluginhub undefined-ui/second-brain-os --plugin agents-course5 skills in this plugin
/evals-bootstrapScaffold a first eval suite for an agent: mine real failures into cases, write behavioural checks over traces, and generate the runner. Use when the user wants evals, regression tests for an agent, a golden set, or asks how to know a prompt/model change did not break things. Do NOT use for a single task's done-check (goal-test) or for auditing context (context-audit)./gate-checkFind the decisions in a pipeline that do not need the expensive model and propose the gate for each: a rule, a classic classifier, or a small model, with fail-closed routing. Use when the user asks to cut model costs or latency, says the big model handles everything, or wants a triage / routing / filter layer in front of an agent. Analysis plus an optional baseline scaffold. Do NOT use for auditing context layout (context-audit) or for building eval suites (evals-bootstrap)./goal-testOther plugins' skills for the same job