Wiki audit
Audit the compiled wiki pages to cross-check statements, highlight scientific contradictions, and output theses using a Map-Reduce architecture.From its SKILL.md
npx -y skills add Misaka16384/Wikify --skill wiki_auditAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.5 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
LLM Wiki — Audit Skill (wiki_audit)
Resolving script paths (read first): Commands below invoke scripts as
<BIN>/X.py(and a few as<SKILLS>/...). Resolve these to absolute paths once before running anything:
<SKILL_DIR>= the directory thisSKILL.mdlives in.<SKILLS>= theskills/folder containing this skill =<SKILL_DIR>/..<BIN>= thebin/folder beside it =<SKILL_DIR>/../../binDo not hardcode a fixed prefix like
.agents/binor../bin: shell relative paths resolve against the current working directory (usually the topic root), not this skill's location. Once resolved,<BIN>is typically.agents/binwhen invoked from the hub root, or.claude/binfrom inside a topic directory.
This skill handles factual auditing, truth-seeking evaluations, and thesis-driven investigations across the compiled knowledge base. To prevent context window limits on large vaults, it strictly uses a Map-Reduce architecture.
Tooling (framework-agnostic): This skill is written tool-agnostic. Map each capability to your own agent's tool — read-file (
Readin Claude Code,view_filein Antigravity), sub-agent / parallel task (Task/Agentin Claude Code,invoke_subagentin Antigravity), shell (Bash/PowerShell). Use the closest equivalent your framework provides; if a parallel sub-agent tool is unavailable, audit each file subset sequentially yourself.
When the user asks to perform an audit or truth check on their vault:
-
Map (Deterministic Inventory — SCRIPT FIRST):
- Run the wiki inventory script to get a deterministic file listing — do NOT manually browse or rely on grep keywords alone:
python <BIN>/llm-wiki.py stats <TOPIC_DIR> wiki-summary - Parse the JSON output to understand the vault structure: total files, per-directory counts, file titles, and which files have sources.
- Graph Analysis (MANDATORY): Run
python <BIN>/llm-wiki.py graphto ensure the local graph database is strictly up to date. Do NOT skip this, otherwise you will read stale data! - Then query the knowledge graph using
python <BIN>/query-graph.py "<SQL>". Do not use directsqlite3command line execution. Graph DB Schema:nodes(id TEXT PRIMARY KEY, path TEXT, title TEXT, type TEXT, category TEXT, summary TEXT, created TEXT, updated TEXT)edges(source_id TEXT, target_id TEXT, type TEXT)tags(node_id TEXT, tag TEXT)aliases(node_id TEXT, alias TEXT)Example Queries:SELECT path FROM nodes WHERE category='reference' AND id IN (SELECT node_id FROM tags WHERE tag='quantum-mechanics')SELECT n.path, e.type FROM nodes n JOIN edges e ON n.id = e.target_id WHERE e.source_id = 'some-concept-id'
- Use the inventory and graph results to select the files most relevant to the user's audit query. Then use
python <BIN>/search-wiki.py "<regex>" <files...>for targeted keyword searches within those specific files. - Do NOT attempt to read all compiled cards manually.
- Run the wiki inventory script to get a deterministic file listing — do NOT manually browse or rely on grep keywords alone:
-
Reduce (Subagent Phase):
- Use your agent's sub-agent / parallel-task tool to spawn one or more "Audit Subagents". Assign each subagent a specific subset of the relevant files. (If no sub-agent tool exists, audit each subset sequentially yourself.)
- Subagent Output Contract (MANDATORY): Each subagent MUST structure findings as:
CLAIM: "<exact quote from conflicting file>" EVIDENCE: "<exact quote from file>" SOURCE_TYPE: local_wiki SOURCE: <wiki file path> CONTRADICTS_SOURCE: <conflicting wiki file path> SEVERITY: high|medium|low EXPLANATION: <why these claims conflict> - If a subagent fails or times out, log the failure and proceed with available results.
-
Verify Citations (MANDATORY):
- Save all subagent outputs to
scratch/temp_claims.txt. - Run
python <BIN>/verify_claims.py scratch/temp_claims.txt --topic-dir "<TOPIC_DIR>" - Discard any finding that is reported as
[UNVERIFIED]. Log discarded findings separately.
- Save all subagent outputs to
-
Synthesize: Merge the verified findings into a structured investigation report (Thesis).
-
Produce Theses:
- Save the compiled Thesis report under
wiki/theses/YYYY-MM-DD-<slug>.mdwith proper YAML frontmatter:--- title: "Thesis: <descriptive title>" type: thesis category: reference created: YYYY-MM-DD sources: - <list of wiki files examined> tags: [audit, thesis] confidence: <high|medium|low> summary: "<1-2 sentence summary of findings>" --- - Post-Write Validation (MANDATORY): Run:
python <BIN>/validate-output.py "<thesis_file>" --schema thesis --wiki-root "<TOPIC_DIR>"If validation fails, fix the reported issues before proceeding. - Run:
python <BIN>/llm-wiki.py stats <TOPIC_DIR> verify-refs "<thesis_file>"to ensure all[[references]]in the thesis point to existing files.
- Save the compiled Thesis report under
-
Log: Update the activity log
log.mdwith: audit query, files examined count, findings count, findings discarded count.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.