Compute and visualize the four core Kanban flow metrics -- lead time, cycle time, throughput, and work-in-progress -- from issue history data exported from Jira, Linear, GitHub Projects, or any tracker that records status transitions. The output is a dashboard suitable for sprint retrospectives, executive reporting, and bottleneck analysis, plus a Mermaid cumulative flow diagram that visualizes work accumulation over time.
Flow metrics are the most useful diagnostic for team and process health, far more so than velocity or story points. Daniel Vacanti's work (Actionable Agile Metrics for Predictability, 2015) shows that predictability and throughput are governed by Little's Law (Throughput = WIP / Cycle Time), and that the most reliable way to improve delivery is to lower WIP and stabilize cycle time -- not to estimate harder. This skill also reports aging WIP (in-flight work older than the team's 85th-percentile cycle time -- the items most at risk) and supports the shared --format schema (json, markdown, mermaid, confluence, notion, linear).
scrum-master/).scrum-master/velocity_analyzer.py.scrum-master/sprint_capacity_calculator.py.Before running the analysis, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
assets/sample_issues.json).--ready-state, --in-progress-state, --done-state, each repeatable).python3 project-management/execution/cycle-time-analyzer/scripts/flow_metrics.py \
--input project-management/execution/cycle-time-analyzer/assets/sample_issues.json --format markdown
# Live board: add --as-of YYYY-MM-DD (today) so aging WIP is measured to now
As-of date: defaults to the latest timestamp in the data, so the sample (April-May 2026) reads the same on any day: 7 completed, 0.82 items/week, 1 aging item. For a live board pass --as-of with today's date; otherwise items still in progress look younger than they are.
| Tool | Purpose | Key flags |
|---|---|---|
flow_metrics.py | Lead time, cycle time, throughput, WIP, aging WIP, CFD | --input F or --demo, `--format json\ |
Exit codes: 0 report written; 2 missing file, invalid JSON, empty or wrong-shape issues, bad --as-of, or malformed issue data. Full flags and schemas: references/metrics-and-tool-reference.md.
Mistake: An exec asks how long a feature takes, the team says 6 days, and the customer waits 11 weeks because the item sat in the backlog first.
Why it happens: Cycle time is the team's own number and the one the board shows.
Instead: Report both, labelled. Use lead time (from when the request entered the backlog) for customer commitments and cycle time for engineering planning, each at p85.
Mistake: The team adopts a WIP limit of 5 per engineer because "that feels manageable".
Why it happens: Teams pick a limit before anyone has measured current WIP.
Instead: Measure the team's current WIP distribution first. A starting heuristic [EXPERIMENTAL] is a limit just below its median: low enough to bind on a normal day (that is what forces finishing over starting), high enough not to idle people. A limit above the 85th percentile almost never binds, so it has no effect. Re-measure cycle time with flow_metrics.py after 4 weeks and adjust.
Mistake: "Throughput dropped to 4 items this sprint, down from 6. Investigating slowdown."
Why it happens: Status updates cover one sprint, so one sprint's number is what gets reported.
Instead: Report throughput as a rolling 6-8 week trend with its range, and annotate known causes such as PTO. Investigate only when a sprint falls outside that range.
Nine more, each with a bad and a good example: references/red-flags.md.
| File | Purpose |
|---|---|
scripts/flow_metrics.py | The analyzer |
assets/sample_issues.json | 10-issue history (same as --demo) |
assets/flow-metrics-dashboard.md | Dashboard template |
examples/wayfinder-flow-analysis.md | Worked analysis |
references/metrics-and-tool-reference.md -- Precise definitions of the four metrics, Little's Law, aging WIP, the 7-step workflow, troubleshooting matrix, success criteria, and the full flow_metrics.py CLI flags + input/output JSON schemas. Read when running an analysis or wiring up the tool.references/flow-metrics-guide.md -- Vacanti-style deep dive: lead vs cycle, distributions vs averages, Little's Law, aging WIP, common anti-patterns. Read for narrative depth and tracker-specific export instructions.references/red-flags.md -- Bad-vs-good examples of flow-metric reporting. Read this to sanity-check a dashboard before sharing it.In Scope:
SHARED_OUTPUT_SCHEMA.mdOut of Scope:
scrum-master/velocity_analyzer.py)scrum-master/)senior-pm/resource_capacity_planner.py)Important Caveats:
delivery-manager/ and scrum-master/.| Integration | Direction | What Flows |
|---|---|---|
scrum-master/ | Complementary | Flow metrics + velocity together provide the full delivery picture |
scrum-master/retrospective_analyzer.py | Feeds into | Flow trends inform retro topics |
dependency-map/ | Complementary | Long cycle times often correlate with cross-team dependencies |
sprint-retrospective/ | Feeds into | CFD and aging WIP are standard retro inputs |
senior-pm/project_health_dashboard.py | Feeds into | Throughput trends feed portfolio health |
status-update-generator/ | Feeds into | Weekly status includes throughput and aging WIP highlights |
agile-coach/ | Used by | Coaches use flow metrics to assess team maturity |