Rename an exported symbol safely across an unfamiliar codebase
언제 쓸까: You don't trust the codebase enough to just grep-and-rename.
사전 조건
- Server/skill installed and authenticated — See repo README
흐름
-
Map the impactShow me every file that imports
parseConfigfrom src/config.ts.✓ 복사됨→ List of importers grouped by package -
Find covering testsWhich tests exercise src/config.ts? Run them first.✓ 복사됨→ Test files + pass/fail status
-
RefactorRename to
loadConfigeverywhere. Update tests too.✓ 복사됨→ Diff across all importers
결과: Rename with confidence — every call site and every test accounted for.
함정
- 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.