From wiki-skills
Audits a single wiki page by detecting uncited factual claims and verifying footnotes against cited sources using parallel subagents. Run after ingesting high-stakes pages.
npx claudepluginhub kfchou/wiki-skills --plugin wiki-skillsThis skill uses the workspace's default tool permissions.
Verify a single wiki page against its cited sources. Two phases: detect uncited factual claims, then verify cited claims by dispatching one subagent per source in parallel.
Audits markdown wiki for broken links, orphan pages, contradictions, stale claims, missing frontmatter, and coverage gaps. Generates categorized report with fixes.
Audits wiki for broken wikilinks, orphan pages, contradictions, stale claims, missing cross-references, index issues, and data gaps. Trigger on 'audit', 'lint', 'health check', or wiki quality improvements.
Scans Markdown wiki for structural issues (orphans, broken wikilinks, missing index, stubs), factual contradictions; auto-fixes possible problems, flags rest.
Share bugs, ideas, or general feedback.
Verify a single wiki page against its cited sources. Two phases: detect uncited factual claims, then verify cited claims by dispatching one subagent per source in parallel.
Find SCHEMA.md (search from cwd upward, or ~/wikis/). If not found, tell the user to run wiki-init first. Read SCHEMA.md for the wiki root path and the Citations section (the rules and footnote format the audit enforces).
If SCHEMA.md has no Citations section (older wiki, initialized before this skill existed): use the fallback convention below for this run, and offer at the end to append the Citations section to SCHEMA.md so future operations stay consistent.
Cite every non-common-knowledge factual claim. Granularity is paragraph or claim,
never per-sentence. Format: Markdown footnotes. Two citation kinds:
Quote: [^N]: <target> <locator> — "<verbatim quote>"
Synthesis: [^N]: <target> <locator> [synthesis] — <what supports the claim>
Three rules:
1. Target is one of: [[source-slug]] (a source-type wiki page), raw/<file> or
assets/<file> (a local file path), or a URL. Never an entity / concept /
analysis page.
2. A locator is present (§section, p.N, [HH:MM:SS], URL anchor, dated post).
3. Either a verbatim quote, or the [synthesis] tag plus a description of what
the cited range supports.
If the user did not name a page, ask which page to audit. Accept slug, filename, or absolute path. Resolve to wiki/pages/<slug>.md. Audit one page per run.
Read the full page. Note:
sources: list (which sources the page formally cites).[^N]: ...) and references ([^N] in body text).If the page has zero footnotes but contains factual content, that is itself the audit result — every claim becomes a Phase A finding. Still run Phase A; skip Phase B.
Dispatch one subagent. Give it:
SCHEMA.md.sources: list.Task: list every non-common-knowledge factual claim that lacks a footnote. Return a structured list of (line number, claim text, suggested-source-from-the-sources-list-or-"unknown").
The subagent applies the SCHEMA.md "what to cite" rule: paragraph- or claim-level granularity, common knowledge exempt.
For every footnote definition in the page, parse:
[[source-slug]], a path under raw//assets/, or a URL.[synthesis] description.Resolve each target to readable content:
[[source-slug]] → read wiki/pages/<source-slug>.md to find the raw file path (in its **Source:** line). Then read that raw file from raw/ or assets/.raw/<file> or assets/<file> → read the file directly.<URL> → check whether a cached copy exists in assets/ (filename derived from URL). If yes, read it. If not, mark the footnote 🚫 source-missing (do not re-fetch — that belongs in the fix step).Any target that cannot be resolved gets verdict 🚫 source-missing; do not dispatch a subagent for it.
Group resolvable footnotes by their resolved file (multiple footnotes against the same PDF read it once). Dispatch one subagent per file, in parallel using the Agent tool. Each subagent gets:
raw/, assets/, or cached URL).[synthesis] description.Each subagent returns, per footnote, one verdict and a 1-line note:
✅ supported — quote string-matches the source at the cited locator, or the [synthesis] description honestly summarizes the cited range.❌ unsupported — quote not found at the cited locator, or the claim is contradicted by the source.⚠️ partial — quote is paraphrased rather than verbatim (and lacks the [synthesis] tag), or the synthesis description overstates the cited range.For ❌ and ⚠️, the note must include what the source actually says, so the user can decide how to fix.
Why per-source, not per-footnote: PDFs are expensive to read. One read of a 30-page paper for five footnotes beats five reads.
Always write — do not ask permission. Path: wiki/pages/audit-<page-slug>-<today>.md.
---
title: Audit Report — <page-slug> — <today>
tags: [audit, maintenance]
sources: []
updated: <today>
---
# Audit Report — [[<page-slug>]] — <today>
## Summary
- Cited claims verified: N
- ✅ Supported: N ❌ Unsupported: N ⚠️ Partial: N 🚫 Source missing: N
- 🆘 Uncited factual claims: N
## 🆘 Uncited Claims (Phase A)
- Line 42: "Transformers replaced LSTMs as the default sequence model."
Suggested source: [[attention-is-all-you-need]] or unknown
Fix: add footnote, weaken claim, or remove
## ❌ Unsupported (Phase B)
- [^3]: claims "8 attention heads with 128 dims each"
Source says: "h = 8 parallel attention layers ... d_k = d_v = 64"
Fix: correct the dimension to 64
## ⚠️ Partial (Phase B)
- [^7]: [synthesis] description says "compares to RNNs across 4 benchmarks"
Source range covers 2 benchmarks, not 4. Tighten the description.
## 🚫 Source Missing
- [^5]: https://example.com/post — no cached copy in assets/
Fix: re-fetch source, or remove citation
## ✅ Supported
- [^1], [^2], [^4], [^6], [^8] — all verified
Add the report to wiki/index.md under the Maintenance category (create the category if it does not yet exist — wiki-lint uses the same category).
For each non-empty category, offer one at a time:
sources: list for support and propose footnotes for these claims?"[synthesis] tag where missing? (diffs first.)"raw/?"Apply only after user confirmation. Show the exact diff before each write.
wiki/log.mdAlways append — do not ask permission:
## [<today>] audit | [[<page-slug>]] — N supported, N unsupported, N partial, N uncited
Report: [[audit-<page-slug>-<today>]]
Fixed: <list, or "none">
wiki/pages/audit-<page-slug>-<today>.md