dot_config/ai_templates/skills/knowledge/wiki-map/SKILL.md
Explicitly triggered when the user mentions `wiki-map`. It ingests, queries, lints, or compiles a markdown wiki.
npx skillsauth add pascalandy/dotfiles wiki-mapInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Four wiki operations in one skill -- ingest sources into a persistent knowledge base, query across pages with citations, lint for structural health, and compile implied-missing entities into first-class pages -- routed automatically based on what you need.
Load references/ROUTER.md to determine which sub-skill handles this request.
For the full schema, hard rules, and orientation protocol, read references/SCHEMA.md.
Reading principle: Agents should read progressively — only load documents when specific information is needed. Do not read all sub-skills or workflows upfront.
Most people's experience with LLMs and documents is stateless retrieval: upload files, the LLM finds relevant chunks at query time, generates an answer, and forgets everything. Nothing compounds. Ask a subtle question that requires synthesizing five documents, and the LLM re-derives the answer from scratch every time.
Maintaining a knowledge base manually is the alternative, but humans abandon wikis because the maintenance burden grows faster than the value. Updating cross-references, preserving provenance, tracking contradictions, and keeping structure consistent across dozens of pages is relentless bookkeeping.
The result:
The LLM incrementally builds and maintains a persistent wiki -- a structured, interlinked collection of markdown files. New sources are ingested into existing pages or new pages with provenance. Cross-references are maintained. Contradictions are recorded in frontmatter. Query answers can be filed back into the wiki. Lint treats the wiki like a codebase, checks for drift, and refreshes nested wiki trees bottom-up when child wiki boundaries already exist. Compile mines the wiki's own pages for implied-missing entities and promotes them to first-class pages under approval.
Four operations make this work:
The collection SKILL.md loads references/ROUTER.md, which routes to the right operation based on keyword matching. Each operation has its own MetaSkill.md, workflows, and conventions, but all of them share one canonical schema in references/SCHEMA.md.
| Component | Path | Purpose |
|-----------|------|---------|
| Skill router | references/ROUTER.md | Dispatch table routing requests to sub-skills |
| Global schema | references/SCHEMA.md | Canonical tag model, frontmatter, hard rules, orientation protocol |
| Ingest skill | references/Ingest/MetaSkill.md | Organize files, process sources, delete pages, upgrade old wikis |
| Ingest workflows | references/Ingest/workflows/ | 5 workflows: CreateWikiMap, IngestSingle, IngestBatch, Delete, UpgradeSchema |
| Query skill | references/Query/MetaSkill.md | Search and synthesize answers from the wiki |
| Query workflows | references/Query/workflows/ | 3 workflows: Search, DeepQuery, FileAnswer |
| Lint skill | references/Lint/MetaSkill.md | Health-check and maintain wiki quality |
| Lint workflows | references/Lint/workflows/ | 3 workflows: FullSweep, QuickCheck, RecursiveUpdate |
| Compile skill | references/Compile/MetaSkill.md | Promote implied-missing entities into first-class pages from the wiki itself |
| Compile workflows | references/Compile/workflows/ | 1 workflow: CompileWiki (6 phases, atomic plan-then-write) |
Summary:
delegate-to-sub when the harness supports sub-agents; falls back to sequential mining otherwise.| Trigger | What Happens | |---------|--------------| | "create a wiki map for [topic]" | Routes to Ingest -> runs CreateWikiMap workflow | | "organize these files into a wiki" | Routes to Ingest -> runs CreateWikiMap workflow | | "ingest this article into the wiki" | Routes to Ingest -> runs IngestSingle workflow | | "process these 5 sources" | Routes to Ingest -> runs IngestBatch workflow | | "delete this wiki page" | Routes to Ingest -> runs Delete workflow | | "upgrade this wiki to v2" | Routes to Ingest -> runs UpgradeSchema workflow | | "what does the wiki say about X?" | Routes to Query -> runs Search or DeepQuery workflow | | "synthesize everything we know about X" | Routes to Query -> runs DeepQuery workflow | | "save that answer as a wiki page" | Routes to Query -> runs FileAnswer workflow | | "health check the wiki" | Routes to Lint -> runs FullSweep workflow | | "refresh wiki tree" / "rebuild index routes" | Routes to Lint -> runs RecursiveUpdate workflow | | "wiki-map update" (bare) | Ambiguous -> router asks the user: lint, refresh, or compile? | | "find orphan pages" | Routes to Lint -> runs QuickCheck workflow | | "check provenance" | Routes to Lint -> runs QuickCheck workflow | | "compile the wiki" / "fill wiki gaps" / "is the wiki complete?" | Routes to Compile -> runs CompileWiki workflow (requires recent Lint report) | | "promote missing entities" / "concept mining" | Routes to Compile -> runs CompileWiki workflow |
User: create a wiki map from my health-notes folder
AI responds:
Running the **CreateWikiMap** workflow in the **Ingest** skill...
Directory scan: health-notes/
Files found: 12
Need to move to references/: 10
| File | Current Location | Proposed Name |
|------|------------------|---------------|
| Vitamin D Notes.md | ./ | references/vitamin-d-notes.md |
| sleep_tracking.md | ./ | references/sleep-tracking.md |
| Dr Smith article.md | ./ | references/dr-smith-article.md |
Proceed? [user confirms]
Actions taken:
- Moved 10 files into references/ (body content untouched)
- Renamed 8 files to kebab-case
- Added frontmatter to 6 files (body content untouched)
- Created: INDEX.md (12 entries)
- Created: references/LOG.md
User: ingest this article on vitamin D and sleep into the health wiki
AI responds:
Running the **IngestSingle** workflow in the **Ingest** skill...
Oriented: health-wiki | 47 pages | 30 recent log entries | no structure drift
Key takeaways:
1. Vitamin D deficiency correlates with poor sleep quality
2. Optimal levels: 40-60 ng/mL
3. Dr. Smith's 2024 study used a 500-person cohort
Actions taken:
- Created: references/vitamin-d-and-sleep.md (kind/project)
- Created: references/dr-smith-profile.md (topic/relationship)
- Updated: references/sleep-quality-factors.md
- Updated: references/supplement-comparison.md
- Updated: INDEX.md
- Appended: references/LOG.md
User: what supplements affect sleep quality according to the wiki?
AI responds:
Running the **DeepQuery** workflow in the **Query** skill...
Based on 6 wiki pages:
1. Magnesium -- [[magnesium-and-sleep]]: strongest evidence base
2. Vitamin D -- [[vitamin-d-and-sleep]]: deficiency correlation
3. Melatonin -- [[melatonin-overview]]: direct mechanism, timing-dependent
Contradictions:
- [[dr-jones-review]] disputes the magnesium effect
- [[magnesium-and-sleep]] cites controlled trials showing significance
Source webclips: [[smith-2024-study]], [[supplement-review-2025]]
No runtime configuration is required. The skill works with any directory of markdown files that follows the shared schema.
The schema is global to this meta-skill. There is no per-wiki SCHEMA.md.
| Customization | Where | Impact |
|---------------|-------|--------|
| Tag taxonomy | references/SCHEMA.md | Add or revise kind/*, topic/*, status/*, pty/* values |
| Page template | references/SCHEMA.md + Ingest workflows | Change default page structure |
| Lint rules | references/SCHEMA.md + Lint workflows | Add or disable health checks |
| Query output formats | Query workflows | Add new synthesis formats |
| Compile recency window | references/Compile/workflows/CompileWiki.md Phase 2 | Default Lint-gate window is 20 log entries AND 14 days -- tighten or loosen per wiki |
| Compile mining cap | references/Compile/workflows/CompileWiki.md Phase 3 | Default top-N mining targets = 30 |
testing
Explicitly triggered when the user mentions `single-skill-creator`. It scaffolds a new `SKILL.md`.
testing
Explicitly triggered when the user mentions `qmd`. It searches local markdown or QMD collections.
development
Explicitly triggered when the user mentions `ontology-map`. It builds, refreshes, or checks an ontology.
testing
Explicitly triggered when the user mentions `obsidian`. It handles Obsidian vault operations.