feat: split wiki — using-wiki (policy) + setup-wiki (one-time)
Rename `wiki-maintainer` to `using-wiki` (rename via git mv preserves file history). Strip greenfield/bootstrap content out of it; add a Prerequisites section that delegates to the new `setup-wiki` skill when `.wiki/` is missing or non-canonical. New `setup-wiki` skill: 6-phase procedure (sanity → discovery → plan + confirm → backup → create/migrate → verify → report). Two modes — greenfield (no `.wiki/`) and migrate (existing non-canon, e.g. SUMMARY.md + source/). Confirmation gate before any write. Templates for each canon file (`CLAUDE.md` schema, `index.md`, `log.md`, `overview.md`, `raw/README.md`) baked in. `project-bootstrap` Step 3 now delegates to `setup-wiki` instead of holding inline templates that drift from canon. After this commit, `~/.claude/skills/wiki-maintainer/` still exists as a stale install — the user will rm it manually after commit (c) lands the tasks split. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -76,12 +76,11 @@ If it exists — leave it untouched.
|
||||
|
||||
## Step 3 — .wiki/
|
||||
|
||||
If `.wiki/` already exists — skip it, notify the user.
|
||||
**Delegate to the `setup-wiki` skill.** It handles greenfield creation, canon migration, and the no-op case (already canon) uniformly, with its own confirmation gate. Don't recreate the layout inline here — that's how drift happens.
|
||||
|
||||
If it does not exist — create the **canonical Karpathy LLM-Wiki layout** (gist:
|
||||
https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f). The
|
||||
`wiki-maintainer` skill expects exactly this shape; do not invent your own
|
||||
names.
|
||||
If `setup-wiki` is not installed on this machine, **stop** and tell the user: project-bootstrap requires `setup-wiki` (and `setup-tasks`) installed. Don't fall back to ad-hoc creation.
|
||||
|
||||
**Reference (for context only — `setup-wiki` is the source of truth):** the canonical layout per Karpathy (gist: https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) and `using-wiki`:
|
||||
|
||||
```
|
||||
.wiki/
|
||||
|
||||
Reference in New Issue
Block a user