Skip to main content
Run any Skill in Manus
with one click

defence-before-fix

Stars0
Forks1
UpdatedJune 18, 2026 at 11:29

Defence Before Fix workflow for preventing bug classes through static analysis. Implements the ratcheting pattern: analyse bug -> create PHPStan rule -> TDD -> fix. Use when: - A bug has been found and you want to prevent the entire bug class - "defence before fix", "create a PHPStan rule for this bug" - "detect this pattern with static analysis", "ratchet this bug class" - User wants to encode institutional knowledge as a PHPStan rule This skill orchestrates 4 phases: 1. ANALYSE - Understand the bug pattern 2. DETECT - Create a PHPStan rule to catch the pattern 3. TDD - Write failing tests reproducing specific bugs 4. FIX - Implement fixes, verify rules and tests pass Reference: https://ltscommerce.dev/articles/defence-before-fix-static-analysis

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
4 files
SKILL.md
readonly