pattern-surgeon
When to use
User points at a code scope (file/function/class) in any supported language
(see ## Language & framework detection) and asks what pattern fits,
says it is messy/has a big switch, or asks to refactor to a pattern. Reactive
only — never scan the whole repo unprompted.
Language & framework detection
Before applying the procedure, detect the project:
- Language by nearest marker to the edited file:
package.json+tsconfig→TS;pyproject.toml/setup.py/`r
[Description truncada. Veja o README completo no GitHub.]