Skills for Real Engineers. Straight from my .agents directory.
context-audit
Agent skill fromundefined-ui/second-brain-os
Audit 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).
How to install context-audit
npx skills add undefined-ui/second-brain-os# or add only this skill to Claude Code: copy the folder
plugins/agents-course/skills/context-audit/
# into
~/.claude/skills/context-audit/ (all projects)
.claude/skills/context-audit/ (one project)
1# Audit the context window23Theory: [How models read context](https://secondbrainos.dev/#/read/course-1-context/how-models-read)4and [The four places](https://secondbrainos.dev/#/read/course-1-context/the-four-places).5Every piece of context belongs in exactly one of four places — a byte-stable6system prompt, a frozen tool set, a compacting history, and a short live tail —7and most agent problems trace back to something sitting in the wrong one.89## Core rule1011Report and rank; never edit. The output is an audit, and the user decides12what to apply. If they ask you to apply fixes afterwards, that is a normal13edit session, not this skill.1415## Workflow16171. **Find the context sources.** Locate what actually reaches the model:18 system prompt (or CLAUDE.md / AGENTS.md for a Claude Code setup), tool19 definitions, and — if the project logs requests — one full mid-conversation20 payload. If nothing is logged, say so and audit the static files; ask for21 one captured request only if the user can produce it cheaply.222. **Measure the five numbers.** Approximate token counts for: system prompt,23 tool definitions, message history, retrieved content, current query.24 A rough count (chars / 4) is fine; write all five down.253. **Hunt cache killers.** Flag every dynamic value in the system prompt —26 timestamps, user names, injected memories, "current task" lines. Each one27 is a guaranteed cache miss on every call. Check whether the tool list can28…
Excerpt shown under the repository's MIT license.
More skills in second-brain-os
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
