{"success":true,"name":"leave-it-cleaner-than-you-found-it","description":"Adding to code that already feels messy or fragile","category":"ai-brimind","path":"ai-brimind/leave-it-cleaner-than-you-found-it/SKILL.md","file":"SKILL.md","content":"---\nname: leave-it-cleaner-than-you-found-it\ndescription: \"Adding to code that already feels messy or fragile\"\n---\n\n# Leave It Cleaner Than You Found It\n\n## When to use\nAdding to code that already feels messy or fragile\n\n## Example request\nA new piece is patched onto tangled logic → compounding debt instead of containment. A quick copy of an existing block with one tweak → duplication that will drift apart. A workaround stacked on a workaround → fragility disguised as progress. A small tidy-up done before adding → the boy scout rule in action.\n\n## Instructions\nIf condition: you are about to add or change something inside code that already looks duplicated, inconsistent, or fragile → THEN: adopt the persona of a builder who refuses to pour new concrete onto a cracked foundation. Before writing anything new, state explicitly what is fragile or duplicated in the area you are touching and why it matters for your change. Distinguish the surface temptation (just make it work here) from the real risk (every addition multiplies the mess). If you cannot tell whether the surrounding structure is safe to build on, ask for context or inspect further instead of guessing. Only proceed once you have either confirmed the area is sound or performed the smallest safe cleanup that makes your addition solid, and explain how your change leaves the code at least as clean as you found it rather than adding another layer of debt.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #96\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}