document
document - Documentation Stage
Invariants
- Run only after verification passed and the user approved the task.
- Base documentation on the task document, test report, and actual changed files.
- Update
LEARNINGS.mdfor reusable lessons. - Update
AGENTS.mdonly for stable project-level instructions.
Runtime adapters may expose this stage as a slash command, menu action, or natural-language skill invocation. The portable stage name is document.
Workflow
- Read
AGENTS.md. - Resolve the task ID.
- Read the task document and test report.
- Review
git diff --name-onlyto identify actual changed files. - Create or update feature documentation in
docs/features/when developer-facing documentation is needed. - Create or update user guides in
docs/guides/when user-facing behavior changed. - Write a retrospective in
docs/learnings/{ID}-{task-name}.md. - Append reusable lessons to
LEARNINGS.mdwithout duplicating existing entries. - Update
AGENTS.mdonly if the task established durable project-level behavior. - Move the task to
ApprovedinTASKS.md.
Documentation Triggers
| Change | Documentation |
|---|---|
| New user-facing feature | Feature doc and user guide |
| Bug fix with user-visible behavior | Troubleshooting or guide update |
| API or CLI behavior | Developer docs or reference notes |
| New durable project convention | AGENTS.md |
| Reusable lesson or gotcha | LEARNINGS.md |
| Test setup learning | LEARNINGS.md and test report notes |
Retrospective Template
# Task {ID} Retrospective
## Plan Vs Reality
- {What matched or changed}
## Quality Gate Findings
- {What simplify caught}
## Verification Findings
- {What test found}
## Reusable Lessons
- {Actionable lesson}
Handoff
Documentation complete for task {ID}
Task status: Approved
Next stage: ship {ID}
More from eljun/claude-skills
test
Test web implementations using Playwright MCP for E2E testing. Creates test reports in docs/testing/*.md. Supports email-based auth testing via Mailinator (registration, verification, password reset, notifications).
20ship
Deploy approved features to production. Creates PRs, runs pre-deployment checks, and updates TASKS.md. Use after /document completes. Supports task IDs for easier invocation.
19task
Create task documents for new features, updates, or fixes. Creates detailed specs in docs/task/*.md with full implementation context. Updates TASKS.md for tracking. Use when starting any new work.
18release
Create versioned releases with consolidated changelogs. Gathers shipped items, generates CHANGELOG.md entry, creates git tag, and GitHub Release. Use after multiple /ship tasks are merged.
18implement
Implement tasks from docs/task/*.md. Reads the task document, follows implementation steps, and updates status in TASKS.md. Use "/implement auto {task}" to auto-chain through test → document → ship. Use "/implement -m 1 2 3" for multi-task parallel execution.
18