code-impact
Skill2 starsChanged 14 days agoMITView on GitHub
What breaks if a file or symbol changes: its consumers, their tests, and their churn
In this repository81 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- add-languageSkill
- audit-a11ySkill
- audit-archSkill
- audit-ciSkill
- audit-debtSkill
- audit-doc-driftSkill
- audit-flagsSkill
- audit-infraSkill
- audit-perfSkill
- audit-readinessSkill
- audit-securitySkill
- audit-slopSkill
- audit-testsSkill
- audit-tokensSkill
- audit-verifySkill
- backup-patternsSkill
- bash-patternsSkill
- claude-code-mods-patternsSkill
- code-challengeSkill
- code-contractSkill
- code-deep-reviewSkill
- code-evaluateSkill
- code-from-designSkill
- code-historySkill
- code-host-patternsSkill
- code-migrateSkill
- code-tourSkill
- code-visualSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- kit-rulesSkill
- logging-patternsSkill
- meta-conventionsSkill
- meta-promptSkill
- meta-refreshSkill
- meta-retroSkill
- meta-skillSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- nuxt-patternsSkill
- opentofu-patternsSkill
- pr-descriptionSkill
- pr-publishSkill
- pr-queueSkill
- pr-replySkill
- pr-reviewSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
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 54
Write to the path kit scratch-dir impact <target-slug> prints, raw files in a sibling folder named after it without .md.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
/code-impact
What breaks if a file or symbol changes: its consumers, the tests covering each, and how often each moves. With no argument, ask for the file before anything else.
Consumers
- Resolve the argument to a tracked file. A loose name gets searched with
fd, and the substitution goes in the report header. - Build the import graph:
kit code-graph imports <root> > <raw>/imports.tsv
kit code-graph deps <root> <raw>/imports.tsv <raw>- For a language
importsdoesn't cover, append rows asskills/code-visual/SKILL.mdCollect step 4 does. Without ast-grep, use its fallback, and say so in the report. - A consumer is a row of
<raw>/imports-resolved.tsvwhose second column is the target or the unit holding it (its module, package, or directory). - An import that names a unit wider than the file counts only when the consumer uses a name the target defines.
- Files that share the target's unit can use it without an import. List the ones that use a name it defines.
- With a symbol, keep only consumers where
rg -w <symbol>matches. - A file the project's test naming matches is a test, not a consumer.
- Imports miss reflection, string dispatch, config that names the target, and generated code.
rgfor the target's file name and exported names outside the graph's hits, and list what turns up under Caveats. - A consumer that is itself a shared module (more than 5 consumers of its own) gets one more hop, listed under it. Never more than one.
Tests and churn
For each source consumer:
- Tests: the test files that reach it, by the same lookup as step 2 run on the consumer. None is a finding.
- Churn:
git log --since=6.months --format=%h -- <consumer> | wc -l. - For the target itself:
git log --since=6.months --format='%h %ad %s' --date=short -- <target> | head -15, read for why it keeps changing.
Then read the target's exported surface and each consumer's call site. A consumer that relies on behavior beyond the signature (an error string, ordering, a default, a side effect) is the one that breaks without a type error.
Report shape
Write to the path kit scratch-dir impact <target-slug> prints, raw files in a sibling folder named after it without .md.
# Impact: <target> [<symbol>]
<N> consumers (<source> source, <test> test), <M> after one hop. Window: 6 months.
## TL;DR
- <how far a change reaches>
- <the one consumer to check first, and why>
- <where it's least covered>
---
## Consumers
| Consumer | Uses | Tests | Commits |
| -------- | ---- | ----- | ------- |
---
## Fragile call sites
- <file:line>: <what it relies on beyond the signature, and what breaks>
---
## Caveats
- <unresolvable imports, a language with no scanner, reflection or string dispatch>Uses is the symbol or call the consumer touches. A consumer with no tests and the most commits sorts first. Fragile call sites and Caveats are left out when empty.
Reply
The report path, the consumer count, and the first consumer to check.
Out of scope
- Changing the code, or proposing a refactor.
- Runtime consumers outside the repo (other services, published package users), named in Caveats only when the target is a public API.
Arguments: $ARGUMENTS
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.

