/agent-continuity:vault-lint [vault-path] [--type <archetype>]from Agent Continuity
Audit an Agent Continuity vault against its archetype spec and fix the drift — filename violations, frontmatter issues, stray files, duplicate/mixed-language notes — proposing renames and frontmatter fixes, then applying them (with backlink updates) on confirmation. Use when a vault has drifted, after adopting archetypes on an existing vault, or the user asks to "lint / normalize / clean up the vault".
Ships in Agent Continuity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interactive walkthrough. Scan, judge, propose, confirm, fix, re-scan. The deterministic structural scan is done by a bundled script; you add the semantic judgment a regex can't, then apply fixes carefully (renames break wikilinks — you must repair them).
Find the vault (argument, or the vault folder via AI_Codex*/). Determine its archetype from
<vault>/.agent-continuity-vault.json; if there's no marker (a legacy vault), ask which --type to lint
against and offer to write the marker at the end so the enforcement hook activates going forward.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/vault-lint.py" "<vault>" [--type <archetype>] --json
This returns JSON findings: naming (filename shape), frontmatter (missing-required /
forbidden-present), stray (files in folders not in the spec), duplicate_ticket (same leading
id on multiple ticket files). Summarize the counts for the user.
Inspect the file list and add findings a regex misses:
5061-Descartar-Atendimento-sem-dados vs 5061-Discard-Attendance-Without-Data. Propose
keeping one (the English one) and merging/removing the other.Architecture/Protocols/ → Architecture/Patterns/) or adding
them to the spec if they're genuinely needed.Group by fix type and, for each file, propose the concrete new state:
Domain_Legal.md → Domain Legal.md;
606-Review-Discard-Attendance.md → 606-review-discard-attendance.md;
2026-05-18-general-session.md → 2026-05-18-HHMMSS-general-session.md — pick a time from
the note's frontmatter/content or 000000).type: …) or remove (status).Show the plan and confirm — per file or per group. Never rename, edit, or delete without confirmation.
Rename with git mv when the vault is in a git repo (preserves history), else mv.
Repair wikilinks after every rename — Obsidian links resolve by basename, so a rename
orphans [[Old Name]]. Find and update inbound references:
obsidian backlinks file="<old basename>" format=tsv # if Obsidian is running
grep -rl "\[\[<old basename>" "<vault>" --include=*.md # fallback
Update each [[Old Name]] / [[Old Name|alias]] to the new basename.
Fix frontmatter with Edit (add/remove keys). Apply the same safe-prepend pattern as
mine-bases when a note has no frontmatter block at all.
Re-run the Step 1 scanner. Confirm findings dropped to zero (or only the items the user chose to
keep). If the vault had no marker, write it now so the PreToolUse(Write) hook enforces the
spec on all future writes:
jq -n --arg t "<archetype>" '{type:$t, specVersion:1}' > "<vault>/.agent-continuity-vault.json"
git mv so the diff
is reviewable. Batch by folder and re-scan between batches on a large vault.AI_Codex_Aplicatudo). For brand-new vaults, init-vault + the hook keep things clean
from the start, so the linter should mostly find nothing.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub monolith-inc/agent-continuity --plugin agent-continuity13 skills in this plugin
/add-refactor-entryGiven a commit hash, derive a before/after entry for Agent Continuity Style Refactor Catalog with the principle applied. Use when the user wants to capture a notable refactor as a teaching example, or asks to "add this commit to the refactor catalog" / "log this refactor"./canvas-mapGenerate an Obsidian Canvas (.canvas) relationship map for a hub note — the note in the center, its outgoing links to one side and its backlinks to the other, wired with edges — saved into the vault's Architecture/ folder. Uses the Obsidian CLI to read the link graph. Use when the user wants a visual map of how a note connects to the rest of the vault, an architecture/dependency diagram, or asks to "make a canvas for X" / "map what links to X"./