trigger-refactor-pipeline
Installation
SKILL.md
When to Use This Skill
Use this skill when you need to:
- Modernize legacy triggers with DML/SOQL operations inside loops
- Refactor triggers that lack clear separation of concerns
- Implement bulk-safe patterns in existing trigger code
- Generate comprehensive test coverage for refactored triggers
Prerequisites
Before starting, ensure you have:
- Salesforce CLI installed and authenticated to your target org
- Python 3.9 or higher installed
- The baseline trigger deployed (see Setup section)
Setup
Deploy the baseline anti-pattern trigger to analyze and refactor: