-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Feature/sprint cycle management #1204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sigent-amazon
wants to merge
20
commits into
github:main
Choose a base branch
from
sigent-amazon:feature/sprint-cycle-management
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/sprint cycle management #1204
sigent-amazon
wants to merge
20
commits into
github:main
from
sigent-amazon:feature/sprint-cycle-management
+4,440
−10
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add comprehensive sprint/cycle management system to enable teams to: - Organize features into time-boxed sprints - Archive completed sprints with high-level summaries - Track decisions and pivots across development cycles - Conduct retrospectives to clarify unclear decisions - Maintain project-level visibility via roadmap New Commands: - /speckit.sprint - Create and manage sprints (start, add, status, complete) - /speckit.archive - Archive sprint with summary and decision extraction - /speckit.retrospective - Conduct retrospective with structured questioning - /speckit.roadmap - Generate project-level roadmap and visibility Templates: - sprint-template.md - Sprint planning with goals and capacity - sprint-summary-template.md - Sprint archival with decisions and pivots - retrospective-template.md - Structured retrospective format Documentation: - SPRINT_CYCLE_DESIGN.md - Complete architecture and design - SPRINT_GENERIC_EXAMPLE.md - Generic reusable example - SPRINT_SUMMARY.md - Implementation summary Key Features: - Non-invasive: Existing feature workflows unchanged - Archival-first: Knowledge preservation with context - Decision-focused: Captures WHY choices were made - Retrospective-driven: Clarify unclear decisions (like /speckit.clarify) - Project visibility: Roadmap across sprints Addresses issue github#1047 (Project-Level PRD Generation and Phase/Status Tracking) Related to community requests for sprint planning and tracking
Consolidate SPRINT_CYCLE_DESIGN.md, SPRINT_GENERIC_EXAMPLE.md, and SPRINT_SUMMARY.md into a single comprehensive document. Changes: - Merged generic example into design doc - Added quick summary section at top - Removed redundant SPRINT_SUMMARY.md - Removed separate SPRINT_GENERIC_EXAMPLE.md - All content preserved in consolidated SPRINT_CYCLE_DESIGN.md Benefits: - Single source of truth (25KB vs 37KB across 3 files) - Easier to navigate and maintain - Complete example integrated with design - No information lost
Add automation scripts for /speckit.sprint and /speckit.archive commands following existing Spec Kit patterns. New Scripts: - scripts/bash/create-sprint.sh - Create new sprint with directory structure - scripts/bash/archive-sprint.sh - Archive sprint with summary generation - scripts/powershell/create-sprint.ps1 - PowerShell version of create-sprint - scripts/powershell/archive-sprint.ps1 - PowerShell version of archive-sprint Features: - Sprint number auto-calculation - Template copying with variable replacement - Feature scanning and linking - JSON output for agent parsing - Error handling and validation - Duration parsing (1w, 2w, 3w, 4w) - Slug generation from sprint names Updated Commands: - templates/commands/sprint.md - Added script integration section - templates/commands/archive.md - Added script integration section Scripts follow existing patterns: - Similar to create-new-feature.sh and setup-plan.sh - Support --json flag for agent parsing - Cross-platform (bash + PowerShell) - Proper error handling
Add automatic sprint integration to /speckit.specify command. Changes: - scripts/bash/create-new-feature.sh: Check for active sprint and auto-add feature - scripts/powershell/create-new-feature.ps1: PowerShell version of sprint check - templates/commands/specify.md: Document sprint integration behavior Behavior: - If active sprint exists → Feature automatically added to sprint backlog - If no active sprint → Feature created normally (backward compatible) - No user action required → Seamless integration - Manual override → User can remove from backlog if needed Benefits: - One less manual step (no need for /speckit.sprint add) - Automatic sprint tracking - Backward compatible (works without sprints) - Minimal code change (only scripts modified)
- Archive script now moves completed feature specs from specs/ to archive/sprint-NNN/specs/ - Keeps root specs/ directory lightweight (only active work) - Sprint archives are self-contained (specs + summary + decisions) - Features identified as 'Done', 'Completed', or '✅' in backlog.md are moved - Links in features.md point to archived specs (./specs/feature-id/spec.md) - Updated both bash and PowerShell scripts - Updated design document and PR description
- Implemented /speckit.sprint add command for adding features to backlog - Validates feature exists in specs/ - Checks for duplicates in backlog - Extracts feature name from spec.md - Adds to backlog table with default status 'Not Started' - Added interactive completion checking to archive script - Prompts for In Progress/In Review/Blocked features - Shows completion indicators (spec, plan, tasks) - Highlights TODO/FIXME markers - User can approve archiving near-complete features - 'skip-all' option to bypass remaining prompts - Updated both bash and PowerShell archive scripts - Updated sprint command documentation - Updated design document with new features Addresses user request for better backlog management and handling half-finished specs during sprint archival.
- Changed from grep -c with pipe to grep -E with wc -l - Fixes 'integer expression expected' error - Added xargs to trim whitespace from count
- Changed **Duration**: to \*\*Duration\*\*: - Fixes 'repetition-operator operand invalid' error
- Detects if stdin is a terminal with [ -t 0 ] - Interactive mode: prompts for In Progress/In Review/Blocked features - Non-interactive mode: auto-archives 'In Review' features only - Fixes issue where AI agents can't respond to read prompts
- Removed bash read prompts (don't work with AI agents) - Added --archive-features parameter for AI agent to pass decisions - AI agent now handles prompting in conversation (like clarify) - Script accepts comma or space-separated feature list - Consistent with other speckit commands
- Added explicit instruction to ask ONE feature at a time - Emphasized WAIT for user response before next feature - Referenced /speckit.clarify pattern for consistency - Updated archive command to show AI agent handles prompts - Updated sprint command with proper script execution examples
- Added new panel showing 6 sprint management commands - Displayed after Enhancement Commands - Uses magenta border to distinguish from other sections - Shows sprint start, add, status, archive, retrospective, roadmap
- Added Sprint Management Commands table with 6 commands - Linked to SPRINT_CYCLE_DESIGN.md for detailed documentation - Positioned after Optional Commands section - Clearly marked as optional for Agile/Scrum workflows
- PR description is for local reference only - Not needed in the repository
- Changed .specify/scripts/ to .specify/scripts/bash/ - Matches existing project structure where scripts are in bash/ subdirectory - Ensures scripts can find common.sh correctly
- Added PowerShell examples alongside bash for all sprint commands - Matches pattern used in other commands (specify, plan, etc.) - Supports both bash and PowerShell environments - Uses pwsh for PowerShell execution
- Removed dummy data (001-auth, 002-ui, 003-api) - Leaves empty table row for clean sprint creation - Features should be added via /speckit.sprint add or backlog.md
- Fixed all sprint script paths to use .specify/sprints/ consistently - Added robust repo root detection (git + fallback) to all sprint scripts - Fixed template paths to use .specify/templates/ - Added interactive sprint goal and success criteria collection - Scripts accept --goal and --criteria parameters (no hanging prompts) - Added update-sprint-feature-status.sh/ps1 scripts - Implement command now updates feature status to 'In Progress' - Create-new-feature adds features to active sprint with description and owner - Sprint template cleaned: all examples in comments, no inline placeholders - Sprint backlog weeks auto-generated based on duration (1w/2w/3w/4w) - Removed example features from sprint-template.md - Updated sprint.md command to use interactive prompts like clarify - Fixed sed/awk issues with multi-line replacements - Both bash and PowerShell versions updated and tested
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sprint/Cycle Management for Spec Kit
Summary
Adds comprehensive sprint/cycle management to enable Agile/Scrum workflows in Spec Kit. Teams can now organize features into time-boxed sprints, archive completed sprints with high-level summaries, track decisions and pivots, conduct retrospectives, and maintain project-level visibility.
Addresses Issue #1047 (Project-Level PRD Generation and Phase/Status Tracking) and community requests for sprint planning capabilities.
Current Gap
Spec Kit excels at feature-level workflows but lacks project-level organization:
Approach
Non-Invasive Design
Key Features
Sprint Management (
/speckit.sprint)Sprint Archival (
/speckit.archive)Retrospectives (
/speckit.retrospective)/speckit.clarifyfor past decisions)Project Roadmap (
/speckit.roadmap)Changes Made
New Commands (4)
templates/commands/sprint.md- Sprint management commandtemplates/commands/archive.md- Sprint archival commandtemplates/commands/retrospective.md- Retrospective commandtemplates/commands/roadmap.md- Project roadmap commandNew Scripts (4)
scripts/bash/create-sprint.sh- Sprint creation automationscripts/bash/archive-sprint.sh- Sprint archival automationscripts/powershell/create-sprint.ps1- PowerShell versionscripts/powershell/archive-sprint.ps1- PowerShell versionNew Templates (3)
templates/sprint-template.md- Sprint planning templatetemplates/sprint-summary-template.md- Sprint archival templatetemplates/retrospective-template.md- Retrospective templateDocumentation (1)
SPRINT_CYCLE_DESIGN.md- Complete design with generic exampleDirectory Structure
Example Workflow
Testing
Manual Testing Performed
Test Project
Benefits
AI Assistance Disclosure
AI Tools Used: Amazon Q Developer CLI
Extent of AI Use:
Human Verification:
Backward Compatibility
Related Issues
Addresses #1047
Related to community requests for sprint planning and tracking
Reviewer Notes
Please focus on: