trigger-refactor-pipeline

trigger-refactor-pipeline

热门

Refactor Salesforce triggers into handler patterns with automated test generation and deployment. Use when modernizing legacy triggers with DML/SOQL in loops or inconsistent patterns.

1055Star
354Fork
更新于 2026/10/3
请求的译文尚未完成,当前显示原始英文。
SKILL.md
只读
名称
trigger-refactor-pipeline
描述

Refactor Salesforce triggers into handler patterns with automated test generation and deployment. Use when modernizing legacy triggers with DML/SOQL in loops or inconsistent patterns.

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: