/second-brain-skills:dedupfrom second-brain-skills
Finds and merges duplicate or near-duplicate notes in an Obsidian vault using deterministic scanning and a supersede-not-delete policy. Requires human review before any merge is applied.
Ships in second-brain-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
🧒 When reporting to a non-technical operator: end with a child-simple "In plain words" recap in their language.
python "$IMPORTS_ROOT/build_dedup_dashboard.py" (it runs the scan itself) → open $OBSIDIAN_VAULT/_Dashboards/Dedup-Dashboard.html: candidate clusters by topic, colour = similarity (🔴 ≥0.7 almost certainly a duplicate); each cluster shows which note to keep (the newer one) and which becomes superseded. DISPLAY ONLY; merging is done by hand below (supersede, never delete). Complementary notes are left alone.
python "$IMPORTS_ROOT/dedup_scan.py" → scans ACTIVE notes by theme, difflib similarity → candidate clusters in $IMPORTS_ROOT/dedup_report.txt. For a DIFFERENT folder, copy the script and change its OPS path. Start at similarity ≥0.5 (high-confidence), then ≥0.4 for the next tier — loop-until-dry (stop when remaining clusters are complementary/noise).
origin: anton rule is overridden only by the operator or an explicit supersedes.Before Step 3, print the full plan and stop: for each cluster, the canonical note, every loser that becomes superseded, the nuances grafted, and every index/MOC line that changes. Notes with maintained_by: human are never losers and never get their body rewritten: flag them for the operator instead. Commit the vault as it is, then apply.
audience, supersedes: "[[loser]]", graft nuances into the body.status: active → superseded; add superseded_by: "[[canonical]]"; add body marker > ⊘ Merged into [[canonical]] — <reason>. NEVER delete (git-reversible; nothing lost).$IMPORTS_ROOT/superseded_rules.json ("<msg_id>": {"by": "<canonical_fn>"}) so the decision survives a pipeline rebuild.build_rules2.py, superseded-aware) AND its inputs exist → re-run → deploy just the MOC file.\n-anchored Edits JOINS neighbor lines. To remove several lines, use a SCRIPT that filters by slug (like fix_pokupki_moc.py), or git checkout <good-commit> -- <file> then re-script. NEVER batch-Edit list deletions.vault_backup.py before edits; after, grep-count ^status: superseded to verify the number; commit. Undo is git revert <merge commit>: git checkout <rev> -- folder/ would leave any note the merge created. Report BEFORE→AFTER on real notes + 🧒 recap. Flag anything left for the operator (e.g. money conflicts).
Like this skill? It is part of second-brain-starter-kit: the second brain we built for ourselves and run every day at Palo Alto AI Research Lab. Install the whole set with npx skills add tonydzi/second-brain-starter-kit. Everything is open source and free, so take what you need.
Flagships worth a look on their own: secondop-panel (a second opinion from a panel of external models), claude-memory-tidy (stop your agent's memory from rotting), telegram-mcp-kit (your own Telegram over MCP in about 15 minutes).
Author: Anton Dziatkovskii, Palo Alto AI Research Lab. Telegram @tonydzi - WhatsApp +1 341 222 9178 - X @Tony_Stef_
Engineers: want to test-drive this setup? Message me. I hand out free starter seeds to engineers who test and report back, and custom skill requests are welcome.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tonydzi/second-brain-starter-kit --plugin second-brain-skills248 skills in this plugin
/03Run an autonomous consensus round between agent peers on several machines: they negotiate a decision over a shared channel and execute it without a human relaying messages. Use when multiple machines must agree on a change. Triggers: "/03", "work it out among yourselves", "find consensus". Wakes the human only for irreversible actions or a deadlock./1Recover a session after a hard crash (app died, machine rebooted, context lost mid-work): replay the turn-state ledger for the last requests, files and decisions, run a green/red health ping over the system map, file sync and MCP connectors, then rebuild the previous session history for pickup. Triggers: "/1", "resume after crash", "wake"./agendaShow the operator's day: today's calendar plus what needs them personally (leads due, people awaiting a reply, deadlines), pulled from Calendar and Telegram and ranked. Read-only: sends and commits nothing. Triggers: "/agenda", "what's on today", "my agenda".Other plugins' skills for the same job