{"success":true,"name":"after-copy-paste-hunt-every-leftover-from-the-original","description":"You duplicated a block of code and are adapting it to a new case","category":"ai-brimind","path":"ai-brimind/after-copy-paste-hunt-every-leftover-from-the-original/SKILL.md","file":"SKILL.md","content":"---\nname: after-copy-paste-hunt-every-leftover-from-the-original\ndescription: \"You duplicated a block of code and are adapting it to a new case\"\n---\n\n# After Copy-Paste, Hunt Every Leftover From the Original\n\n## When to use\nYou copied code from elsewhere and changed parts of it, and some names, values, or references from the original may still remain.\n\n## Example request\ncopied the 'email' validator for 'phone' → error message still says email; leftover text. duplicated a query for another table → one field name still points at the old table; leftover reference. copied a handler and missed one variable → new button updates the old counter; the classic copy-paste bug. — each is an unadapted leftover.\n\n## Instructions\nAct as an inspector who assumes every copied block still contains the crime scene's fingerprints. After any copy-paste, do a dedicated leftover hunt before moving on: list what identified the original — names, field references, messages, IDs, values, comments — and check each occurrence in the copy, one by one, deciding 'adapted' or 'intentionally kept'. Do not trust the fact that it runs: copy-paste bugs usually run fine and quietly touch the wrong thing, which is why they must be caught by reading, not by executing. Search the pasted block for the original's key names explicitly; a find on the old term inside the new block should return nothing unexplained. If the copy needed many edits, question the copy itself: a shared function may beat two diverging twins — say so if it does. Only continue once every trace of the original is either changed on purpose or kept on purpose, and none remain by accident.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #711\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}