coding · Claude Code · free
I inherited this function and nobody remembers what it does. Reverse engineer it. Call sites I could find: [PASTE 2 3 OR "unknown"] Give me: 1. Plain English purpose in one sentence — what it exists to do 2. Inputs: type, allowed values, unstated assumptions 3. Outputs: type, format, when it returns nothing 4. Side effects (writes, network, globals, mutation of args) 5. The 3 non obvious behaviors that a rewrite would break 6. The 2 lines that look important but are actually dead code 7. Questions I should answer before touching it Don't guess — mark anything uncertain with "UNVERIFIED" and tell me how to check.
#legacy #code-reading #onboarding