do-wiki-build
Skill0 starsChanged 6 months agoApache-2.0View on GitHub
Create or extend an Obsidian-friendly markdown wiki scaffold in the current workspace. Use this when the user wants to build a wiki, set up a knowledge base, create a research vault, or scaffold a living markdown note graph before adding sources with `/do-wiki-add`. Not for importing or normalizing an existing wiki-like corpus; use /do-wiki-align for that.
In this repository15 other files it gives its agents.
- agent-md-improverSkill
- do-agentsSkill
- do-amendSkill
- do-planSkill
- do-researchSkill
- do-startSkill
- do-wiki-addSkill
- do-wiki-alignSkill
- do-wiki-amendSkill
- do-wiki-learningsSkill
- do-wiki-lintSkill
- do-wiki-querySkill
- do-wiki-reviewSkill
- revise-agent-mdSkill
- setup-obsidian-vaultSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 15 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Follow the framework closely:
- Distinctive: line 38
Before creating anything, inspect the current workspace.
- Distinctive: line 40
Read the most relevant files, including when present:
- Distinctive: line 52
Prefer extending an existing wiki over creating a parallel one.
- Distinctive: line 54
Use the current workspace conventions when they are clear.
- Very specific: line 80
Do not create a separate root overview.md.
- Distinctive: line 91
Use them as templates, but adapt to the current workspace and the user's stated wiki goal.
- Very specific: line 95
Ensure a clear raw-source location.
- Very specific: line 101
If an existing root guidance file exists, add a brief pointer to <wiki root>/SCHEMA.md if it can be done cleanly.
- Very specific: line 110
If a legacy <wiki root>/overview.md exists, fold still-useful content into index.md and remove it.
- Distinctive: line 114
Create needed category directories.
- Very specific: line 116
Do not create source-derived note content from raw files in this skill.
- Very specific: line 122
Do not fabricate content that should come from later /do-wiki-add runs.
- Very specific: line 136
If yes: invoke the setup-obsidian-vault skill with <obsidian vault root> as the argument, not <wiki root> when those paths differ.
- Distinctive: line 144
If no: skip. Wiki runs in fallback-only mode.
- Very specific: line 146
If yes: read ${CLAUDE_SKILL_DIR}/references/qmd-usage.md and follow the setup instructions there (installation check, collection …
- Very specific: line 148
If setup fails at any point: the wiki remains fully functional.
- Distinctive: line 180
If you found an existing wiki and only refined it, say so explicitly.
- Distinctive: line 186
Prefer extending an existing wiki over creating a second one.
- Distinctive: line 187
Keep the structure small and obvious.
- Distinctive: line 188
Prefer many small linked notes over monoliths when durable nodes exist.
- Very specific: line 192
Keep root-level orientation in index.md.
- Distinctive: line 193
Avoid creating isolated durable notes that are only visible from the file tree.
- Very specific: line 196
Do not perform source ingestion or create source-derived notes in this skill.
- Distinctive: line 197
If the workspace is too ambiguous to place the wiki safely, ask the smallest follow-up question needed.
- Distinctive: line 200
If qmd setup is offered but fails, leave the wiki usable and report the failure.
- Very specific: line 201
If qmd setup succeeds, record collection details in .wiki-metadata.json and reference it in SCHEMA.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a senior engineer and knowledge-base architect working in the current workspace. Your job is to instantiate the LLM Wiki pattern as a durable markdown artifact, not to ingest sources or create source-derived notes yet.
Follow the framework closely:
- Raw sources are immutable inputs the agent reads but never rewrites.
- The wiki is the maintained markdown layer between the agent and the raw sources.
- The schema is the operating contract that tells future sessions how to maintain the wiki consistently.
Your deliverable is a minimal, usable wiki scaffold that future sessions can grow safely.
The target shape is an Obsidian-friendly note graph:
- many small markdown notes instead of a few large files when durable topics, entities, or concepts exist
- canonical kebab-case filenames for durable category notes such as
pricing-strategy.md - internal links written as
[[pricing-strategy]] - strong cross-links and reciprocal backlinks
index.mdacting as the single root hub, with a concise## Overviewsection near the top instead of a separate rootoverview.md
Input
The wiki goal is: $ARGUMENTS
Step 1 — Inspect workspace & choose structure
Before creating anything, inspect the current workspace.
Read the most relevant files, including when present:
- Root guidance such as
CLAUDE.md,AGENTS.md,README.md - Existing documentation or note directories such as
wiki/,knowledge/,vault/,notes/,docs/,research/,raw/ - Existing index or log files
Inspect structure first. Read raw-source files only enough to confirm paths, filenames, and layout. Do not summarize or synthesize their contents.
Determine whether a wiki-like structure already exists, whether there is a clear raw-source directory, and whether there is an existing schema to extend.
Once you choose locations, treat them as <raw root> and <wiki root>.
Prefer extending an existing wiki over creating a parallel one.
Use the current workspace conventions when they are clear. If not clear, default to:
raw/
README.md
assets/
wiki/
SCHEMA.md
index.md
log.md
topics/
entities/
concepts/
analyses/Rules:
raw/is for immutable source material. The wiki must never edit files there.- Durable category-note filenames are kebab-case. Special root files (
index.md,log.md,SCHEMA.md) keep their fixed names. - Internal note links use
[[kebab-case-note-name]]. - Each durable concept, entity, topic, or analysis gets one canonical note.
<wiki root>/index.mdis the home hub with a concise## Overviewsection near the top.<wiki root>/log.mdis the append-only chronological record.<wiki root>/SCHEMA.mdis the maintenance contract.
Do not create a separate root overview.md. Only create category directories that are justified.
Step 2 — Build scaffold
Read before writing:
${CLAUDE_SKILL_DIR}/references/wiki-architecture.md${CLAUDE_SKILL_DIR}/references/schema-template.md
Use them as templates, but adapt to the current workspace and the user's stated wiki goal.
A. Raw source layer
Ensure a clear raw-source location. Reuse existing directory or create raw/ and raw/assets/. Create or update raw/README.md stating that files are immutable source-of-truth inputs.
B. Schema layer
Create or update <wiki root>/SCHEMA.md. It must explain: purpose and scope, directory layout, page types, canonical note classes and filename patterns, wikilink conventions, reciprocal backlink expectations, index.md as single root hub with ## Overview, index.md and log.md maintenance, how /do-wiki-add adds sources, how query outputs can be filed back, how non-wiki skills consult and write back to the wiki, how lint passes work, raw-source immutability, and explicit uncertainty/contradiction/stale-claim rules.
If an existing root guidance file exists, add a brief pointer to <wiki root>/SCHEMA.md if it can be done cleanly.
C. Wiki layer
Create or update:
<wiki root>/index.md— single root hub. Near the top: concise## Overviewsection with scope, corpus, topic map, and[[kebab-case-note-name]]links. Group entries by page type. Give each listed page a one-line description.<wiki root>/log.md— append-only. Add initial entry:## [YYYY-MM-DD] build | Initial wiki scaffold
If a legacy <wiki root>/overview.md exists, fold still-useful content into index.md and remove it.
D. Starter pages and directories
Create needed category directories. Add starter pages only when they improve orientation. Prefer a minimal scaffold over empty placeholders.
Do not create source-derived note content from raw files in this skill. That belongs to /do-wiki-add.
Starter pages: canonical kebab-case filenames, human-readable H1 titles, meaningful outbound [[wikilinks]], linked from index.md or another durable note.
Acceptable starters: topic map page if clear subdomains exist, short analyses page if explicitly requested.
Do not fabricate content that should come from later /do-wiki-add runs.
Step 3 — Offer optional setup
Obsidian vault setup
Resolve <obsidian vault root> before asking. If <wiki root> is a subdirectory of the current workspace/project, use the parent of <wiki root> so Obsidian opens the whole project and the wiki remains a folder inside it. Only use <wiki root> itself when the wiki root is already the workspace/project root.
Use AskUserQuestion:
"Would you like to set up an Obsidian vault at the project root (
<obsidian vault root>) now? This will configure Obsidian settings and plugins so the wiki remains available as a folder inside the vault."
If yes: invoke the setup-obsidian-vault skill with <obsidian vault root> as the argument, not <wiki root> when those paths differ.
qmd retrieval setup
Use AskUserQuestion:
"Would you like to set up qmd retrieval for this wiki? This enables faster candidate discovery across wiki pages. The wiki will work fully without it, but qmd can accelerate searches when the wiki grows large."
If no: skip. Wiki runs in fallback-only mode.
If yes: read ${CLAUDE_SKILL_DIR}/references/qmd-usage.md and follow the setup instructions there (installation check, collection registration, index, record details in .wiki-metadata.json and SCHEMA.md, log entry).
If setup fails at any point: the wiki remains fully functional. Do not roll back the scaffold. Report the failure. Set retrieval.status in .wiki-metadata.json to "degraded" or "unmapped".
Step 4 — Report back
Wiki scaffold ready at <wiki root>
### Created or updated
- <path>
### Structure decisions
- Raw sources: <path>
- Wiki root: <path>
- Obsidian vault root: <path or "not configured">
- Schema: <path>
- Root guidance link: <path or "none">
### Retrieval setup
- qmd status: ready | unmapped | unavailable | deferred
- Collection: <name or "none">
- Metadata: <wiki root>/.wiki-metadata.json or "none"
### Next step
- `/do-wiki-add <local source path or topic>`If you found an existing wiki and only refined it, say so explicitly.
Rules
- Prefer extending an existing wiki over creating a second one.
- Keep the structure small and obvious.
- Prefer many small linked notes over monoliths when durable nodes exist.
- Raw-source files are immutable.
- Internal links use
[[kebab-case-note-name]]. - Durable category notes use canonical kebab-case filenames. Special root files keep their fixed names.
- Keep root-level orientation in
index.md; do not create a separate rootoverview.md. - Avoid creating isolated durable notes that are only visible from the file tree.
<wiki root>/log.mdis append-only.<wiki root>/index.mdmust be useful immediately after this skill runs.- Do not perform source ingestion or create source-derived notes in this skill. That belongs to
/do-wiki-add. - If the workspace is too ambiguous to place the wiki safely, ask the smallest follow-up question needed.
- qmd retrieval setup is optional. The wiki must work fully without it.
- Obsidian vault setup should target the project/workspace root that contains the wiki, not the
wiki/directory itself, unless the wiki is already the workspace root. - If qmd setup is offered but fails, leave the wiki usable and report the failure.
- If qmd setup succeeds, record collection details in
.wiki-metadata.jsonand reference it inSCHEMA.md. - Collection matching uses absolute path equality. Do not trust collection name alone.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

