context-audit
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Turn raw source material in a second-brain vault into linked wiki pages: read the source, split it into concepts and entities, write or update pages, connect them to existing pages, and record the run in the log. Use this skill whenever the user drops a file into raw/, pastes an
Claude Code
$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-ingest --agent claude-code
Codex
$ npx skills add undefined-ui/second-brain-os --skill second-brain-ingest -a codex -y
Cursor
$ npx skills add undefined-ui/second-brain-os --skill second-brain-ingest -a cursor -y
Gemini CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-ingest -a gemini-cli -y
GitHub Copilot
$ npx skills add undefined-ui/second-brain-os --skill second-brain-ingest -a github-copilot -y
OpenCode
$ npx skills add undefined-ui/second-brain-os --skill second-brain-ingest -a opencode -y
Windsurf
$ npx skills add undefined-ui/second-brain-os --skill second-brain-ingest -a windsurf -y
name: second-brain-ingest description: >- Turn raw source material in a second-brain vault into linked wiki pages: read the source, split it into concepts and entities, write or update pages, connect them to existing pages, and record the run in the log. Use this skill whenever the user drops a file into raw/, pastes an article, transcript or PDF and asks to add it to the vault, says "ingest this", "add this to my second brain", "process raw", or asks to catch up on unprocessed sources, even if they do not name the ingest command. Do NOT use for answering questions from an existing vault, for linting or repairing pages, or for editing notes the user wrote by hand.
An ingest that only writes a summary page produces a vault that grows without getting smarter. The whole value is in the second half of the job: connecting the new material to what is already there. A page that lands unlinked is invisible within a week.
Nothing is ingested until it is linked. Every run ends with the new pages connected to existing pages in both directions.
1. **Read the source completely** before writing anything. Partial reads produce pages built from the introduction, which is where sources are least specific. 2. **Check what already exists.** Search the wiki for the main entities and concepts. Ingesting into an empty vault and ingesting into a vault of 300 pages are different jobs: in the second, most of your work is updating pages, not creating them. 3. **Write the source page** in `wiki/sources/`. Record claims as claims, with the source attached. 4. **Extract concepts and entities.** One page per idea. If a concept page exists, add what this source contributes and update `updated:`. If it contradicts what is there, record both positions rather than replacing. 5. **Link in both directions.** The source page links to every concept and entity it touches; each of those links back. Add any missing target pages, or list them under Gaps in `index.md`. 6. **Update `index.md` and append to `log.md`** in the same run, because an index that lags is how a vault starts drifting. 7. **Report** what changed.
End every run with this exact shape:
Ingested: <source name> New pages: <n> (list) Updated pages: <n> (list) Links added: <n> Contradictions found: <none | description> Gaps created: <list of linked pages that do not exist yet>
Over-extraction is the common failure: ten thin concept pages from one article, each a restated paragraph. A source usually yields one to three concepts worth their own page. If a candidate concept cannot be explained without referring back to this one source, it belongs inside the source page instead.
Under-extraction shows up as source pages that contain three separate ideas and link to nothing. If a page needs section headings for unrelated topics, split it.
Input: the user drops `raw/karpathy-llm-wiki.md`, a clipped gist, into a vault that already has pages for `[[Obsidian]]` and `[[Claude Code]]`.
Output: one source page; a new concept page `[[LLM wiki]]` explaining the pattern in plain language; an entity page `[[Andrej Karpathy]]`; updates to `[[Obsidian]]` and `[[Claude Code]]` noting their role in the pattern; a link from the existing `[[Personal knowledge management]]` concept to the new one; index and log updated; report showing 3 new, 3 updated, 11 links.
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,…