dw-install
Installation
SKILL.md
dw-install
Ensure the diffwiki CLI is present. Run this when a dw-* skill can't find diffwiki. This skill's only job is the CLI — templates and wiki setup belong to /dw-init.
Steps
- Detect.
diffwiki --version. If it prints a version, skip to step 3. - Install the CLI.
npm i -g diffwiki(fallback:pnpm add -g diffwiki). Re-rundiffwiki --version. If it still fails, tell the user to install Node ≥ 20 / npm and stop. - Health check.
diffwiki doctor; report any ✖. - Offer setup. Suggest
/dw-initto create a wiki and seed the authoring templates (~/.diffwiki/templates, viadiffwiki templates init).
Rules
- Install ONLY the global
diffwikipackage. Templates ship with the CLI and are seeded by/dw-init(ordiffwiki templates init) — not here. - Idempotent; safe to re-run.