Rename an exported symbol safely across an unfamiliar codebase
When to use: You don't trust the codebase enough to just grep-and-rename.
Prerequisites
- Server/skill installed and authenticated — See repo README
Flow
-
Map the impactShow me every file that imports
parseConfigfrom src/config.ts.✓ Copied→ List of importers grouped by package -
Find covering testsWhich tests exercise src/config.ts? Run them first.✓ Copied→ Test files + pass/fail status
-
RefactorRename to
loadConfigeverywhere. Update tests too.✓ Copied→ Diff across all importers
Outcome: Rename with confidence — every call site and every test accounted for.
Pitfalls
- Dynamic imports (
require(x)) won't show up in the graph. For dynamic dispatch, double-check with grep. — Dynamic imports (require(x)) won't show up in the graph. For dynamic dispatch, double-check with grep.