一键导入
wiki-audit
Audit the compiled wiki pages to cross-check statements, highlight scientific contradictions, and output theses using a Map-Reduce architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit the compiled wiki pages to cross-check statements, highlight scientific contradictions, and output theses using a Map-Reduce architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compile raw sources into detailed, Obsidian-compatible, interlinked Markdown pages under wiki/ references/ and concepts/.
Deduplicates concepts, splits overly broad concepts, and synthesizes multi-source concept definitions by dynamically searching and analyzing all papers that reference them.
Ingest new academic papers or PDFs into the raw/ folder of your active topic wiki using the local OCR model configured in config.yaml.
Ingest new academic papers, notes, or web articles into the raw/ folder of your active topic wiki.
Initialize a new topic workspace folder with standard raw/, wiki/, inbox/, and output/ directories.
Statically check and repair double-bracket linkages and frontmatter within your compiled wiki directory.
| name | wiki_audit |
| description | Audit the compiled wiki pages to cross-check statements, highlight scientific contradictions, and output theses using a Map-Reduce architecture. |
| commands | {"audit":"Audit the wiki contents using Map-Reduce to identify and flag contradictions or inconsistencies."} |
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):
python <BIN>/llm-wiki.py stats <TOPIC_DIR> wiki-summarypython <BIN>/llm-wiki.py graph to ensure the local graph database is strictly up to date. Do NOT skip this, otherwise you will read stale data!python <BIN>/query-graph.py "<SQL>". Do not use direct sqlite3 command 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'python <BIN>/search-wiki.py "<regex>" <files...> for targeted keyword searches within those specific files.Reduce (Subagent Phase):
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>
Verify Citations (MANDATORY):
scratch/temp_claims.txt.python <BIN>/verify_claims.py scratch/temp_claims.txt --topic-dir "<TOPIC_DIR>"[UNVERIFIED]. Log discarded findings separately.Synthesize: Merge the verified findings into a structured investigation report (Thesis).
Produce Theses:
wiki/theses/YYYY-MM-DD-<slug>.md with 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>"
---
python <BIN>/validate-output.py "<thesis_file>" --schema thesis --wiki-root "<TOPIC_DIR>"
If validation fails, fix the reported issues before proceeding.python <BIN>/llm-wiki.py stats <TOPIC_DIR> verify-refs "<thesis_file>"
to ensure all [[references]] in the thesis point to existing files.Log: Update the activity log log.md with: audit query, files examined count, findings count, findings discarded count.