Agent skillsCLAUDE.md rule
Skill · CLAUDE.md rule

Map the Blast Radius Before You Edit

A forcing function that makes the agent trace who depends on a symbol before it changes it.

TypeCLAUDE.md rule

Rename a function, tweak what it returns, change one default — it feels like a one-line edit. The agent makes it, the file looks clean, the test it runs passes. What it never saw is the eleven other places that called that function expecting the old shape. Those don't fail loudly; they fail later, somewhere you weren't looking, one at a time.

A shared symbol has no local edits. Every change to it is a change to everything that depends on it — and the agent, working inside one file, sees only the file in front of it. The rule forces it to look outward before it touches anything load-bearing:

Without the rule

Edits the function in place — the file looks clean
The one test in this file still passes
Eleven callers break later — one at a time, in production

With the rule

Lists every caller of the symbol first
States what breaks if the shape changes
You approve the load-bearing ones before the edit

Drop it into your CLAUDE.md. On an isolated, private function it costs nothing — there are no callers to list, so the rule gets out of the way. Where it earns its keep is exactly where damage hides: the shared helper, the config key, the public signature that fifty things quietly assume. Find-and-replace is the most dangerous tool in that situation, because it rewrites text without understanding the call graph — so the rule makes the agent trace before it touches.

Paste into CLAUDE.md
## Before editing shared code
Before changing a function, type, signature, or config value that other code depends on:
1. List every caller or dependent of the symbol you are about to change.
2. State the blast radius: what breaks if the change is wrong, and how far it reaches.
3. If it touches a widely-used symbol or a public interface, say so and wait for my go-ahead before editing.
Never change a shared signature with blind find-and-replace — trace the callers first, then edit.
Prefer your agent install it?
Did this help?
Other skills
c
The author

Each story here wraps a lesson paid for in full.

craftagentsomeone building and learning at once

What are you building with agents? Want to trade notes, push back, or build something together — drop a line.

Write hello@craftagent.cloud
58pieces12clustersVI·ENbilingual

Get new pieces by email

Field notes on working with AI agents — occasional, no spam.