Tooluck logoTooluck
SKILL.md

second-brain-merge

Agent skill fromundefined-ui/second-brain-os

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.

How to install second-brain-merge

install second-brain-merge
# install the second-brain-os pack with the skills CLI
npx skills add undefined-ui/second-brain-os

# or add only this skill to Claude Code: copy the folder

skills/second-brain-merge/

# into

~/.claude/skills/second-brain-merge/ (all projects)

.claude/skills/second-brain-merge/ (one project)

skills/second-brain-merge/SKILL.md

MITFull file
1# Merge duplicate pages
2
3A merge is irreversible in the way that matters: afterwards you cannot tell
4which claim came from which page. Two ideas that look identical from their
5summaries are often a general case and a specific one.
6
7## Core rule
8
9Never merge unprompted. Propose, wait for approval, then follow the procedure
10exactly.
11
12## Workflow
13
141. **Pick the survivor** by canonical name, not by which page is longer.
152. **Merge content.** Every distinct claim survives with its source. Overlapping
16 claims collapse; differing ones both stay, following the contradiction rules.
173. **Merge aliases,** including the dead page's title as an alias on the
18 survivor. This is what keeps old links and the user's memory working.
194. **Redirect inbound links** to the survivor. Check every backlink.
205. **Delete the old page,** or leave a stub only if it was linked from outside
21 the vault.
226. **Record in `log.md`:** both names, the date, and why.
23
24## Output format
25
26```
27Merged: [[old]] -> [[survivor]]
28Claims kept from old page: <n>
29Aliases added: <list>
30Inbound links redirected: <n>
31Conflicts recorded: <none | description>
32```
33
34## Calibration
35
36If the two pages disagree about anything factual, that is a signal they may not
37be duplicates. Surface the disagreement and ask before proceeding.
38
39Never merge a page marked `maintained_by: human` into another without explicit
40confirmation naming that page.

Excerpt shown under the repository's MIT license.

More skills in second-brain-os

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates