analyze-runs

analyze-runs is a skill for Claude Code from phobologic/claude_code_helpers. It costs 99 tokens per session (958 once invoked), scanned A, original, MIT.

A read-only report that studies archived run-tickets workflow data. It breaks down rework, blocked runs, token cost, and defects that escaped review by factors such as effort, change size, and dependent tickets.

In plain words
What is it for?
Use it to compare past ticket runs, identify patterns worth changing, and recommend workflow adjustments backed by the recorded evidence.
Why use it?
It replaces guesswork about workflow improvements with measured results and sample sizes. It also makes clear when the available history is too small to support a recommendation.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to compare past ticket runs, identify patterns worth changing, and recommend workflow adjustments backed by the recorded evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phobologic/claude_code_helpers/analyze-runs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add phobologic/claude_code_helpers --skill analyze-runs
Clone the repo
git clone --depth 1 https://github.com/phobologic/claude_code_helpers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-runs

README.md
[![agentmods](https://agentmods.dev/badge/skills/phobologic/claude_code_helpers/analyze-runs/github.svg)](https://agentmods.dev/skills/phobologic/claude_code_helpers/analyze-runs)
Your own site
<a href="https://agentmods.dev/skills/phobologic/claude_code_helpers/analyze-runs"><img src="https://agentmods.dev/badge/skills/phobologic/claude_code_helpers/analyze-runs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-runs

Your own site · 80×15
<a href="https://agentmods.dev/skills/phobologic/claude_code_helpers/analyze-runs"><img src="https://agentmods.dev/badge/skills/phobologic/claude_code_helpers/analyze-runs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.00958
Opus 5.5 $0.00040 $0.00383
Sonnet 5.5 $0.00020 $0.00192
Haiku 4.5 $0.00010 $0.00096

Measured 5d ago against content hash 4697f056ccc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyze-runs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analyze-runs/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analyze Runs

Turn the numbers from run-history into a short, honest assessment. The script does all the counting, so never recompute its numbers by hand. Your job is judgment: what the numbers support, what they do not, and what to change.

Steps

  1. From the repo whose runs the user means (or with --all-repos), run:

    run-history $ARGUMENTS
    

    If it reports no archived runs, say so, and mention that /run-tickets archives each run as it finishes (run-tickets-status --archive <run-id> adds an older one while its transcripts still exist, which is about 30 days).

  2. When a comparison needs a cross-tab the text output does not show (review effort within one diff-size bucket, say), get the rows with run-history --json and filter attempts_detail with jq. Quote the command you used alongside the result.

  3. Read the numbers against the rules below, then write the report.

Rules for reading the numbers

  • Sample size first. Every group shows n, its ticket attempts. Do not recommend a change from a group under 10 attempts, or from a difference two tickets could produce. Say "not enough data yet" and name the number of runs that would settle it. A clear "we can't tell yet" is a good result.
  • Effort is not randomized. The policy assigns effort by fanout and diff size, so the max and xhigh groups hold the bigger and more central tickets by construction. Before crediting or blaming an effort level, compare within one diff-size or dependents bucket.
  • Compare policies, not dates. The by policy group separates runs by the thresholds they ran under. A before-and-after claim needs both sides.
  • Fewer reworks is not better on its own. Lighter review finds less and sends back less, which looks like improvement. Only recommend less effort when escapes per merged ticket stay flat or fall. Recommending less effort on rework numbers alone is the one mistake this skill exists to prevent.
  • Escapes lag. A ticket's escapes build up as later runs review around its code, so recent runs look cleaner than they are. Note how recent the comparison groups are. Escapes are traced by blaming finding lines, which drift, so read them as a trend, not a verdict on one ticket.
  • Separate pipeline failures from ticket failures. In the blocked list, an agent that misread its instructions, a broken integration branch, or a harness error is a pipeline bug, and worth fixing whatever the sample size. A ticket that used up its rework rounds on real problems is a ticket-size or spec problem (see the oversized-ticket split rule in /spec).

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed 4697f056ccc0
  2. 12d ago First seen · 85 lines · 99 tokens per session scan A a245beee803d

Subscribe to this mod's changes

analyze-runs is a skill published in the GitHub repository phobologic/claude_code_helpers (5 stars, last pushed 5d ago), licensed MIT. It adds 99 tokens to every session and 958 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.