context-audit
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Record a dated snapshot of the vault's health numbers and compare against previous snapshots so trends are visible. Use this skill for a monthly or quarterly check, when the user asks whether the vault is improving, or asks to track its numbers over time. Do NOT use for a
Claude Code
$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-metrics --agent claude-code
Codex
$ npx skills add undefined-ui/second-brain-os --skill second-brain-metrics -a codex -y
Cursor
$ npx skills add undefined-ui/second-brain-os --skill second-brain-metrics -a cursor -y
Gemini CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-metrics -a gemini-cli -y
GitHub Copilot
$ npx skills add undefined-ui/second-brain-os --skill second-brain-metrics -a github-copilot -y
OpenCode
$ npx skills add undefined-ui/second-brain-os --skill second-brain-metrics -a opencode -y
Windsurf
$ npx skills add undefined-ui/second-brain-os --skill second-brain-metrics -a windsurf -y
name: second-brain-metrics description: >- Record a dated snapshot of the vault's health numbers and compare against previous snapshots so trends are visible. Use this skill for a monthly or quarterly check, when the user asks whether the vault is improving, or asks to track its numbers over time. Do NOT use for a one-off graph analysis, which is second-brain-graph, or for structural repairs.
A single reading tells you almost nothing. Direction over months is the information, and nobody remembers what last quarter's orphan rate was.
Four numbers, appended to a dated log, compared against the last entry. Never page count or word count.
1. **Run** `scripts/vault_stats.py` and `scripts/link_check.py`. 2. **Record:** orphan rate, average degree, component count, stale-concept rate, with the date and total pages for context. 3. **Append** to the metrics note. Never overwrite previous entries. 4. **Compare** against the last snapshot and name what moved. 5. **Interpret only what changed.** A stable number needs no commentary.
<date> | pages <n> orphan rate <n>% (<+/-n> since <date>) avg degree <n> (<+/-n>) components <n> (main <n>%) stale concepts <n>% (<+/-n>) Moved: <what changed and the likely cause> Watch: <the one number to fix, or none>
A rising orphan rate with a rising page count means ingestion has stopped linking. That is the single most important pattern in this report and it should be called out explicitly, not left in the numbers.
Do not recommend more than one thing to fix. A metrics report with five action items gets ignored.
Guides and resources for AI engineers: a course on building agents, five handbooks that go deep on one layer each, hands-on projects, and the links worth your time.
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Scaffold a first eval suite for an agent: mine real failures into cases, write behavioural checks over traces, and generate the…
Find the decisions in a pipeline that do not need the expensive model and propose the gate for each: a rule, a classic…
Turn a vague task into a testable definition of done and generate an executable goal-test script for it, optionally with a…
Audit an agent's harness against the four rings: containment, guides, sensors, permissions. Use when the user asks whether their…
Import a large archive into the vault in controlled batches: triage what is worth ingesting, process oldest first, checkpoint…
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…