/agents-course:gate-checkfrom agents-course
Analyzes AI pipelines to identify decisions that can be handled by cheaper gates (rules, classifiers, small models) instead of expensive frontier models, with fail-closed routing and optional baseline scaffold.
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: Cheap decisions and Gate practice. An agent does two kinds of work: it writes, which needs a big model, and it decides — is this spam, which queue, does this need a person — which is a bounded question the answer to which comes from a set you already know. A gate is a cheap decision layer that sorts the stream so the expensive model only sees the items that actually need judgement.
label.py that
samples ~200 real examples for hand-labelling, and a baseline.py that
trains the classic classifier and prints accuracy against a held-out
split. Every vendor claim and small-model option must beat this number
on their data before it earns a place in the pipeline.Gate check — <pipeline>
decisions found: <n>, currently on the big model: <n>
1. <decision> — <where in the code>
today: <who decides, est. cost> label set: <the labels>
gate: <rule | classifier | small model> — <why this tier>
unsure -> <escalation path>
saves: <est. calls/tokens diverted>
...
Rank by savings. If a decision genuinely needs the big model — open-ended, no stable label set, wrong answers are cheap to fix — say so and leave it alone; a gate that guesses is worse than no gate.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cost-optimization, model-routing, triage-layer, decision-gates
npx claudepluginhub undefined-ui/second-brain-os --plugin agents-course5 skills in this plugin
/context-auditAudit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit, review or fix their agent's context, prompt caching, token spend per turn, or CLAUDE.md / AGENTS.md layout. Read-only: reports findings and a fix list, changes nothing. Do NOT use for writing evals (evals-bootstrap) or for loop design (goal-test)./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)./Other plugins' skills for the same job