sf-trigger-constraints
CommunityEnforce Apex trigger best practices at code time.
Authorjiten-singh-shahi
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Enforce one-trigger-per-object, handler delegation, bulkification, and recursion prevention for Apex triggers to ensure safe, scalable, and maintainable code.
Core Features & Use Cases
- Enforces a single trigger file per sObject to guarantee consistent deployment and ordering.
- Delegates trigger logic to handler classes to keep triggers thin and promote testable service code.
- Applies bulkification and recursion safeguards to prevent governor-limit violations and unintended re-entries.
- Provides a centralized set of rules and anti-pattern detections used by code reviews and PR checks.
Quick Start
Review and enforce trigger constraints during development by invoking the sf-trigger-constraints workflow in your Salesforce codebase.
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: sf-trigger-constraints Download link: https://github.com/jiten-singh-shahi/salesforce-claude-code/archive/main.zip#sf-trigger-constraints 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.