forge-impact
Skill2 starsChanged 4 months agoMITView on GitHub
Blast-radius analysis before you touch unfamiliar code. Use when estimating what a change to a symbol or file will break, scoping a refactor, or reviewing a PR — run forge impact first, then decide.
- Installs packages
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- global/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- forge-ledgerSkill
- forge-verifySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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
- Distinctive: line 21
Before editing a symbol or file you didn't write — *what breaks if I change this?*
- Distinctive: line 26
Don't use it for a one-line change to a leaf function you own.
- Distinctive: line 62
Treat "ambiguous reference" lines as *unresolved risk*, not noise — a name that matched multiple definitions is exactly where bugs hide.
- Distinctive: line 65
If the impacted set is bigger than you expected, shrink the change, not the analysis.
≈ “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.
Files
forge-impact — hazard-aware blast radius
Install
# from a forgekit checkout, or: npm install -g forgekit
cp -r skills/forge-impact .claude/skills/Requires the forge CLI on PATH.
When to use
- Before editing a symbol or file you didn't write — what breaks if I change this?
- Scoping a refactor — how big is this really?
- Reviewing a PR — did the author miss an affected caller?
- Triaging a bug — which files could have caused this symptom?
Don't use it for a one-line change to a leaf function you own. Do use it whenever the words "I think this is safe" cross your mind.
Commands
forge impact <symbol|file> # blast radius of a symbol or file
forge impact src/ledger.js # by file
forge impact computeTax --json # by symbol, machine-readable
forge impact src/val.js --basic # fixed threshold, no hazard enhancements (faster)
forge impact <target> --all-relations # also walk sibling/forward relations (larger, noisier)
forge impact --diff # your working diff: coupled invariants first, then dependents
forge impact --staged # the same, over the index--diff flags what no import edge records: a set you grew (an allowlist, a registry)
that code in the same package quantifies over (require-all loops, size checks, switches
missing the new member), and a store you now load into memory while another binary
writes its file. Treat each !! line as a file you must open before claiming done.
How it works (the 30-second version)
- Builds the repo's reference graph (imports, calls, re-exports).
- Propagates backwards from the target through callers, expanding through strongly-connected components (SCCs) — cycles propagate together.
- Applies a data-driven threshold: PageRank centrality of each node plus the ledger's incident history (files that caused incidents before rank higher).
- Reports impacted files, ambiguous references it refused to link, and imports it couldn't resolve.
See references/reading-output.md for the output anatomy and references/thresholds.md for the hazard model.
Rules
- Impact first, edit second. The analysis is cheap; the missed caller is not.
- Treat "ambiguous reference" lines as unresolved risk, not noise — a name that matched multiple definitions is exactly where bugs hide.
--jsonwhen you're feeding the result into another tool or a review checklist.- If the impacted set is bigger than you expected, shrink the change, not the analysis.
References
- references/reading-output.md — output anatomy with an example
- references/thresholds.md — SCC expansion + PageRank + incident history
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
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.

