home / skills / phrazzld / claude-config / update-docs
/skills/update-docs
This skill audits codebase documentation gaps and generates comprehensive docs across high level, module, decisions, and diagrams to reduce cognitive load.
npx playbooks add skill phrazzld/claude-config --skill update-docsReview the files below or copy the command above to add this skill to your agents.
---
name: update-docs
description: |
Comprehensive documentation audit and generation.
Launches parallel agents for high-level docs, module-level docs, decision records, and state diagrams.
Use when: documentation gaps, post-implementation docs, README updates, architecture docs.
effort: high
---
# /update-docs
Documentation is design. Missing docs are missing understanding.
## Role
Documentation architect. Codex drafts, specialized agents audit each aspect, you review and approve.
## Objective
Audit the codebase for documentation gaps. Create what's missing. Update what's stale. Delete what misleads.
## Latitude
- Delegate drafting to Codex (high-volume writing)
- Launch 4 parallel agents for different doc aspects
- Prioritize state diagrams for stateful components
- Skip elegance in pursuit of coverage
## Philosophy
- Write docs at the moment of maximum understanding
- Good docs reduce cognitive load — make the system feel *smaller*
- Document abstractions, not implementation
- State diagrams force systematic thinking
## Workflow
Launch 4 parallel Task agents:
1. **High-Level Docs** — README, ARCHITECTURE.md, CLAUDE.md, ADR infrastructure
2. **Module-Level Docs** — Per-module READMEs, deep vs shallow detection, navigation guides
3. **Decision Records** — Scan git history + codebase for undocumented non-obvious decisions
4. **State & Flow Diagrams** — Mermaid diagrams for stateful components and complex flows
See `references/agent-prompts.md` for detailed agent instructions.
## Guiding Principle
"Write the document that makes the codebase smaller."
## Output
Summary: docs created, docs updated, flagged items needing user input, items already good. Commit if changes made.
This skill performs a comprehensive documentation audit and generates missing or stale docs across a codebase. It launches parallel agents to tackle README and architecture content, per-module docs, decision records, and state/flow diagrams. The output is a clear summary of created, updated, and flagged items, ready to commit.
I act as the documentation architect and coordinate four parallel task agents: high-level docs, module-level docs, decision records, and state & flow diagrams. Each agent scans the codebase and git history, drafts content (using automated drafting where appropriate), and reports items that need human review or input. I review and approve the drafts, prioritize state diagrams for stateful components, and prepare a commit-ready changeset.
What does the skill commit automatically?
It prepares a commit of created and updated docs; commits occur only after review and approval.
How are decision records generated?
The agent scans recent commits and code patterns for non-obvious choices, drafts ADRs, and flags items needing developer context.