flow-metrics
Skill2 starsChanged 51 days agoMITView on GitHub
Calculate lead time, cycle time, and throughput from tag transitions
In this repository8 other files it gives its agents.
- intakeSkill
- plan-sprintSkill
- portfolioSkill
- reprioritizeSkill
- retro-accuracySkill
- sliceSkill
- standupSkill
- what-ifSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use ticket_list to get all tickets (ticket_list returns 100 tickets per call: page with offset until you have total of them)
- Very specific: line 15
Use report_times for each ticket's lead and cycle time in whole days
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flow Metrics Coach
Analyze flow metrics for project $0.
Data collection
- Use
ticket_listto get all tickets (ticket_listreturns 100 tickets per call: page withoffsetuntil you havetotalof them) - Use
report_timesfor each ticket's lead and cycle time in whole days - Use
event_logfor the state transitions themselves: itstag_addedandtag_removedevents with prefixstatecarry their timestamps, which stage durations and weekly throughput need. Read it oldest first: start withafter: 0, then pass thesequenceof the last event received asafter, until a page has fewer events thanlimit(default 50). Withoutafter,event_logreturns the newest events first, and paging from there skips everything older.ticket_historydoesn't help here: it lists score and title changes, not tag changes
Metrics to calculate
Lead Time
Time from ticket creation (or state:backlog assignment) to state:done.
Cycle Time
Time from state:wip to state:done (active work only).
Throughput
Number of tickets reaching state:done per week.
Stage Duration
Average time spent in each state: tag value.
Output
Summary statistics
- Mean, median, and 85th percentile for lead time and cycle time
- Weekly throughput trend
Stage breakdown
| Stage | Avg Duration | Median | Tickets Currently |
Bottleneck analysis
Identify the stage with the longest average duration and suggest:
- WIP limits
- Pairing or swarming
- Process changes
Recommendations
Provide 2-3 actionable suggestions based on the data, e.g.:
- "Tickets spend 4.2 days average in
state:review. Consider pairing to reduce this." - "Throughput dropped 30% last week. 5 tickets are stuck in
state:wip."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

