Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# Merge duplicate pages23A merge is irreversible in the way that matters: afterwards you cannot tell4which claim came from which page. Two ideas that look identical from their5summaries are often a general case and a specific one.67## Core rule89Never merge unprompted. Propose, wait for approval, then follow the procedure10exactly.1112## Workflow13141. **Pick the survivor** by canonical name, not by which page is longer.152. **Merge content.** Every distinct claim survives with its source. Overlapping16 claims collapse; differing ones both stay, following the contradiction rules.173. **Merge aliases,** including the dead page's title as an alias on the18 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 outside21 the vault.226. **Record in `log.md`:** both names, the date, and why.2324## Output format2526```27Merged: [[old]] -> [[survivor]]28Claims kept from old page: <n>29Aliases added: <list>30Inbound links redirected: <n>31Conflicts recorded: <none | description>32```3334## Calibration3536If the two pages disagree about anything factual, that is a signal they may not37be duplicates. Surface the disagreement and ask before proceeding.3839Never merge a page marked `maintained_by: human` into another without explicit40confirmation naming that page.
Excerpt shown under the repository's MIT license.
More skills in second-brain-os
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
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
