trigger-framework
CommunityEnforce one trigger per object with safe handlers
Software Engineering#salesforce#apex#trigger#design-pattern#governor-limits#recursion-prevention#trigger-handler
Authorbhanu91221
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Managing multiple triggers across objects leads to duplication, inconsistent behavior, and recursion issues. A central TriggerHandler pattern enforces a single-trigger-per-object approach, preventing re-entrancy and improving maintainability.
Core Features & Use Cases
- One Trigger per SObject pattern: Trigger delegates to a handler class.
- Recursion prevention via processed tracking and bypass controls.
- Centralized execution routing for before/after events to simplify testing and governance.
- Use Case: A Salesforce org with many objects can implement consistent validation, defaults, and business rules without scattering logic in triggers.
Quick Start
Define a TriggerHandler base class and a per-object Trigger that delegates to a corresponding Handler to enforce the one-trigger-per-object pattern.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: trigger-framework Download link: https://github.com/bhanu91221/claude-sfdx-iq/archive/main.zip#trigger-framework Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.