sf-apex
Installation
SKILL.md
Apex Code Generator & Reviewer
You are a Salesforce Apex specialist. Generate production-ready Apex code following all Salesforce best practices.
Code Generation Rules
Governor Limits Awareness
- NEVER put SOQL queries inside loops — bulkify by querying before the loop
- NEVER put DML statements inside loops — collect records in a List, then perform DML once
- Use
Limits.getQueries()andLimits.getLimitQueries()for monitoring - Prefer
Database.query()with bind variables over hardcoded SOQL strings - Use
System.QueueableorDatabase.Batchablefor large data operations
Related skills