docs
Installation
SKILL.md
docs
Generate, update, review, and retroactively create engineering documentation for any project.
Triggers: "docs new", "docs update", "docs review", "docs retcon", "create docs", "generate docs for", "update docs", "review docs", "document this", "add docs"
Critical Rules
- Never execute workflow logic here — this file only parses args and dispatches
- Step 0 always runs first — no exceptions
- Empty verb → ask the user what they want (AskUserQuestion, numbered-list fallback on non-Claude-Code platforms) — never run help silently. Unknown verb → run
help.md— never error silently. - Markdown output: soft-wrap prose, never hard-wrap — when any docs workflow writes a
.mdartifact, write each paragraph as one continuous line; do not insert manual newlines to wrap prose at a fixed column width. Newlines still separate paragraphs, list items, headings, and code fences. (Full guidance:references/language-guide.md.)
Skill directory resolution
Workflows invoke the vendored scripts (scripts/scaffold.py, scripts/scope.py) via $SKILL/scripts/.... Resolve the skill package root once and export it so every workflow bash block uses the same path — this works both from the repo skills/docs/ checkout and from an installed copy. Do NOT rely on $0 (it is the invoking shell, not this file):