Before editing, the skill now establishes a safety net: run existing coverage for a green baseline, or write characterization tests against the current behaviour where the code is testable logic. Those tests must still pass unchanged afterwards, so a test that had to be edited means the refactor moved behaviour and gets reverted. The refactor itself is now governed by SRP, SPOT, KISS and DRY, and no file containing program code may exceed 250 lines. Description and markup languages are exempt, as is a file the language or framework genuinely forbids splitting. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>