Wiki lint

From Mark393295827/third-brain-v5-skills · View interactive version

Wiki lint is an AI agent skill from the GitHub repository Mark393295827/third-brain-v5-skills. Use when an Obsidian wiki needs a reproducible health audit for structure, provenance, links, understanding, lifecycle, and promotion readiness.

How to use this skill

Skill file

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.

Usage Template

Provide: vault root, optional path config, audit scope, prior report, and whether repairs are authorized. Default to report-only.

Workflow

<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:

  1. required frontmatter and stable identifiers;
  2. broken wikilinks and unresolved embeds;
  3. source references and block locators;
  4. orphan concepts and isolated entities;
  5. duplicate titles or semantic duplicates;
  6. stale notes and unresolved contradictions;
  7. single-source or weak-provenance claims;
  8. concept structure and understanding-gate integrity;
  9. clipping archive and source lifecycle;
  10. permission, immutable-source, and human-approval boundaries;
  11. daily-loop receipts and flywheel write-back;
  12. V8.1 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>

Failure Protocol

Output Contract

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.

Edge Cases

Success Metrics

Quality Gates

</skill_contract>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.