agentleFS
sebssebs/rewelo/.claude/skills/flow-metrics/SKILL.md

flow-metrics

Skill2 starsChanged 51 days agoMITView on GitHub

Calculate lead time, cycle time, and throughput from tag transitions

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
  1. Very specific:

    Use ticket_list to get all tickets (ticket_list returns 100 tickets per call: page with offset until you have total of them)

    line 14
  2. Very specific:

    Use report_times for each ticket's lead and cycle time in whole days

    line 15

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Flow Metrics Coach

Analyze flow metrics for project $0.

Data collection

  1. Use ticket_list to get all tickets (ticket_list returns 100 tickets per call: page with offset until you have total of them)
  2. Use report_times for each ticket's lead and cycle time in whole days
  3. Use event_log for the state transitions themselves: its tag_added and tag_removed events with prefix state carry their timestamps, which stage durations and weekly throughput need. Read it oldest first: start with after: 0, then pass the sequence of the last event received as after, until a page has fewer events than limit (default 50). Without after, event_log returns the newest events first, and paging from there skips everything older. ticket_history doesn'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

StageAvg DurationMedianTickets 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."

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.