impact
Skill2 starsChanged 6 months agoMITView on GitHub
On-demand precise impact analysis for a symbol or file before changing it. Spawns impact-analyzer to grep callers, classify the cascade (direct/indirect/test-only), and produce a confidence-scored report. Different from `.claude/state/architecture.md` (broad map) — this is the focused per-symbol drill-down
9 other projects use a version of this.
Adopted by
Most recently taken up by
- talayash/spring-fleettheir own version, first seen Sep 29, 2026
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- shammlo/zoth-skillstheir own version, first seen Sep 24, 2026
- Jsnnmsc/10000x-engineertheir own version, first seen Sep 3, 2026
- drafthq/drafttheir own version, first seen Jul 30, 2026
- Anuj7411/sipcodetheir own version, first seen Jun 17, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- mbwsims/claude-universe★ 72same name
- Anuj7411/sipcode★ 46same name
- drafthq/draft★ 40same name
- huiruru/ecoguilt★ 9same name
- gonimar/claude-web-studio★ 5same name
- talayash/spring-fleet★ 2same name
- Jsnnmsc/10000x-engineer★ 1same name
- ajsai47/aic-agi★ 0same name
- shammlo/zoth-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- improveSkill
- teamSkill
- ccf-architecture-contractSkill
- ccf-build-and-envSkill
- ccf-change-controlSkill
- ccf-debugging-playbookSkill
- ccf-doc-sync-campaignSkill
- ccf-dogfood-and-driftSkill
- ccf-domain-referenceSkill
- ccf-failure-archaeologySkill
- ccf-onboarding-tourSkill
- ccf-parity-playbookSkill
- ccf-release-and-installSkill
- ccf-testing-and-qaSkill
- improveSkill
- teamSkill
- add-referenceSkill
- ai-updateSkill
- app-blueprintSkill
- buildSkill
- check-readinessSkill
- deploySkill
- developSkill
- draft-storySkill
- error-analyzeSkill
- factorySkill
- fetch-docsSkill
- generate-internal-appSkill
- improveSkill
- indexSkill
- iterative-reviewSkill
- merge-resolveSkill
- mock-endpointSkill
- planSkill
- promoteSkill
- refine-storySkill
- scaffold-design-systemSkill
- searchSkill
- setupSkill
- teamSkill
- skill-nameSkill
- update-trackerSkill
- validateSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Before making a confident-but-wrong change to a function, class, or file, run /impact to see what would break.
- Distinctive: line 48
Read the agent's summary output.
- Distinctive: line 57
If the user is iterating on a change:
- Distinctive: line 62
If the user is exploring (no specific change):
“Common” is measured: kept by at least 6 in 10 of the 9 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.
Files
Impact — On-Demand Cascade Analysis
Before making a confident-but-wrong change to a function, class, or file, run /impact to see what would break.
/impact answers questions like "if I change the return type of requireAuth, what breaks?" — without you having to grep callers, read each one, and reason about cascades by hand. Output is a structured report at .claude/state/impact-<hash>.md plus a short summary.
This complements .claude/state/architecture.md:
- architecture.md is the broad map (module boundaries, dependency direction, top-10 hotspots) refreshed by
/improveeach session /impact <symbol>is the focused drill-down for a specific change you're about to make
Usage
/impact <file> analyze every exported symbol in the file
/impact <file>:<symbol> analyze just that symbol
/impact <symbol> bare symbol; spawns analyzer to find definition first
/impact --refresh <target> ignore cache; re-run analysisExamples:
/impact lib/auth/middleware.ts
/impact lib/auth/middleware.ts:requireAuth
/impact requireAuth
/impact AccountTriggerHandler.cls:beforeInsert # ApexProcess
Phase 1: Spawn impact-analyzer
Run impact analysis on <target>. Locate the definition, find direct callers,
classify references (direct/type/test), trace second-order public callers
(depth=2 max), score confidence, write the report to .claude/state/impact-<hash>.md.
End with the surface summary.The agent is read-only by tool restriction (Read, Glob, Grep, Bash — no Edit/Write). Its only filesystem write is the report file.
Phase 2: Surface to user
Read the agent's summary output. Show:
- Total references + breakdown (direct / type / test)
- Confidence level + top caveat
- Top 3 most-impacted files
- Recommendation one-liner
- Path to the full report
Phase 3: Hand-off
If the user is iterating on a change:
- "Confidence is high — proceed; the test suite at
<paths>should catch regressions" - "Confidence is medium — review the second-order callers in
.claude/state/impact-<hash>.mdbefore merging" - "Confidence is low — string-keyed lookups detected; grep can't see them all. Consider running tests in addition"
If the user is exploring (no specific change):
- "X is used in Y places, mostly in
<dir>— likely a<role>(auth/data-access/etc.). Safe to refactor if Z."
State Files
| File | Purpose | Lifecycle |
.claude/state/impact-<hash>.md | Full per-symbol report | Cached by hash; re-used until target file's SHA changes |
<hash> is the first 8 chars of sha256(target). Two /impact calls on the same target return the cached report unless --refresh is passed or the target file has new commits.
When to Use /impact vs /architecture vs Grep
| Situation | Tool |
| About to change a specific function/class | /impact <target> |
| Trying to understand the codebase shape | Read .claude/state/architecture.md (refresh via /improve if stale) |
| Looking for a specific string | Grep directly |
| Looking for code semantically ("where do we handle X?") | /search (Phase 2 vector index, opt-in for large codebases) |
| Need precise call counts at scale | /search + /impact together; for 1M+ LOC consider GitNexus as a separate tool |
Edge Cases
| Scenario | Behavior |
| Target not found | Agent halts with "no definition for <target>"; suggest /search if user gave a vague name |
| Multiple definitions | Agent lists candidates; user picks; re-run with disambiguated target |
| Cache exists and target unchanged | Return cached report; show its timestamp |
| Cache exists but target file has new commits | Re-run automatically (cache invalidated by SHA mismatch) |
| Target has >500 direct callers | Report truncates; recommends /search for full picture |
| Test-only references | Report flags as "candidate for removal — only used by tests" |
| Salesforce / Apex targets | Agent also checks triggers, flows, @AuraEnabled/@RemoteAction annotations |
| Large codebase (>500k LOC) | Grep is still fast; /impact works. For semantic queries at this scale, run /index once then use /search |
Related
impact-analyzeragent — the agent this skill spawns.claude/state/architecture.md— broad map, refreshed by/improve/improve— refreshesarchitecture.mdevery session/search— semantic search across the indexed codebase (Phase 2)/index— builds the vector index (Phase 2; opt-in for large codebases)
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.

