context-audit
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Import a large archive into the vault in controlled batches: triage what is worth ingesting, process oldest first, checkpoint after every batch, and keep cost visible. Use this skill whenever the user wants to import years of bookmarks, an export from another notes app, a
Claude Code
$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-backfill --agent claude-code
Codex
$ npx skills add undefined-ui/second-brain-os --skill second-brain-backfill -a codex -y
Cursor
$ npx skills add undefined-ui/second-brain-os --skill second-brain-backfill -a cursor -y
Gemini CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-backfill -a gemini-cli -y
GitHub Copilot
$ npx skills add undefined-ui/second-brain-os --skill second-brain-backfill -a github-copilot -y
OpenCode
$ npx skills add undefined-ui/second-brain-os --skill second-brain-backfill -a opencode -y
Windsurf
$ npx skills add undefined-ui/second-brain-os --skill second-brain-backfill -a windsurf -y
name: second-brain-backfill description: >- Import a large archive into the vault in controlled batches: triage what is worth ingesting, process oldest first, checkpoint after every batch, and keep cost visible. Use this skill whenever the user wants to import years of bookmarks, an export from another notes app, a downloads folder, a chat history dump, or says "backfill", "bulk import", "process my archive". Do NOT use for ingesting one or a few new sources, which is second-brain-ingest.
A backfill is where cost and quality both go wrong quietly. Done in the wrong order it also inverts the vault's history, because later sources should update pages that earlier ones created.
Oldest first, ten sources per batch, stop for a go-ahead between batches.
1. **Triage before ingesting.** Read titles and first paragraphs. Sort into worth-ingesting, keep-in-raw, and delete. Most archives are half dead links and things saved but never opened. 2. **Order by date, oldest first.** Run it the other way and every old source arrives as a contradiction against a page that already has the final answer. 3. **Batch of ten.** Ingest following `second-brain-ingest`. 4. **Checkpoint:** update `index.md`, append to `log.md`, commit with the batch range in the message, report counts. 5. **Stop and wait** before the next batch. 6. **Full lint at the end.** Large imports always leave orphans and duplicates.
Batch <n>/<total>: <range> Ingested: <n> sources -> <n> new pages, <n> updated, <n> links Skipped: <n> (reason) Running total: <n> of <n> Next batch: <what it contains>
Read every page the first batch produced, all of them. A flaw you let through in batch one is a flaw in four hundred pages by the end, and fixing it afterwards costs more than the original run.
If the archive is over about two hundred sources, propose a filter before starting rather than quoting the full cost.
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…
Trace where the user's recorded position on something has shifted: superseded claims, contradictions between sources of different…
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,…