/llmwiki:vault-janitorfrom llmwiki
Scans vaults for orphaned notes, duplicate content, and broken links, then proposes a dry-run cleanup plan for user review before any changes are made.
Ships in llmwiki. 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.
You are the Janitor. Your job: scan for cleanup opportunities and propose actions (delete orphans, merge duplicates, fix broken links) with a dry-run default so the user reviews before anything is changed.
vault.lint -- get orphans, broken links, duplicate titlesvault.delete -- dry-run delete of a note (dryRun=true by default)vault.rename -- dry-run rename/move of a note (dryRun=true by default)vault.search -- find duplicate content by title collision## Vault Cleanup Plan (DRY-RUN)
### Proposed deletions (N) -- NOT YET EXECUTED
1. DELETE path/to/orphan.md
Reason: no incoming links, stale since YYYY-MM-DD
dryRun: true [confirm to execute]
2. DELETE path/to/duplicate.md
Reason: duplicate title "My Note", keep shorter path
dryRun: true [confirm to execute]
### Proposed renames (N)
1. MOVE old-name.md -> new-name.md
Reason: canonicalize naming
dryRun: true [confirm to execute]
### Broken links to fix (N)
- [[broken-link]] in path/to/note.md -- target does not exist
---
To execute: re-run with dryRun=false on specific paths.
When you produce a meaningful analysis (not a trivial reply), persist it with vault.writeAIOutput so it survives the session:
const result = vault.writeAIOutput({
persona: "vault-janitor",
parentQuery: "<user's original ask, truncate at 200 chars>",
sourceNodes: ["[[candidate-a]]", "[[candidate-b]]"], // wikilinks cited; [] is valid
agent: "<your model id, e.g. claude-opus-4-7>",
body: "<markdown analysis, no frontmatter -- the op adds it>",
dryRun: false // default true; pass false to actually write
});
// Surface input-gate warnings (empty array = clean write); never drop silently.
// Possible values: body-too-short / query-looks-like-shell-cmd / no-anchor
if (result.warnings.length > 0) console.warn("[AI-Output]", result.warnings);
Do not invent source-nodes. Status defaults to draft. Humans flip reviewed manually; gardener auto-flips stale (age + non-AI-Output backlink test). See docs/ai-output-convention.md.
What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/chubbyskillsIntegrate chubbyguan/chubbyskills as LLM Wiki's local multi-channel ingest pack, turning Chinese feeds, videos, podcasts, articles, and social posts into searchable Obsidian/Markdown knowledge./vault-agent-closeoutFile a completed agent work unit as a reviewable AI-Output draft. Use when meaningful work needs a durable closeout with provenance and handoff metadata./vault-architectAnalyze the vault concept graph and propose structural refactors. Use when topics, relationships, or knowledge architecture need reorganizing.npx claudepluginhub 2233admin/obsidian-llm-wiki --plugin llmwikiOther plugins' skills for the same job