context-audit
Audit an agent's context layout against the four places: system prompt, tools, history, tail. Use when the user asks to audit,…
Merge two pages that describe the same thing, preserving every distinct claim, redirecting inbound links, and recording the merge. Use this skill when the user approves a duplicate merge, says "these are the same page", "merge X into Y", or asks to clean up near-duplicates that
Claude Code
$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-merge --agent claude-code
Codex
$ npx skills add undefined-ui/second-brain-os --skill second-brain-merge -a codex -y
Cursor
$ npx skills add undefined-ui/second-brain-os --skill second-brain-merge -a cursor -y
Gemini CLI
$ npx skills add undefined-ui/second-brain-os --skill second-brain-merge -a gemini-cli -y
GitHub Copilot
$ npx skills add undefined-ui/second-brain-os --skill second-brain-merge -a github-copilot -y
OpenCode
$ npx skills add undefined-ui/second-brain-os --skill second-brain-merge -a opencode -y
Windsurf
$ npx skills add undefined-ui/second-brain-os --skill second-brain-merge -a windsurf -y
name: second-brain-merge description: >- Merge two pages that describe the same thing, preserving every distinct claim, redirecting inbound links, and recording the merge. Use this skill when the user approves a duplicate merge, says "these are the same page", "merge X into Y", or asks to clean up near-duplicates that a lint run proposed. Do NOT use to merge pages on your own judgement, to delete a page outright, or to split one page into several.
A merge is irreversible in the way that matters: afterwards you cannot tell which claim came from which page. Two ideas that look identical from their summaries are often a general case and a specific one.
Never merge unprompted. Propose, wait for approval, then follow the procedure exactly.
1. **Pick the survivor** by canonical name, not by which page is longer. 2. **Merge content.** Every distinct claim survives with its source. Overlapping claims collapse; differing ones both stay, following the contradiction rules. 3. **Merge aliases,** including the dead page's title as an alias on the survivor. This is what keeps old links and the user's memory working. 4. **Redirect inbound links** to the survivor. Check every backlink. 5. **Delete the old page,** or leave a stub only if it was linked from outside the vault. 6. **Record in `log.md`:** both names, the date, and why.
Merged: [[old]] -> [[survivor]] Claims kept from old page: <n> Aliases added: <list> Inbound links redirected: <n> Conflicts recorded: <none | description>
If the two pages disagree about anything factual, that is a signal they may not be duplicates. Surface the disagreement and ask before proceeding.
Never merge a page marked `maintained_by: human` into another without explicit confirmation naming that page.
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,…