skills/docs/SKILL.md
Dispatch docs subagent to audit, generate, and validate documentation against the codebase.
npx skillsauth add automagik-dev/genie docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audit existing documentation, identify gaps, generate what's missing, and validate every claim against actual code. Can be invoked standalone or as part of /work.
/work completes — suggest /docs to document what changedAudit and maintain these doc types:
| Type | Location | Purpose |
|------|----------|---------|
| README | README.md, */README.md | Project/module overview, setup, usage |
| CLAUDE.md | CLAUDE.md, */CLAUDE.md | Project conventions, commands, gotchas for AI agents |
| API docs | docs/api/, inline JSDoc/TSDoc | Endpoint contracts, request/response schemas |
| Architecture | docs/architecture.md, ARCHITECTURE.md | System design, data flow, component relationships |
| Inline docs | JSDoc, TSDoc, docstrings | Function/class/module-level documentation |
CLAUDE.md is a first-class documentation surface. When the codebase changes significantly (new commands, changed conventions, removed features), flag CLAUDE.md for update. CLAUDE.md should always reflect the current state of the project.
# Spawn a docs subagent
genie agent spawn docs
After shipping a new genie work dispatch fix, the orchestrator runs /docs to update documentation:
# 1. Spawn a docs subagent
genie agent spawn docs
# 2. Send the task
genie agent send 'Audit and update docs after PR #746 (initialPrompt added to dispatch). Check: README.md, CLAUDE.md, CO-ORCHESTRATION-GUIDE.md, skills/work/SKILL.md — verify dispatch examples match current code. Fix any stale references.' --to docs
The docs agent:
genie work, dispatch, protocolRouter.sendMessageinitialPrompt patternEvery session MUST end by writing a terminal outcome to the turn-session contract. This is how the orchestrator reconciles executor state — skipping it leaves the row open and blocks auto-resume.
genie done — work completed, acceptance criteria metgenie blocked --reason "<why>" — stuck, needs human input or an unblocking signalgenie failed --reason "<why>" — aborted, irrecoverable error, or cannot proceedRules:
blocked / failed require --reason.genie done inside an agent session (GENIE_AGENT_NAME set) closes the current executor; it does not require a wish ref.testing
Wire a Genie agent to an Omni channel in one canonical flow — register the agent, bind to an instance, verify the round-trip. Replaces the 5+ command legacy chain.
data-ai
Dispatch trace subagent to investigate unknown issues — reproduces, traces, and reports root cause for /fix handoff.
data-ai
Investigate bugs comprehensively — cascade through /trace, capture browser evidence, extract observability data, and auto-create a GitHub issue with all findings.
data-ai
Full PM playbook — triage backlog, prioritize, assign, track, report, escalate. Copilot, autopilot, or pair modes.