--- name: sprint-management description: Manage the sprint lifecycle — open a sprint, maintain the sprint branch and docs, close it, update the changelog, and prepare tags. Powers /sprint-start, /sprint-plan and /sprint-close. Use when the user says "vamos começar a sprint", "fecha a sprint", "o que tá nessa sprint?", "terminei essa etapa", "qual o próximo ciclo?". --- # Sprint Management ## Open sprint 1. Confirm sprint number, theme, duration, and objectives. 2. Ensure `main` is clean and up to date. 3. Create `sprint-XX-topic` branch. 4. Create `docs/sprints/sprint-XX-topic.md` from template. 5. Update project constitution/current sprint metadata. 6. Commit kickoff. ## During sprint - Use feature branches for isolated work. - Merge into sprint branch. - Keep sprint doc updated with scope changes and delivered work. - Use session logs for important decisions. - **Regenerate `CODEMAP.md` with every code change** — `node scripts/codemap.js`. The map records each file's line count, so editing a mapped file is usually enough to make `--check` fail. Commit the map together with the change. ## Close sprint 1. Confirm all intended work is merged or explicitly deferred. 2. Run tests and quality gates. 3. Invoke coordinator review. 4. Invoke adversarial review for meaningful releases. 5. Update changelog. 6. Regenerate the codemap — `node scripts/codemap.js` — and commit it if it changed. 7. Update sprint doc with final status and retrospective. 8. Merge sprint branch into `main`. 9. Tag release.