git-wiki
Installation
SKILL.md
Project Wiki
Maintain local wikis for a code project under .wiki by default, with optional language-specific roots such as .wiki-cn, .wiki-fr, or an exact user-named wiki directory such as wiki-cn.
Source of truth is always the current git-tracked repository files at HEAD, including tracked documentation in .docs/ and docs/, not the wiki.
The wiki files themselves may be untracked; read and update the live selected wiki root from the working tree when present.
Rules
- Operate only on git-tracked files and git history
- Ignore staged and unstaged uncommitted changes; ingest and query verification use committed content at
HEADonly - Select exactly one wiki root per request. Use
.wikiby default; use the explicit root or language the user names, such as.wiki-cn,wiki-cn,.wiki-fr, "Chinese wiki", or "French wiki" - Each wiki root is independent. Do not sync, compare, translate, merge, or copy pages between language roots unless the user explicitly asks
- Exclude all wiki roots from git-based source selection:
.wiki/**,.wiki-*/**, andwiki-*/** - Do not assume any wiki root is git-tracked; use the selected root's current
index.mdcheckpoint when it exists - Every wiki page must have YAML frontmatter
- The selected root's
index.mdmust be updated on every ingest - Do not ask the user before ingesting
- Export reads the live working-tree files under the selected wiki root, not the git-tracked repository at
HEAD