sf-governor-limits
CommunityPrevent Apex governor limit failures
Software Engineering#salesforce#apex#soql#dml#performance-optimization#bulk-processing#governor-limits
Authorjiten-singh-shahi
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Helps developers diagnose and remediate Salesforce Apex transactions that exceed governor limits and throw System.LimitException by identifying root causes and suggesting concrete optimizations.
Core Features & Use Cases
- Detect and diagnose: Identify SOQL-in-loop, excessive DML, heap and CPU hotspots, and improper callout usage that lead to limit breaches.
- Optimization strategies: Advise on query consolidation into maps, aggregate queries, single-batch DML patterns, async offloading, heap reduction techniques, and limit-aware guards.
- Testing and validation: Provide patterns for unit tests that reset and measure limit consumption, and guidance for bulk-safe trigger and service design.
Quick Start
Ask the skill to analyze this Apex trigger that throws a System.LimitException and recommend specific refactors to remove SOQL-in-loop and minimize DML.
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-governor-limits Download link: https://github.com/jiten-singh-shahi/salesforce-claude-code/archive/main.zip#sf-governor-limits 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.