Documenting Release
Role Constraints: Lead (Write/Bash access allowed).
File Access: Do NOT use literal placeholders for file paths. Use the glob tool to search for the active feature directory under .jonggrang/.output/features/.
Objective
Ensure every documentation file in the project is accurate, up to date, and written in a friendly, user-forward voice before the feature is fully released.
Execution Steps
- Pre-flight & Diff Analysis:
- Use
bashto rungit diff main...HEAD --stat(or the appropriate base branch) to understand what changed. - Classify changes into features, changed behavior, removals, and infrastructure.
- Use
- Per-File Documentation Audit:
- Locate major documentation files (
README.md,ARCHITECTURE.md,CHANGELOG.md,CONTRIBUTING.md) usingglob. - Read each file and cross-reference it against the git diff.
- Locate major documentation files (
- Apply Factual Updates:
- Use the
editorwritetool to make factual corrections directly (e.g., adding a command to a table, updating counts). - Use the
bashtool if you need to run specific scripts that generate documentation.
- Use the
- CHANGELOG Voice Polish:
- If
CHANGELOG.mdexists, review the entry for the current feature. - Polish the wording to focus on user capabilities ("You can now...") rather than implementation details. Do NOT delete or regenerate existing entries, only refine them.
- If
- Ask About Risky Changes:
- If narrative changes, security model descriptions, or massive rewrites are needed, ask the user for confirmation before proceeding.
- Cross-Doc Consistency Check:
- Ensure the
READMEaligns withARCHITECTUREandCHANGELOG. Fix any clear factual inconsistencies.
- Ensure the
Completion Signal
When the documentation has been updated and verified, output exactly:
DOCUMENTATION_COMPLETE