agentleFS
ame589ame589/Claude_skill/skills/blast-radius/SKILL.md

blast-radius

Skill0 starsChanged 4 months agoMITView on GitHub

Map the full impact ("blast radius") of a code change before merging: which callers, tests, docs, API/schema surfaces, migrations, config and i18n files it touches, plus a risk score and a ship-readiness checklist — then fill the gaps it finds. Use this before opening a PR, before merging, when reviewing a diff, when asked "what does this change affect / did I forget anything / is this safe to ship", or when a change touches shared/public code. Triggers on: "impact analysis", "what does this break", "blast radius", "ship readiness", "pre-merge check", "reverse dependencies", "who calls this", "am I forgetting tests/docs".

111 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ketchup-video, principle-never-block-on-the-human and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • tristanphvnSkill

    ketchup-video

    Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.

    Also in 14 projects that use this

  • jaydubya818Skill

    principle-never-block-on-the-human

    Apply when safe reversible implementation details can proceed inside scope.

    Also in 44 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 29 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 20 projects that use this

  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 25 projects that use this

  • jaydubya818Skill

    principle-make-operations-idempotent

    Apply when an operation must tolerate retries after partial completion.

    Also in 46 projects that use this

  • +6 more from jaydubya818

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 106 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user asks "what does this affect", "what will this break", "did I forget anything", "is this safe to ship", "who calls this …

    line 29
  2. Distinctive:

    When reviewing someone else's diff and you need the impact surface fast.

    line 31
  3. Distinctive:

    Follow these steps in order.

    line 36
  4. Distinctive:

    Run the analyzer against the change under review.

    line 41
  5. Distinctive:

    After closing gaps, re-run step 1.

    line 95

“Common” is measured: kept by at least 6 in 10 of the 106 edited versions of this file we could read. “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

Blast Radius

What this does

Shipping is slow because of uncertainty, not typing. Before a change goes out, a developer has to answer a nervous checklist: which callers depend on what I changed? Did I update the tests, the docs, the changelog? Is there an API or migration surface that will break a consumer? This skill answers that mechanically from git + a reverse-dependency search, then helps close every gap it finds — turning a vague "looks fine" into an evidence-backed ship decision.

When to use it

  • Right before opening a PR or merging.
  • When the user asks "what does this affect", "what will this break", "did I forget anything", "is this safe to ship", "who calls this function".
  • When reviewing someone else's diff and you need the impact surface fast.
  • Whenever a change touches shared, exported, or public code.

Workflow

Follow these steps in order. Do not skip step 1 — the report is the ground truth everything else builds on.

1. Generate the impact report

Run the analyzer against the change under review. Pick the scope that matches what the user is shipping:

# Uncommitted + staged work (default — "what am I about to commit")
python3 skills/blast-radius/scripts/blast_radius.py --md blast-radius-report.md

# Everything on this branch vs the base (best for pre-PR / pre-merge)
python3 skills/blast-radius/scripts/blast_radius.py --base origin/main --md blast-radius-report.md

# Only staged
python3 skills/blast-radius/scripts/blast_radius.py --staged

The script needs only Python 3 and git; it uses ripgrep if present and falls back to a pure-Python search otherwise. It prints a Markdown report and can also emit JSON with --json report.json for programmatic use.

2. Read the report to the user, highest risk first

Lead with the overall risk badge and score, then the ship-readiness checklist. Do not bury the risk. If the score is HIGH, say so plainly and say why (fan-out, API surface, migration, missing tests).

3. Close every gap the checklist flags

The checklist is a to-do list, not a report to admire. For each flagged item, take the concrete action:

  • [MISSING TEST] → Write the missing test(s) for the changed symbols, matching the repo's existing test framework and conventions. Then re-run the analyzer to confirm the flag clears.
  • [REVIEW DOCS] / doc drift → Open the docs/README sections that describe the changed public symbols and update them to match the new behavior.
  • [BREAKING?] (API/schema) → Determine whether the change is backward-compatible. If not, recommend a semver bump, add a deprecation path where feasible, and draft a short consumer migration note.
  • [IRREVERSIBLE] (migration) → Confirm a rollback/rollforward plan and data-safety of the migration before it merges. Never wave this through.
  • [DEPLOY] (config/build) → Verify env parity and that deploy steps account for the config change.
  • [i18n] → Ensure every locale is updated, not just the default.
  • [CHANGELOG] → Add the entry.

4. Verify the reverse-dependency list

For each changed code file, walk the "who calls what you changed" section. For every caller listed, confirm the call site is still correct after your change (signature, return type, side effects, nullability). This is where silent breakage hides. Callers that need updating but aren't in the diff are your highest-priority follow-ups.

5. Re-run and give a verdict

After closing gaps, re-run step 1. Then give a one-paragraph verdict: the final risk level, what you changed to lower it, and any residual risk the user must sign off on (e.g. an intentional breaking change). If nothing residual remains, say it's ready to ship and why.

Interpreting the risk score

  • 🟢 LOW (<35) — Localized change, callers accounted for, collateral present.
  • 🟡 MEDIUM (35–64) — Real fan-out or a missing surface. Close the gaps before merge.
  • 🔴 HIGH (≥65) — Wide fan-out, API/migration surface, or missing tests on externally-called code. Treat as ship-blocking until justified.

The score is a heuristic prior, not a gate. Your judgment on the actual call sites (step 4) overrides it in both directions.

Notes & limits

  • Symbol extraction and reference search are heuristic and text-based. Treat the reverse-dependency list as leads to verify, not proof. It can miss dynamic dispatch, reflection, and string-built calls; it can over-report common names.
  • The analyzer never writes to the repo — it only reads git and files. All fixes in steps 3–4 are your normal edits, done deliberately.
  • For a deeper explanation of scoring and heuristics, see references/methodology.md.

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.