wiki-lint
Installation
SKILL.md
wiki-lint
When This Skill Activates
- User asks for a vault health report, lint, or audit.
- Periodic maintenance.
Pre-orientation reads
Standard four reads.
Steps
- Resolve vault:
skillwiki path(record source for context).
- CRITICAL: Verify the correct vault when the user has multiple wiki instances (e.g., ~/wiki vs ~/wiki-fin). User may explicitly specify which vault to target — confirm before destructive operations.
- For a whole-system health report, run
skillwiki health <vault> --out /tmp/skillwiki-health.json --no-fail. Read the JSON envelope from stdout or the report file. Treatskillwiki doctoras setup/runtime diagnostics only, not a vault-content health report. - For lint-only maintenance, run
skillwiki lint <vault> --summary. This returns bounded bucket counts, capped examples, anddetails_commandhints without full item arrays. - Drill into important buckets with
skillwiki lint <vault> --only <bucket>when examples are insufficient for remediation. - Reason over findings; present grouped by severity with concrete suggested actions per kind. If the CLI was recently updated with new lint checks, re-running lint on the full vault may flag pre-existing pages that predate the new rule — treat these as legitimate findings, not false positives.
- Treat
sensitive_contentas a security error. Drill down withskillwiki lint <vault> --only sensitive_content --human. Redaction is allowed as a security exception to raw immutability only throughskillwiki lint <vault> --fix --only sensitive_content; never print the secret value in the report. - If
log_rotate_neededis present and the user consents, runskillwiki log-rotate <vault> --apply. Otherwise leave alone. - Post-migration verification: If the user recently migrated content (e.g., moved entity/concept pages to another vault), re-run
skillwiki lint <vault> --summaryand verify that broken_wikilinks count decreased. Remaining broken links for migrated content indicate pages still referencing the moved files — these should be cleaned up (remove citations or migrate the referencing pages too). - Append a
log.mdentry summarizing lint counts only when the user asked to record the maintenance result. Do not log routinehealthreports by default.
Stop conditions
None — lint reports all findings even on per-page errors.