/mnemoloci:mnemoloci-maintainfrom mnemoloci
Maintains a Mnemoloci wiki by merging duplicate pages, adding missing links between pages, and writing synthesis pages. Activated when user requests wiki tidying or when lint shows alias collisions or orphans.
Ships in mnemoloci. 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.
Every change here goes through the user: merges and new pages go through the review queue, and links need an approval hash. Never edit wiki files by hand.
mnemoloci maintain duplicates [--limit 20]
Pairs come with their reasons: similar names, same sources, or, when index embed was run, very close meaning. For each pair the user agrees to merge:
Read both pages.
Write one merged page for the page to keep:
^[source#Lx-Ly] citation from both;sources, or the engine refuses with SOURCES_LOST;Queue it:
mnemoloci maintain propose-merge --keep <slug> --absorb <slug> --page <file>
The engine adds the absorbed page's names as aliases. It queues the merged page together with a stub that replaces the absorbed page ("Unita in [[…]]"), so old links keep working and nothing is deleted. The user approves both writes as one, from mnemoloci-review or the app.
mnemoloci maintain links [--limit 100] [--min-score 3]
Each suggestion is scored from three signals — an exact textual mention of another page's title/alias (strongest alone), shared tags (2+), and a peripheral page (few outbound links) reaching a well-connected hub — with a confidence label (bassa/media/alta). A mention-based suggestion has text set and can be applied inline; a tags-only suggestion has text: null — apply-links can't place it in the body (no natural mention to wrap), so add it under a ## Collegamenti section by hand if you agree with it. Show the suggestions and let the user pick. Put the chosen ones in a JSON file, then:
mnemoloci maintain apply-links <file> # dry run: pages and approval_sha256
mnemoloci maintain apply-links <file> --approved <sha> # applies, one transaction
Applying a mention-based suggestion also infers a relationship type from the sentence it's in (uses, extends, implements, contradicts, derived_from, replaces, or the default related_to) and records it in the page's relationships: frontmatter — deterministic pattern matching, not a judgment call you need to make.
Only the first unlinked mention in each page is linked. Headings, quotes, tables and code are never touched.
mnemoloci maintain fix-links # dry run: fixes and unresolved ones
mnemoloci maintain fix-links --approved <sha>
This repairs a broken [[short name]] only when exactly one page can be meant, for example a longer title starting with it, and keeps the visible text. A more specific link is never folded into a general page. Ambiguous links are listed for the user to fix.
mnemoloci maintain hub-links # dry run: hubs and how many bullets each gains
mnemoloci maintain hub-links --approved <sha>
Links every page to the most specific existing overview (or entity) mined from the same project, and gives a hub with zero inbound links a reciprocal link back from its single most substantial child, so browsing from any page in a project always reaches that project's own overview. Run this after every compile block, not just once — new pages need it every time.
When you (or the user) look at a candidate link — from maintain links, maintain synthesis, or free-form investigation like "are these two pages actually the same thing?" — and decide it does not belong, don't just drop it silently: that judgment is exactly the kind of thing a future session has no way to check and can only inherit on trust. Record it:
mnemoloci maintain reject-link --page <slug> --target <slug-or-label> --reason "..." [--citation "source/rel/path.md#L10-L14"]
mnemoloci maintain rejections # list what's recorded
Always include --citation when the source material actually proves the two are different (a line that names a different company, a different repo, a different person) — lint flags a rejection with no citation as unverified_rejections, and one whose citation no longer matches the live source as stale_rejections, so an unexamined or rotted "no" surfaces for a second look instead of standing forever. Before restating a rejection you find already recorded (or inherited from a prior session's summary) as settled, re-read the citation yourself; don't just repeat the verdict.
mnemoloci maintain synthesis [--limit 15]
These are pairs of pages that other pages cite together, or that share sources, but that never link each other. When a pair is worth it:
Write a comparison or overview page that links both and cites the sources.
Send it to review:
mnemoloci maintain submit-page <file>
Broken [[links]] are refused. A title that already exists needs --replace, or a merge.
Run mnemoloci lint to confirm that no broken links or alias collisions are left, and check unverified_rejections/stale_rejections too — a "no" that was never backed by a citation, or whose citation rotted, needs a second look before it gets trusted again.
Do not let this accumulate across blocks: run fix-links → links/apply-links → hub-links → close the review queue, every block, in this order — not once every several blocks. mnemoloci doctor now checks this on its own (the maintenance check warns when compile blocks have landed since the last of the three ran) — but don't wait for the warning, run the routine as a matter of course.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub siris9476/mnemoloci --plugin mnemoloci25 skills in this plugin
/mnemolociPersonal second brain in an Obsidian-compatible Markdown vault (default ~/Mnemoloci). Use when the user wants to build knowledge from their projects, search what they already know, review pending pages, or check vault health — and when the user says "new project X" / "create a project" (new project folder under the projects root, e.g. from the phone), "save this link/PDF/video", "where did we leave off", "what do I have to do", "summary of the week", "turn on the backup" (or their Italian equivalents "nuovo progetto X", "crea un progetto", "salva questo link/PDF/video", "dove eravamo rimasti", "cosa ho da fare", "riepilogo della settimana", "attiva il backup"), or wants to import ChatGPT/claude.ai chats. Routes to mnemoloci-ingest, mnemoloci-capture, mnemoloci-resume, mnemoloci-query, mnemoloci-review, mnemoloci-lint, mnemoloci-new-project./mnemoloci-backupBack up the Mnemoloci vault with git, optionally to a remote copy, and bring back earlier versions of notes. Use when the user says "turn on the backup", "back up my second brain", "sync the vault", "what did this page look like before", "restore yesterday's version", or, in Italian, "attiva il backup del second brain", "fai un backup", "sincronizza il vault", "com'era questa pagina prima", "ripristina la versione di ieri".Other plugins' skills for the same job