wiki-merge

wiki-merge is a skill for Claude Code from flonat/flonat-research. It costs 56 tokens per session (1,462 once invoked), scanned A, original, MIT.

A tool for merging several overlapping wiki concepts into one chosen canonical entry. It preserves source history, updates links pointing to the old entries, and supports checking the result before applying changes.

In plain words
What is it for?
Use it after a wiki audit identifies duplicate concepts and you have selected the entry to keep.
Why use it?
It removes duplicate concept pages without leaving broken links. The dry-run boundary lets you inspect the proposed merge before files are changed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: $skill-name invocation.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/wiki-merge.py <winner> <loser1> [<loser2> ...].

Good fit Use it after a wiki audit identifies duplicate concepts and you have selected the entry to keep.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/flonat/flonat-research
agentmods
npx agentmods add skills/flonat/flonat-research/wiki-merge

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wiki-merge

README.md
[![agentmods](https://agentmods.dev/badge/skills/flonat/flonat-research/wiki-merge/github.svg)](https://agentmods.dev/skills/flonat/flonat-research/wiki-merge)
Your own site
<a href="https://agentmods.dev/skills/flonat/flonat-research/wiki-merge"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/wiki-merge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki-merge

Your own site · 80×15
<a href="https://agentmods.dev/skills/flonat/flonat-research/wiki-merge"><img src="https://agentmods.dev/badge/skills/flonat/flonat-research/wiki-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,462 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.01462
Opus 5.5 $0.00022 $0.00585
Sonnet 5.5 $0.00011 $0.00292
Haiku 4.5 $0.00006 $0.00146

Measured 2mo ago against content hash a6687fc5434e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wiki-merge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/wiki-merge/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wiki Merge — Collapse an Overlap Cluster

Folds one or more concept slugs into a single canonical entry. Preserves provenance, rewrites incoming wikilinks across atlas / books / concepts / project knowledge folders, deletes the losers, and denylists them so the Saturday wiki-grow cron doesn't re-promote.

When to Use

  • Right after wiki-curate flags an overlap cluster in Section A and you've decided which slug should be canonical.
  • Manual cleanup when you notice two concepts that should be one.

When NOT to Use

  • For trivial renames — keep both files and add an alias.
  • For tag normalisation — that's edit-in-place, not a merge.
  • When the "overlap" turns out to be a genuine sub-concept relation — keep both, add a [[wikilink]] reference between them instead.

What it does

uv run python scripts/wiki-merge.py <winner> <loser1> [<loser2> ...]
uv run python scripts/wiki-merge.py --apply <winner> <loser1> [<loser2> ...]

Steps performed (in order, only on --apply):

  1. Read winner + every loser concept file under ~/vault/concepts/.
  2. Build merged body — winner's body verbatim, then each loser's body under a ## From <loser-slug> section. Each section includes a small admonition naming the source project + promotion date for traceability. Sub-headings in loser bodies are demoted by one level (## → ###) so they don't compete with the new section delimiter.
  3. Build merged frontmatter — winner's fields preserved; tags becomes the union of winner ∪ loser tags; a new fold_in_sources: block records each loser's slug + source_project + promoted_on date; last_merged: is set to today.
  4. Write merged content back to the winner's file.
  5. Rewrite wikilinks — every [[<loser-slug>]] (with or without alias suffix) across atlas topics, book chapters, other concepts, and project knowledge folders gets rewritten to [[<winner-slug>|<original-display-text>]]. The alias keeps the original display label visible so the change isn't jarring on pages that referenced the loser by name.
  6. Delete loser files from ~/vault/concepts/.
  7. Append to denylist — each loser slug is added to ~/vault/concepts/.denylist with a comment noting the merge date. This stops the Saturday wiki-grow cron from re-promoting the loser slug if a project knowledge article with that slug still exists.

Read the full file on GitHub · 143 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 143 lines · 56 tokens per session scan A a6687fc5434e

Subscribe to this mod's changes

wiki-merge is a skill published in the GitHub repository flonat/flonat-research (155 stars, last pushed 15d ago), licensed MIT. It adds 56 tokens to every session and 1,462 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

wiki-merge compared with skills from other repositories

wiki-merge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wiki-mergeflonat/flonat-researchSkill15515d agoMITA56Claude Code
morning-briefchrisblattman/claudeblattmanSkill49811d agoMITA20Claude Code
weekly-reviewchrisblattman/claudeblattmanSkill49811d agoMITA41Claude Code, Codex
deep-researchchrisblattman/claudeblattmanSkill49811d agoMITA66Claude Code, Codex
proposal-writechrisblattman/claudeblattmanSkill49811d agoMITA20Claude Code
announcement-digestchrisblattman/claudeblattmanSkill49811d agoMITA26Claude Code, Codex
schedule-querychrisblattman/claudeblattmanSkill49811d agoMITA17Claude Code