salesforce-development
Installation
SKILL.md
Salesforce Development
Expert patterns for Salesforce platform development including Lightning Web Components (LWC), Apex triggers and classes, REST/Bulk APIs, External Client Apps, and Salesforce DX with scratch orgs and 2nd generation packages (2GP).
Modern Architecture Guidance
Security and User Mode
For current Apex development, make the intended data-access mode explicit.
- Prefer
WITH USER_MODEfor SOQL/SOSL that should enforce the running user's object permissions, FLS, sharing, and other supported security controls. - Use user-mode DML or
Databasemethods when the operation should enforce user permissions. - Use system mode only when elevated access is intentional and justified.
WITH SECURITY_ENFORCEDis legacy guidance and should not be used for new API 67.0+ code.- API 67.0 changes the platform defaults for database operations and class sharing, so do not assume older API-version behavior applies to newer code.