Document Implementation Changes
Maintain the single source of truth for repository documentation, API changes, and developer onboarding instructions by updating technical documentation to reflect implemented features.
Pre-flight
{{WORKSPACE}} = workspace root. Resolve once per session and reuse: git rev-parse --show-toplevel; fall back to cwd outside a git repo.
- Before your first write, read
{{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/conventions.md — statuses, retries, artifact paths, and file ownership are defined there and are binding.
- Working folder:
{{WORKSPACE}}
- Target folders:
{{WORKSPACE}}/docs/, {{WORKSPACE}}/README.md, {{WORKSPACE}}/CHANGELOG.md, plus bookkeeping writes defined in conventions.md (the Plan's Docs Updated field and the Plans Index docs marker)
- Required input:
Plan ID/code from orchestrate, OR no argument (batch mode — processes all pending finished plans)
References
Read reference specs on-demand when the workflow requires them — do NOT read all upfront.
Always needed
Plan: Read {{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/plan.md — for Plan format, milestone fields, and status management
Plans Index: Read {{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/plans-index.md — for index lookup and status updates
On-demand (read only when needed)
Repo Fingerprint: Read {{WORKSPACE}}/knowledge/repo-fingerprint.md (the working file) — only if the Plan introduced new tech that should be reflected in the fingerprint
Tech Preferences: Read {{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/tech-preferences.md — only if documentation standards or formatting are ambiguous
Cross-references
For how references relate to each other, see {{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/references-map.md.
Validation
- If a
Plan ID/code is provided: verify it exists in Plans Index and has the ✅⏳ marker (done, docs pending). If the entry has ✅📝 (already documented) or ✅ (no docs needed), inform the user and exit
- If no
Plan ID/code is provided (batch mode): scan Plans Index for all entries with the ✅⏳ marker. If none found, inform the user and exit
Core Workflow
Mode Selection
- Determine Mode: Check if a
Plan ID/code was provided
- Single mode: Process one specific plan
- Batch mode: No argument provided — process all pending finished plans sequentially
Single Plan Mode
- Resolve Plan: Read the
Plans Index at {{WORKSPACE}}/plans/index.md to find the full Plan filename for the given Plan ID/code
- Read Plan: Construct the full
Plan file path and read the Plan file to understand the implemented changes
- Analyze Changes: Review the
Plan's development specifications, user flows, and any API changes to understand what documentation needs updating
- Update Documentation: Update the relevant documentation files based on the implemented changes:
- Technical manuals and guides in
{{WORKSPACE}}/docs/
- API documentation if endpoints changed
{{WORKSPACE}}/README.md if user-facing features changed
{{WORKSPACE}}/CHANGELOG.md if significant changes occurred
- End-User Documentation: Ask: "Does this feature need end-user documentation (rules, tutorial, guide)?" If yes, create or update files under
{{WORKSPACE}}/docs/ — written for the end user, not the developer. Internal refactors skip this naturally.
- Handle Screenshots: If the
Plan includes visual changes, copy relevant screenshots into {{WORKSPACE}}/docs/screenshots/ and embed them in the documentation. Source only paths reported by audition's result summary (baselines under tests/screenshots/baselines/, runtime shots under test-results/) — never assume a location
- Mark Documentation Updated: Update the
Plan file's Docs Updated field to true, and replace ⏳ with 📝 in the Plans Index (e.g., ✅⏳ → ✅📝)
Batch Mode
- Scan Plans Index: Read
{{WORKSPACE}}/plans/index.md and identify all plans with the ✅⏳ marker (done, docs pending)
- Process Each Plan: For each pending plan, execute the Single Plan Mode workflow (steps 1-6 above)
- Summary: After processing all plans, output a summary of which plans were documented and what files were updated
Quality Checklist
Before completing the documentation updates:
- Input Validated:
Plan ID verified (single mode) or pending plans identified (batch mode)
- Plan Read: Successfully read and understood the implemented changes from the
Plan file
- Changes Reflected: All implemented changes from the
Plan are reflected in the documentation
- API Accuracy: API changes are documented with accurate request/response formats
- User-Friendly Language: User-facing features are explained in clear, user-friendly language
- Screenshot Integration: Screenshots are properly embedded and referenced with correct paths
- No Placeholders: No placeholder text or TODO comments remain in documentation
- Link Validation: All relative paths and file references are correct
- Style Consistency: Documentation follows the project's established style and format
Execution
Use the Plan ID/code if provided (single mode), or scan the Plans Index for pending plans (batch mode), then proceed with the workflow.
1---2name: score3description: Document implementation changes - audit finished code and update docs, README, and CHANGELOG for shipped features; invoked by orchestrate when Docs Affected = true, via "/score PLAN-001" for one plan, or "/score" alone for batch mode4---56# Document Implementation Changes78Maintain the single source of truth for repository documentation, API changes, and developer onboarding instructions by updating technical documentation to reflect implemented features.910## Pre-flight1112- `{{WORKSPACE}}` = workspace root. Resolve once per session and reuse: `git rev-parse --show-toplevel`; fall back to cwd outside a git repo.13- Before your first write, read `{{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/conventions.md` — statuses, retries, artifact paths, and file ownership are defined there and are binding.14- Working folder: `{{WORKSPACE}}`15- Target folders: `{{WORKSPACE}}/docs/`, `{{WORKSPACE}}/README.md`, `{{WORKSPACE}}/CHANGELOG.md`, plus bookkeeping writes defined in `conventions.md` (the Plan's `Docs Updated` field and the Plans Index docs marker)16- Required input: `Plan` ID/code from orchestrate, OR no argument (batch mode — processes all pending finished plans)1718## References1920Read reference specs on-demand when the workflow requires them — do NOT read all upfront.2122### Always needed23- **`Plan`:** Read `{{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/plan.md` — for Plan format, milestone fields, and status management24- **`Plans Index`:** Read `{{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/plans-index.md` — for index lookup and status updates2526### On-demand (read only when needed)27- **`Repo Fingerprint`:** Read `{{WORKSPACE}}/knowledge/repo-fingerprint.md` (the working file) — only if the Plan introduced new tech that should be reflected in the fingerprint28- **`Tech Preferences`:** Read `{{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/tech-preferences.md` — only if documentation standards or formatting are ambiguous2930### Cross-references31For how references relate to each other, see `{{WORKSPACE}}/{{MAESTRO_CONFIG}}/references/references-map.md`.3233## Validation3435- If a `Plan` ID/code is provided: verify it exists in `Plans Index` and has the `✅⏳` marker (done, docs pending). If the entry has `✅📝` (already documented) or `✅` (no docs needed), inform the user and exit36- If no `Plan` ID/code is provided (batch mode): scan `Plans Index` for all entries with the `✅⏳` marker. If none found, inform the user and exit3738## Core Workflow3940### Mode Selection41420. **Determine Mode:** Check if a `Plan` ID/code was provided43 - **Single mode:** Process one specific plan44 - **Batch mode:** No argument provided — process all pending finished plans sequentially4546### Single Plan Mode47481. **Resolve Plan:** Read the `Plans Index` at `{{WORKSPACE}}/plans/index.md` to find the full `Plan` filename for the given `Plan` ID/code492. **Read Plan:** Construct the full `Plan` file path and read the `Plan` file to understand the implemented changes503. **Analyze Changes:** Review the `Plan`'s development specifications, user flows, and any API changes to understand what documentation needs updating514. **Update Documentation:** Update the relevant documentation files based on the implemented changes:52 - Technical manuals and guides in `{{WORKSPACE}}/docs/`53 - API documentation if endpoints changed54 - `{{WORKSPACE}}/README.md` if user-facing features changed55 - `{{WORKSPACE}}/CHANGELOG.md` if significant changes occurred565. **End-User Documentation:** Ask: "Does this feature need end-user documentation (rules, tutorial, guide)?" If yes, create or update files under `{{WORKSPACE}}/docs/` — written for the end user, not the developer. Internal refactors skip this naturally.576. **Handle Screenshots:** If the `Plan` includes visual changes, copy relevant screenshots into `{{WORKSPACE}}/docs/screenshots/` and embed them in the documentation. Source only paths reported by `audition`'s result summary (baselines under `tests/screenshots/baselines/`, runtime shots under `test-results/`) — never assume a location587. **Mark Documentation Updated:** Update the `Plan` file's `Docs Updated` field to `true`, and replace `⏳` with `📝` in the `Plans Index` (e.g., `✅⏳` → `✅📝`)5960### Batch Mode61621. **Scan Plans Index:** Read `{{WORKSPACE}}/plans/index.md` and identify all plans with the `✅⏳` marker (done, docs pending)632. **Process Each Plan:** For each pending plan, execute the Single Plan Mode workflow (steps 1-6 above)643. **Summary:** After processing all plans, output a summary of which plans were documented and what files were updated6566## Quality Checklist6768Before completing the documentation updates:69700. **Input Validated:** `Plan` ID verified (single mode) or pending plans identified (batch mode)711. **Plan Read:** Successfully read and understood the implemented changes from the `Plan` file722. **Changes Reflected:** All implemented changes from the `Plan` are reflected in the documentation733. **API Accuracy:** API changes are documented with accurate request/response formats744. **User-Friendly Language:** User-facing features are explained in clear, user-friendly language755. **Screenshot Integration:** Screenshots are properly embedded and referenced with correct paths766. **No Placeholders:** No placeholder text or TODO comments remain in documentation777. **Link Validation:** All relative paths and file references are correct788. **Style Consistency:** Documentation follows the project's established style and format7980## Execution8182Use the `Plan` ID/code if provided (single mode), or scan the `Plans Index` for pending plans (batch mode), then proceed with the workflow.