trace-it
Skill60 starsChanged 10 months agoMITView on GitHub
Before modifying shared code (utilities, types, configs, base classes), traces all callers and dependents first. Activates when editing files in shared/, utils/, lib/, or anything imported by 3+ files. Prevents "fixed one thing, broke three others."
1 other project uses a version of this.
Adopted by
Most recently taken up by
- SubliminalCoding/bilbroswagginz-skillstheir own version, first seen Sep 27, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- SubliminalCoding/bilbroswagginz-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 repository38 other files it gives its agents.
- agent-auditSkill
- battle-planSkill
- breadcrumbsSkill
- careful-deleteSkill
- debug-to-fixSkill
- dont-be-greedySkill
- dripSkill
- etaSkill
- fan-outSkill
- geordieSkill
- granola-syncSkill
- keep-it-simpleSkill
- learn-from-thisSkill
- loose-endsSkill
- map-reduceSkill
- obsidian-base-createSkill
- obsidian-canvas-createSkill
- obsidian-daily-driverSkill
- obsidian-note-createSkill
- obsidian-session-syncSkill
- obsidian-vault-initSkill
- obsidian-vault-searchSkill
- pair-modeSkill
- pipelineSkill
- pre-mortemSkill
- prove-itSkill
- retrospectiveSkill
- rubber-duckSkill
- safe-refactorSkill
- sanity-checkSkill
- skill-creatorSkill
- skill-forgeSkill
- skill-gateSkill
- split-decisionSkill
- stay-in-laneSkill
- you-sureSkill
- youtube-transcriptSkill
- zero-inSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 12 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 50
Document what you find:
- Distinctive: line 88
Update all callers in same commit
- Distinctive: line 89
Test each caller's behavior
- Distinctive: line 92
Consider: Is this change necessary?
- Distinctive: line 95
Update incrementally with tests </plan_migration>
- Distinctive: line 100
When changing function signatures:
- Distinctive: line 143
Update shared code and only test one caller
- Distinctive: line 150
Document the caller count and impact level
- Distinctive: line 151
Update ALL callers in the same change
- Distinctive: line 152
Verify no type errors after the change
- Distinctive: line 153
Check for string-based references (dynamic imports, configs)
- Very specific: line 178
Update re-export in utils/index.ts
- Distinctive: line 179
Update imports in all 4 consumer files
- Very specific: line 180
Verify: grep -r "formatDate" src/ returns nothing
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Trace It
<purpose>
Shared code is high-leverage but high-risk. Change a utility function and you
might break 10 callers. Change a type definition and you invalidate assumptions
across the codebase. This skill forces you to trace impact before editing.
</purpose>When To Activate
<triggers>
- Editing files in: `utils/`, `lib/`, `shared/`, `common/`, `core/`
- Modifying exported functions, classes, or types
- Changing function signatures (parameters, return types)
- Editing config files or constants
- Renaming anything that might be imported elsewhere
- Modifying base classes or interfaces
- User says "change how X works" for foundational code
</triggers>Instructions
Before Modifying Shared Code
<trace_callers>
Step 1: Find All Callers
# Find imports/requires of this file
grep -r "from.*['\"].*filename" src/
grep -r "import.*filename" src/
grep -r "require.*filename" src/
# Find usages of specific function/class
grep -r "functionName" src/ --include="*.ts"Document what you find:
## Dependency Trace: [file or function name]
**Direct callers:** [count]
- `src/api/handler.ts:23` - uses for validation
- `src/services/user.ts:45` - uses for formatting
- `src/utils/helpers.ts:12` - re-exports it
**Indirect dependents:** [count]
- Files that import the direct callers</trace_callers>
<assess_impact>
Step 2: Assess Impact
For each caller, determine:
| Caller | How it uses this | Will change break it? |
handler.ts | Calls validate(input) | Yes - signature changes |
user.ts | Uses return value | No - return type same |
Impact level:
- Low: 1-2 callers, simple usages
- Medium: 3-5 callers, varied usages
- High: 6+ callers OR complex/varied usages </assess_impact>
<plan_migration>
Step 3: Plan the Change
For Low impact: Proceed, update callers inline.
For Medium impact:
- Make change backward-compatible if possible
- Update all callers in same commit
- Test each caller's behavior
For High impact:
- Consider: Is this change necessary?
- Create migration plan
- Consider deprecation period
- Update incrementally with tests </plan_migration>
Signature Changes
When changing function signatures:
## Signature Change
**Before:** `function process(data: string): Result`
**After:** `function process(data: string, options?: Options): Result`
**Breaking:** No (new param is optional)
**Callers to update:** 0 required, 5 could benefit
## OR
**Before:** `function process(data: string): Result`
**After:** `function process(data: ProcessInput): Result`
**Breaking:** Yes
**Callers to update:** 8 files
**Migration:** [list each file and required change]Output Format
## Trace: [what you're changing]
**Callers found:** [count]
**Impact level:** [Low/Medium/High]
**Changes required:**
- [ ] `file1.ts:line` - [what needs updating]
- [ ] `file2.ts:line` - [what needs updating]
**Verified after change:**
- [ ] All callers updated
- [ ] No new type errors
- [ ] Tests passNEVER
- Modify shared code without tracing callers first
- Change function signatures assuming "it's probably fine"
- Update shared code and only test one caller
- Forget to check re-exports (file A exports from file B)
- Assume grep found everything (check for dynamic imports)
ALWAYS
- Trace before touching shared code
- Document the caller count and impact level
- Update ALL callers in the same change
- Verify no type errors after the change
- Check for string-based references (dynamic imports, configs)
Example
User: "Rename the formatDate function to formatDateTime"
Trace:
grep -r "formatDate" src/Found:
src/utils/date.ts:15 - definition
src/components/Header.tsx:8 - import
src/components/EventCard.tsx:12 - import
src/pages/Dashboard.tsx:45 - import
src/api/events.ts:23 - import
src/utils/index.ts:5 - re-exportImpact: 6 files reference this. High impact.
Plan:
- Rename in
date.ts - Update re-export in
utils/index.ts - Update imports in all 4 consumer files
- Verify:
grep -r "formatDate" src/returns nothing
After completion:
Renamed
formatDate→formatDateTimeacross 6 files. Verified: no remaining references to old name.
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.

