Code Archaeology

Understand unfamiliar or legacy code before changing it — map entry points, mine git history (blame, churn, log -S), trace data flow, recover the why behind odd code, pin current behavior with characterization tests, find seams for safe change. Triggers: understand this codebase, legacy code, inherited this project, what does this code do, why is it written this way, nobody knows how this works, onboard to this repo, is it safe to change this. Prioritizing debt → technical-debt-review; improving code you already understand → refactoring.

SWEStash 3a251ab 2 files · 9.4 KB Updated

File contents

SWEStash/swe-workflow-skills/tree/main/skills/code-archaeology commit 3a251abcb5

Frequently asked questions

npx skillmds@latest add swestash/code-archaeology