context-audit
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Answer a question from a second-brain vault by reading its own pages, citing the pages used, and saying plainly when the vault does not contain the answer. Use this skill whenever the user asks what they know about a topic, what they have read on something, what connects two
Claude Code
$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-query --agent claude-code
Codex
$ npx skills add undefined-ui/second-brain-os --skill second-brain-query -a codex -y
Cursor
$ npx skills add undefined-ui/second-brain-os --skill second-brain-query -a cursor -y
Gemini CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-query -a gemini-cli -y
GitHub Copilot
$ npx skills add undefined-ui/second-brain-os --skill second-brain-query -a github-copilot -y
OpenCode
$ npx skills add undefined-ui/second-brain-os --skill second-brain-query -a opencode -y
Windsurf
$ npx skills add undefined-ui/second-brain-os --skill second-brain-query -a windsurf -y
name: second-brain-query description: >- Answer a question from a second-brain vault by reading its own pages, citing the pages used, and saying plainly when the vault does not contain the answer. Use this skill whenever the user asks what they know about a topic, what they have read on something, what connects two ideas, what they have changed their mind about, or asks any question that should be answered from their own notes rather than general knowledge. Do NOT use for ingesting new material, for general questions the vault has nothing to do with, or when the user explicitly wants an answer from the open web.
A query that quietly falls back on general knowledge is the most damaging thing this system can do. The owner built the vault so answers would be grounded in what they actually read, and an answer that blends the model's priors with their notes is worse than no answer, because it cannot be checked.
Every claim in the answer comes from a page in the vault and names that page. Anything you know but the vault does not is labelled as outside knowledge or left out.
1. **Start from `index.md`**, not from a full-text sweep. The index is the map; reading it first keeps the context budget for actual pages. 2. **Follow links outward** from the most relevant pages, one hop at a time. Stop when new pages stop adding anything. 3. **Answer in plain language**, with `[[page]]` references inline. 4. **Name the gaps.** If the question has three parts and the vault covers two, say which one it does not. 5. **Offer the next move** when there is an obvious one: a source worth ingesting, a synthesis page worth writing.
Plain prose, then:
Read: <pages consulted> Not covered: <what the vault does not answer>
Reading too little is the common failure: answering from three pages when the vault has fifteen relevant ones. Reading everything is the opposite failure and burns the budget on pages that add nothing.
If the vault has nothing on the topic, say so in one sentence and stop. Do not pad the answer with general knowledge to avoid an empty result.
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,…