wiki-audit
When This Skill Activates
- User asks for a per-page audit or invokes a pre-merge gate.
- A vault is resolvable (see step 0).
Output language
Run skillwiki lang at the start. Generate audit narrative and --human summaries in the resolved language. Frontmatter keys, file names, schema headers, index/log structural lines, citation markers, and wikilink slugs MUST stay English.
Pre-orientation reads
Standard four reads.
Steps
- Resolve vault and language. Run
skillwiki path(fail if NO_VAULT_CONFIGURED) andskillwiki lang. skillwiki audit <page>. Read the JSON report.- Reason over the report:
- Resolve citations against active
raw/,raw/archived/,raw/duplicates/, and append-only relocation history. Legacy_archive/raw/is read-compatible only, not a valid new destination. - For each unresolved marker: distinguish a genuinely missing target from a stale historical path, then suggest ingesting the missing source or correcting maintained-page metadata.
- For each
unused_sourcesentry: suggest adding a body marker or removing fromsources:. - For each
missing_from_sourcesentry: suggest adding tosources:.
- Resolve citations against active
- Append one
log.mdentry summarizing the audit and any suggested follow-ups.
Stop conditions
None — audit always completes.
Forbidden
- Auto-applying suggested fixes (audit is observation-only).
- Rewriting raw evidence while repairing an audit finding.