/wiki-skills:wiki-mergefrom wiki-skills
Merges two wiki pages that are the same concept under different slugs, or splits one overloaded page into qualified slugs. Rewrites all inbound links to maintain graph integrity.
Ships in wiki-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.
Consolidate two pages into one (merge), or separate one overloaded page into qualified pages (split). Both operations rewrite the link graph, so they are deliberate, confirmed, and verified — never automatic.
The slug is the concept's identity (see the Concept Identity section of SCHEMA.md).
Merge and split are how identity changes safely: every inbound [[slug]] is rewritten so
no link is left resolving to nothing.
Find SCHEMA.md (search from cwd upward, or ~/wikis/). If not found, tell the user to
run wiki-init first. Read it to get the wiki root path and the Concept Identity
convention.
If unsure which, describe both pages to the user and confirm before proceeding.
Present both pages and recommend which slug survives. Prefer the slug that is: more specific and correct, more linked-to, or already the better-developed page. Confirm the choice with the user before writing anything.
Survivor:
[[<survivor-slug>]]— Loser:[[<loser-slug>]]— folded in, then deleted
Read both pages in full. Merge the loser's content into the survivor:
sources lists; keep the broader/more-correct title,
category, summary, and tags.created date of the two; bump the survivor's updated date.Show the proposed survivor page as a diff and confirm before writing.
Grep every page in wiki/pages/ and overview.md for [[<loser-slug>]] (skip
index.md — it is generated and will be rebuilt). Rewrite each to [[<survivor-slug>]].
Watch for:
Show the list of affected pages and the edits; confirm before writing.
Remove wiki/pages/<loser-slug>.md. Do not touch index.md by hand — regenerate it so
the loser's entry disappears and the survivor's reflects its merged frontmatter:
python bin/generate-index.py.
Grep the whole wiki for [[<loser-slug>]] — there must be zero matches left. Then
confirm every [[slug]] on the survivor page resolves to a real page. Fix any stragglers
before finishing. (This is the same inline check wiki-ingest runs; a merge that leaves a
dangling link defeats its own purpose.)
If the merge changes the synthesis (e.g. a duplicated "Key Concept" becomes one), update
wiki/overview.md. Then record the operation per SCHEMA's Operation Log & Commit
Convention:
refactor: for a merge, plus the trailer) and
commit on confirmation.
refactor: merge <loser-slug> into <survivor-slug>
Wiki-Op: merge
wiki/log.md:
## [<today>] merge | <loser-slug> → <survivor-slug>
Inbound links rewritten: <N> across <list of pages>
Identify each distinct sense the overloaded page conflates. Propose a qualified slug per
sense, following the disambiguation convention in SCHEMA.md (narrowest discriminator
that disambiguates):
[[transformer]]overloads two senses →
[[transformer-ml]]— the neural network architecture[[transformer-electrical]]— the power-grid device
Decide what happens to the original bare slug:
Confirm the slug plan with the user before writing.
Write each new page with the content for its sense only, with full frontmatter
(title, category, a distinct one-line summary, tags, created: <today>,
updated: <today>). Split the frontmatter sources so each page lists only the sources
that actually support it. Carry the relevant footnotes to each page, renumbering
sequentially. Show each new page and confirm before writing.
Grep every page in wiki/pages/ and overview.md for [[<original-slug>]] (skip the
generated index.md). For each occurrence, decide which sense it meant from its
context and rewrite it to the correct qualified slug. This is the judgment-heavy step —
do not blanket-replace. When a single page referenced both senses, split it into two links.
Show each repointing decision (link, surrounding context, chosen target) and confirm before writing.
If retiring the bare slug, delete wiki/pages/<original-slug>.md. If keeping it as the
primary sense, trim it to that sense only and bump its updated date. Then regenerate the
index so the removed/added pages are reflected — do not hand-edit index.md:
python bin/generate-index.py.
If the bare slug was retired, grep the whole wiki for [[<original-slug>]] — zero matches
must remain. Confirm every [[slug]] on the new pages resolves. Fix any stragglers.
Update wiki/overview.md if the split changes the synthesis. Then record the operation
per SCHEMA's Operation Log & Commit Convention:
refactor: for a split, plus the trailer) and
commit on confirmation.
refactor: split <original-slug> into <slug-a>, <slug-b>
Wiki-Op: split
wiki/log.md:
## [<today>] split | <original-slug> → <slug-a>, <slug-b>
Inbound links repointed: <N> across <list of pages>
Wiki-Op: trailer); a non-git wiki appends to log.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kfchou/wiki-skills --plugin wiki-skills7 skills in this plugin
/wiki-auditUse when fact-checking a single wiki page against its cited sources — verifies that every footnote actually supports its claim and surfaces uncited factual claims. Run after ingesting a high-stakes page or any time you want confidence in one page's accuracy./wiki-ingestUse when adding a new source to a wiki — a paper, article, URL, file, transcript, or any document. One ingest may touch 10-15 wiki pages./wiki-initUse when bootstrapping a new personal wiki for any knowledge domain — research, codebase documentation, reading notes, competitive analysis, or any long-term knowledge accumulation project.Other plugins' skills for the same job