/velocity
Calculate team velocity from completed stories, identify trends, and forecast epic and milestone completion dates with confidence levels.
Quick Start
/agileflow:velocityParameters
| Parameter | Required | Default | Description |
|---|---|---|---|
PERIOD | No | sprint | Time period: week, sprint, month, or all |
FORECAST | No | - | Predict completion for epic/milestone (e.g., EP-0010) |
FORMAT | No | report | Output format: report, chart, or json |
Examples
View Current Velocity
/agileflow:velocityShow velocity for the last sprint (2 weeks) with trends.
Last Week Only
/agileflow:velocity PERIOD=weekFocus on the most recent week's velocity.
Month-Long Trend
/agileflow:velocity PERIOD=month30-day velocity trend to identify seasonal patterns.
Forecast Epic Completion
/agileflow:velocity FORECAST=EP-0010Predict when the Authentication epic will complete based on current velocity.
View as Chart
/agileflow:velocity FORMAT=chartASCII art velocity chart for terminal viewing.
Export as JSON
/agileflow:velocity FORMAT=jsonMachine-readable format for integration with other tools.
Velocity Calculation
Velocity = Total points completed per time period
Example:
- Week 1: 8 story-days completed
- Week 2: 10 story-days completed
- Week 3: 7 story-days completed
- Average velocity: (8+10+7)/3 = 8.3 story-days/week
Points are calculated from story estimate multiplied by completion during the period.
Velocity Report
The default report format includes multiple sections:
Current Velocity Section
š Current Velocity
Average: 8.3 points/week
Trend: āļø +15% (improving)
Last sprint: 10 points
Best sprint: 12 points (Week of 2025-12-10)
Worst sprint: 5 points (Week of 2025-11-26)Shows overall team capacity and improvement trend.
Historical Velocity Chart
Points/Week
12 ā āāā
11 ā ā
10 ā āā ā
9 ā ā ā
8 ā ā ā Current (8.3 avg)
7 ā ā
6 ā ā
5 ā ā ā
4 ā ā
3 ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
W1 W2 W3 W4 W5 W6 W7 W8
Legend:
ā Actual velocity
ā Trend line
āļø Trend: +15% over periodVisual representation of velocity trends.
Weekly Breakdown
| Week | Points | Stories | Avg Size | Notes |
|------|--------|---------|----------|-------|
| 2025-12-24 | 10 | 6 | 1.7d | āļø +25% |
| 2025-12-17 | 8 | 5 | 1.6d | āļø +14% |
| 2025-12-10 | 7 | 4 | 1.8d | āļø -30% |
| 2025-12-03 | 10 | 7 | 1.4d | āļø +100% |Details for each period showing stories completed and size variation.
Velocity by Owner
| Owner | Points/Week | Stories/Week | Utilization | Trend |
|-------|-------------|--------------|-------------|-------|
| AG-API | 4.1 | 2.8 | 85% | āļø +20% |
| AG-UI | 3.2 | 2.1 | 80% | āļø +10% |
| AG-CI | 0.8 | 0.6 | 40% | ā Stable |
| AG-DEVOPS | 0.2 | 0.2 | 10% | š New |Shows work distribution and utilization by team member.
Forecasting
When you specify FORECAST=<epic>, the command predicts completion:
Forecast Example
šÆ Forecast: Epic Completion
EP-0010: User Authentication
- Stories: 12 total
- Completed: 8 (66%)
- Remaining: 4 stories, 6 points
- At current velocity (8.3 pts/wk): under 1 week
- Forecast completion: 2025-12-31 (7 days)
- Confidence: High (85%)Confidence levels:
- High (>80%) - Stable velocity, reliable forecast
- Medium (60-80%) - Some variance, reasonable forecast
- Low (under 60%) - High variance, forecast unreliable
Forecasting Algorithm
Days to complete = (Remaining points / Velocity) * 7
Completion date = Today + Days to complete
Confidence = 100% - (Velocity std dev / Velocity avg) * 100Velocity Chart Output
ASCII visualization of velocity over time:
Velocity Trend (8 weeks)
Points/Week
12 ⤠āāā
11 ⤠ā
10 ⤠āā ā
9 ⤠ā ā
8 ⤠ā ā Current (8.3 avg)
7 ⤠ā
6 ⤠ā
5 ⤠ā ā
4 ⤠ā
3 ā¤
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
W1 W2 W3 W4 W5 W6 W7 W8
Trend: āļø +15% (improving)Velocity by Story Size
Insights into which story sizes work best:
Size | Count | Avg Days | Success Rate
--------|-------|----------|-------------
ā¤0.5d | 8 | 0.4d | 100% ā
0.5-1d | 12 | 0.9d | 92% ā
1-1.5d | 10 | 1.3d | 80% ā ļø
1.5-2d | 6 | 2.1d | 67% ā ļø
>2d | 3 | 3.5d | 33% š“Shows that smaller stories complete faster and more reliably.
Insight: Stories ā¤1d complete fastest. Split stories >1.5d into smaller increments.
Risk Analysis
The report includes risk assessment:
ā ļø Risk Analysis
### Velocity Risks
1. **AG-API dependency**: 50% of points from one agent
- Mitigation: Cross-train, pair programming
2. **Story size variance**: Some 2d stories slow velocity
- Mitigation: Split stories >1.5d
3. **Seasonal slowdown**: Historical dip in Week 5
- Mitigation: Add buffer to forecasts
### Schedule Risks
- EP-0011 blocking release
- If velocity drops 20% ā Release delayed 1 week
- If AG-API unavailable ā 50% velocity lossHelps identify and mitigate risks to forecasts.
Capacity Planning
Recommendations for sprint planning:
š
Capacity Planning
**Current Capacity**: 8.3 points/week (4 agents)
**This Sprint** (2 weeks):
- Plan: 16-18 points (2x velocity)
- Buffer: Keep 2-3 ready stories
- Focus: Complete EP-0010
**Next Sprint**:
- Plan: 16-20 points
- Priority: EP-0011 (release blocker)
- Consider: Add stories for AG-CI (underutilized)
**Long-term**:
- Maintain 8-10 points/week sustained velocity
- Reserve 20% for tech debt
- Keep story sizes ā¤1.5d for predictabilityHelps plan sprint workload based on actual velocity.
Export Formats
Report (Default)
Full markdown velocity report with all sections.
Chart
ASCII art velocity trend chart only:
Velocity Trend (8 weeks)
Points/Week
12 ⤠āāā
11 ⤠ā
...JSON
Machine-readable format:
{
"generated": "2025-12-24T14:30:00Z",
"period": "8 weeks",
"velocity": {
"current": 8.3,
"trend": "+15%",
"last_sprint": 10,
"best": 12,
"worst": 5,
"std_dev": 2.1
},
"by_owner": {
"AG-UI": 3.2,
"AG-API": 4.1,
"AG-CI": 0.8,
"AG-DEVOPS": 0.2
},
"forecasts": [
{
"epic": "EP-0010",
"remaining_points": 6,
"weeks_needed": 0.7,
"completion_date": "2025-12-31",
"confidence": 85
}
]
}Best Practices
- Track over 3+ periods - Need at least 3 weeks for reliable velocity
- Use consistent estimates - Estimates in same units (days, points)
- Review trends - Look for improving or declining patterns
- Account for holidays - Adjust forecasts for time off
- Update weekly - Track velocity each sprint for trends
Velocity Goals
Set team targets and track progress:
šÆ Velocity Goals
Current: 8.3 points/week
Target: 10 points/week (by end of quarter)
Stretch: 12 points/week
Action Items:
- [ ] Split 2 large stories (US-0050, US-0051)
- [ ] Assign 2 more stories to AG-CI
- [ ] Review blockers (US-0041)
- [ ] Celebrate hitting 10 pts/wk! šRelated Commands
/agileflow:metrics- Detailed metrics and analytics/agileflow:board- Visual kanban board/agileflow:blockers- Identify velocity blockers/agileflow:status- Update story status
FAQ
On This Page
/velocityQuick StartParametersExamplesView Current VelocityLast Week OnlyMonth-Long TrendForecast Epic CompletionView as ChartExport as JSONVelocity CalculationVelocity ReportCurrent Velocity SectionHistorical Velocity ChartWeekly BreakdownVelocity by OwnerForecastingForecast ExampleForecasting AlgorithmVelocity Chart OutputVelocity by Story SizeRisk AnalysisCapacity PlanningExport FormatsReport (Default)ChartJSONBest PracticesVelocity GoalsRelated CommandsFAQ