rework-rate

rework-rate is a skill for Claude Code, Codex from bradygaster/squad. It costs 20 tokens per session (692 once invoked), scanned A, original, MIT.

A guide for measuring how much code changes after a pull request is first reviewed. Rework rate is the share of commits added after that first review, and is used as an engineering team metric.

In plain words
What is it for?
Use it to measure review revisions, approval cycles, rejection rates, rework time, and code-review health.
Why use it?
It shows where review cycles or unclear pull requests may be causing extra work and delays.

Skill for Claude CodeCodex

About the project

bradygaster/squad is a tool that creates a human-directed team of AI development agents inside a project repository through GitHub Copilot. Developers use it to delegate work among persistent specialists such as frontend, backend, testing, and lead agents while retaining responsibility for decisions and review. The catalogue entries are the skills, agents, and instructions that define and coordinate those team members.

bradygaster/squad · 3,154 stars · on GitHub

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.

agentmods
npx agentmods add skills/bradygaster/squad/rework-rate
Any agent
npx skills add bradygaster/squad --skill rework-rate
Clone the repo
git clone --depth 1 https://github.com/bradygaster/squad

Made for: Claude Code, Codex.

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 rework-rate

README.md
[![agentmods](https://agentmods.dev/badge/skills/bradygaster/squad/rework-rate.svg)](https://agentmods.dev/skills/bradygaster/squad/rework-rate)
Your own site
<a href="https://agentmods.dev/skills/bradygaster/squad/rework-rate"><img src="https://agentmods.dev/badge/skills/bradygaster/squad/rework-rate.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 692 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00692
Opus 5 $0.00010 $0.00346
Sonnet 5 $0.00004 $0.00138
Haiku 4.5 $0.00002 $0.00069

Measured yesterday against content hash 8812f002a0de, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rework-rate 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 yesterday.

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.

templates/skills/rework-rate/SKILL.md · 83 lines

How it starts

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

Context

Rework Rate measures the percentage of code changes that require revision after initial review submission. It is considered the emerging 5th DORA metric alongside Deployment Frequency, Lead Time for Changes, Mean Time to Recovery, and Change Failure Rate.

Use this skill when:

  • Measuring team code review efficiency
  • Identifying patterns in PR revision cycles
  • Coaching on PR quality and review practices
  • Tracking AI-generated code retention rates
  • Building engineering health dashboards

Patterns

Calculation

Rework Rate = (commits after first review) / (total commits) × 100

Sub-metrics:
  Review Cycles = number of changes-requested → push → approval loops
  Rejection Rate = PRs with ≥1 "changes requested" / total PRs × 100
  Rework Time = last approval timestamp - first changes-requested timestamp

Healthy Ranges

Metric 🟢 Healthy 🟡 Moderate 🔴 Needs Attention
Rework Rate ≤15% 15–30% >30%
Review Cycles ≤1.0 1.0–2.0 >2.0
Rejection Rate ≤20% 20–40% >40%

Using the CLI

# Analyze last 30 days (default)
npx github:bradygaster/squad rework

# Custom period
npx github:bradygaster/squad rework --days 7 --limit 50

# Machine-readable output
npx github:bradygaster/squad rework --json

Improvement Strategies

When rework rate is high:

  1. Smaller PRs — Break large changes into focused, reviewable units
  2. Clear specs — Write acceptance criteria before coding
  3. Pre-review checklist — Self-review before requesting reviews
  4. Pair reviews — Complex changes benefit from synchronous review
  5. Draft PRs — Use draft status for early feedback on direction

Examples

// Ralph can use rework metrics in watch cycles:
// "📊 Weekly Rework Rate: 12% (healthy) — 3/25 PRs had changes requested"

// In squad ceremonies, rework trends inform retrospectives:
// "Rework rate dropped from 28% to 14% after adopting smaller PR sizes"

Read the full file on GitHub · 83 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. yesterday First seen · 83 lines · 20 tokens per session scan A 8812f002a0de

Subscribe to this mod's changes

rework-rate is a skill published in the GitHub repository bradygaster/squad (3,154 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 692 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other skills, from other repositories