Anti-Pattern Remediation
Use this skill when the user asks to fix an anti-pattern.
Required Order
- •Identify the anti-pattern from the user request.
- •Add exactly one concise prevention line to
AGENTS.md(relevant section). - •Only after that, implement the code fix.
Do not skip step 2.
Rule Requirements
- •One line only.
- •Concrete and enforceable.
- •Style-level guidance, not task-specific wording.
Implementation Requirements
- •Apply fixes directly; avoid wrapper-only changes.
- •Keep behavior unchanged unless user asks otherwise.
- •Add/update tests when behavior or contracts are affected.
- •Run validation commands expected by repo policy.
Output Requirements
- •State the new
AGENTS.mdrule. - •State what was fixed and where.
- •Call out any remaining follow-up work.