| name | wiki |
| version | 2.0 |
| category | utilities |
| execution_speed | medium |
| token_efficiency | medium |
| triggers | ["/wiki","wiki read","wiki approve","wiki reject","wiki add","wiki search","wiki graph","open the wiki","check the wiki"] |
| cache_key | wiki-2.0 |
| dependencies | ["wiki-suggest"] |
| disable-model-invocation | true |
| description | Command set for the project wiki (Obsidian vault). Handles read, approve, reject, add, search, and graph subcommands against the docs/Obsidian Vault/ directory. Use when reading or modifying wiki content, approving suggestions from _suggestions/, or exploring wiki structure.
|
Commands
| Command | What It Does |
|---|
/wiki read <page> | Read a wiki page by name or partial match |
/wiki suggest | Run inference engine -- delegates to wiki-suggest skill |
/wiki approve <filename> | Merge a PENDING suggestion into the target wiki page |
/wiki reject <filename> <reason> | Archive a PENDING suggestion with rejection reason |
/wiki add <page> <content> | Create or append to a wiki page |
/wiki search <term> | Search wiki content by keyword |
/wiki graph | List all wiki pages with their outbound wikilinks |
/wiki | Show this command list + vault health summary |
Project Binding
See .claude/skills/_shared/PROJECT-BINDING.md. Field = wiki-path:. Marker = docs/Obsidian Vault/*/. Default = docs/Obsidian Vault/[project-name]/ where project-name = current working directory basename.
Once bound, all subcommands use this path. State the resolved path on first invocation this session.
/wiki read <page>
- Search for
<page> in the vault directory -- match by filename (case-insensitive, partial OK).
- If multiple matches, list them and ask which to open.
- Read and display the file content.
- Note any wikilinks
[[...]] that may be worth following.
/wiki suggest
Delegate entirely to the wiki-suggest skill. Say: "Delegating to /wiki-suggest." Then invoke wiki-suggest with the current scope.
/wiki approve <filename>
Approve a PENDING suggestion and merge into the wiki.
- Read
_suggestions/<filename> (or match by partial name if unambiguous).
- Confirm the
topic: frontmatter field -- this names the target wiki page (e.g., patterns/hook-triad).
- Read the target wiki page (create it if it does not exist).
- Append or replace the relevant section with the suggestion content.
- Update the vault index (
*Index.md) if a new page was created.
- Get today's date deterministically:
node -e "console.log(new Date().toISOString().slice(0,10))". Append to log.md: ## [date] ingest | <topic> -- approved from _suggestions/<filename>
- Delete the
PENDING_* file from _suggestions/.
- Print:
Approved: <filename> -> <target page>
/wiki reject <filename> <reason>
Reject a PENDING suggestion and keep it as audit trail.
- Read
_suggestions/<filename>.
- Append the rejection reason as a new section at the bottom:
## Rejection
**Date:** YYYY-MM-DD
**Reason:** <reason>
- Rename the file: replace
PENDING_ prefix with REJECTED_.
- Print:
Rejected: <filename> -> REJECTED_<rest-of-name>
/wiki add <page> <content>
Add content directly to the wiki (no approval step).
- Get today's date deterministically:
node -e "console.log(new Date().toISOString().slice(0,10))".
- If
<page> exists: append <content> as a new section with that date.
- If
<page> does not exist: create it with standard frontmatter + <content> as the body. Use confidence: HIGH and source: direct since this is human-authored.
- Update vault index if new page created.
- Append to
log.md: ## [date] ingest | <page> -- direct add
- Print:
Added to: <page>
/wiki search <term>
- Grep all
*.md files in the vault for <term> (case-insensitive).
- Return matches as
filename:line: <matching line> -- at most 20 results.
- If zero matches: say so and suggest
/wiki graph to browse structure.
/wiki graph
Run .claude/skills/wiki/wiki-graph.sh <vault-path> for a deterministic wikilink listing, then augment with the tree layout below.
List wiki structure as a compact tree:
Vault: docs/Obsidian Vault/[Project Name]/
Index.md -> [[Skills Index]], [[Hooks Index]], [[ADR Index]], ...
ADR Index.md -> [[ADR-001-...]], [[ADR-002-...]], ...
patterns.md -> [[ADR Index]], [[glossary]], [[requirements]]
glossary.md -> [[ADR Index]], [[patterns]], [[requirements]]
...
_suggestions/
PENDING_YYYY-MM-DD_<topic>.md (N pending)
REJECTED_YYYY-MM-DD_<topic>.md (N rejected)
List only first-level wikilinks per page (not recursive). Count pending + rejected separately.
/wiki (no subcommand)
Show:
- This command list (above).
- Vault health summary:
- Vault path resolved to:
<path>
- Pages: N
- Pending suggestions: N
- Rejected suggestions: N
- Log entries: N
- Last log entry:
<entry text>
Boundaries
- Never modify
raw/ source files if they exist -- those are immutable.
- Never delete REJECTED files -- they are audit trail.
- Never approve a suggestion that contradicts an ACCEPTED ADR. Halt and tell the user.
/wiki add and /wiki approve both append to log.md -- do not skip this step.
- When in doubt about which wiki page a suggestion targets, ask before merging.
Integration with Other Skills
/wiki-suggest -- Inference engine; /wiki suggest delegates to it.
/llm-wiki -- Teaches the three-layer pattern this skill operates within.
/grill-with-docs -- Feeds domain decisions into the wiki as source material.
/phase -- Phase status tracked in docs/phase-status/; wiki tracks broader project knowledge.