context-audit
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Analyse the vault's link graph and report on its shape: orphan rate, average degree, components, hubs, bridges and clusters, with what each number means for retrieval. Use this skill when the user asks about the health or structure of their graph, wants metrics, asks which pages
Claude Code
$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-graph --agent claude-code
Codex
$ npx skills add undefined-ui/second-brain-os --skill second-brain-graph -a codex -y
Cursor
$ npx skills add undefined-ui/second-brain-os --skill second-brain-graph -a cursor -y
Gemini CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-graph -a gemini-cli -y
GitHub Copilot
$ npx skills add undefined-ui/second-brain-os --skill second-brain-graph -a github-copilot -y
OpenCode
$ npx skills add undefined-ui/second-brain-os --skill second-brain-graph -a opencode -y
Windsurf
$ npx skills add undefined-ui/second-brain-os --skill second-brain-graph -a windsurf -y
name: second-brain-graph description: >- Analyse the vault's link graph and report on its shape: orphan rate, average degree, components, hubs, bridges and clusters, with what each number means for retrieval. Use this skill when the user asks about the health or structure of their graph, wants metrics, asks which pages are most connected or most isolated, or asks whether the vault is fragmented. Do NOT use for fixing what it finds, which is second-brain-lint, or for answering a content question.
The graph is the search space every answer is drawn from. Its shape decides whether retrieval reaches the relevant material in a few hops or reaches nothing.
Report shape and what it means, never fix anything. This skill is read-only.
1. **Run the scripts** rather than reading files: `scripts/vault_stats.py` for counts and degree, `scripts/link_check.py` for orphans and breaks, `scripts/graph_export.py` when deeper analysis is wanted. 2. **Compute the four metrics:** orphan rate, average degree, component count, stale-page rate. 3. **Identify hubs** (pages that have swallowed the graph) and **bridges** (pages connecting otherwise separate clusters). 4. **Name the clusters.** These are what the vault is actually about, which is reliably different from what the user would say it is about. 5. **Say what each number means** for answering questions, not just the value.
Pages <n> | links <n> | avg degree <n> Orphan rate <n>% (healthy under 5) Components <n> (main holds <n>%) Stale concepts <n>% (untouched 90+ days) Hubs: <pages with outsized degree, and whether to split them> Bridges: <pages connecting clusters, and what breaks if they are wrong> Clusters: <what the vault is actually about> What this means: <two or three sentences>
Never report page count or word count as a health signal. Both rise whether the vault is improving or not.
A single reading says little. If the user has recorded previous numbers, compare against them; if not, suggest recording these.
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,…