mark393295827/wiki-lint
Use when an Obsidian wiki needs a reproducible health audit for structure, provenance, links, understanding, lifecycle, and promotion readiness.
npx skills add https://github.com/Mark393295827/third-brain-v7-skills --skill wiki-lint
<skill_contract>
<input>Vault root, path configuration, audit scope, exclusions, prior baseline, and explicit repair authorization if any.</input>
<output>A reproducible, severity-ranked wiki health report with file-level evidence, debt queues, and bounded repair proposals.</output>
<done>All twelve checks record scope and receipts, findings are reproducible, and report-only mode leaves content unchanged.</done>
<non_goals>Silent deletion, immutable-source mutation, unapproved repair, semantic rewrite, or health claims without scan evidence.</non_goals>
Audit the wiki as a governed knowledge graph. Report prioritized, reproducible findings; make no content mutation unless separately authorized.
Provide: vault root, optional path config, audit scope, prior report, and whether repairs are authorized. Default to report-only.
<intake>
Resolve configured source, concept, entity, clipping, daily, system, and log paths. Record scan timestamp, file count, exclusions, and prior baseline. Fail closed if the supplied path is not the intended vault.
</intake>
<unknowns_gate>
If the vault root or path semantics are ambiguous, return NEEDS_INPUT before scanning or writing. Missing optional directories are findings; inaccessible required directories are BLOCKED_PERMISSION.
</unknowns_gate>
<execute>
Run twelve checks and preserve file-level evidence:
10. permission, immutable-source, and human-approval boundaries;
11. daily-loop receipts and flywheel write-back;
12. V7 promotion-gate readiness for proposed rules.
Classify P0 integrity loss, P1 broken provenance/navigation, P2 debt, and P3 improvement. Prefer deterministic checks; label semantic judgments separately.
</execute>
<evaluate>
Re-scan a sample of findings, deduplicate root causes, and compare counts with the prior baseline. A report is invalid if paths, scan scope, or reproduction details are absent. If repair was authorized, run the relevant check again after each bounded repair.
</evaluate>
<state_contract>
Persist {run_id, status, attempt, budget, evidence, unknowns, last_error, next_action} plus vault fingerprint, scan scope, finding ledger, severity counts, baseline delta, authorized repairs, and receipts. Never overwrite the prior report.
</state_contract>
NEEDS_INPUT: vault identity or configured path semantics are unclear.BLOCKED_PERMISSION: required files cannot be read or an authorized report cannot be written.VERIFY_FAILED: a finding cannot be reproduced; downgrade or remove it.BUDGET_STOP: scan budget ends; return coverage and the unscanned queue rather than a whole-vault claim.Return status, result (severity-ranked findings and health summary), evidence (paths, checks, counts, samples), unknowns (coverage gaps), and next_action with owner and cheap verification.
</skill_contract>
Take mark393295827/wiki-lint from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.