Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Code Impact?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ku5ic-code-impact)
---
name: code-impact
description: What breaks if a file or symbol changes: its consumers, their tests, and their churn
argument-hint: "<file path> [symbol]"
allowed-tools:
- Bash(gh pr diff *)
- Bash(gh pr view *)
- Bash(glab mr diff *)
- Bash(glab mr view *)
- Bash(git log *)
- Bash(kit blast-radius *)
- Bash(kit git-base *)
- Bash(kit scratch-dir *)
---
# /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.
Loading this skill isn't enough. Before the step a row names, read its file.
| Before | Read |
| ------------------ | ------------------------------------------ |
| Writing the report | [reference/report.md](reference/report.md) |
## Consumers
1. Resolve the argument to a tracked file. A loose name gets searched with `fd`, and the substitution goes in the report header. Several matches: ask which, listing them. None: say so and stop.
2. Consumers: `kit blast-radius <file> [symbol]`. Each row is a consumer with its line, `source` or `test`, and how it matched. Past 50 rows it prints "... N more": count from its header line and say so. Exit 2 (no scanner for the language, or no `ast-grep`): say so in the report and find consumers with `rg -w` on the target's module name and exported names.
3. `rg` for the target's file name and exported names outside `kit blast-radius`'s hits, and list what turns up under Caveats.
4. 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 `kit blast-radius <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 for what the consumer relies on beyond the signature.
## Report
Write to the path `kit scratch-dir impact <target-slug>` prints, raw files in a sibling folder named after it without `.md`. The shape is [reference/report.md](reference/report.md).
## 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`