Salesforce Development
Expert patterns for Salesforce platform development including Lightning Web Components (LWC), Apex triggers and classes, REST/Bulk APIs, Connected Apps, and Salesforce DX with scratch orgs and 2nd generation packages (2GP).
When to Use
- User mentions or implies: salesforce
- User mentions or implies: sfdc
- User mentions or implies: apex
- User mentions or implies: lwc
- User mentions or implies: lightning web components
- User mentions or implies: sfdx
- User mentions or implies: scratch org
- User mentions or implies: visualforce
- User mentions or implies: soql
- User mentions or implies: governor limits
Core Workflow
- Confirm the request matches this skill's trigger, scope, and risk profile.
- Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.
- Load
references/full-guidance.md when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.
- Apply only the relevant guidance instead of loading or repeating the entire reference by default.
- Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.
Topic Map
- Patterns
- Lightning Web Component with Wire Service
- Context
- Bulkified Apex Trigger with Handler Pattern
- Queueable Apex for Async Processing
- REST API Integration with Connected App
- Bulk API 2.0 for Large Data Operations
- Salesforce DX with Scratch Orgs
- 2nd Generation Package (2GP) Development
- Sharp Edges
- Governor Limits Apply Per Transaction, Not Per Record
- @wire Results Are Cached and May Be Stale
- LWC Properties Are Case-Sensitive
- Null Pointer Exceptions in Apex Collections
- Trigger Recursion Causes Infinite Loops
- Cannot Make Callouts from Synchronous Triggers
- Cannot Mix Setup and Non-Setup DML
- Dynamic SOQL Is Vulnerable to Injection
Reference Map
references/full-guidance.md preserves the complete original guidance, including examples and detailed edge cases.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Progressive Loading
Keep this SKILL.md as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.
1---2name: salesforce-development3description: Expert patterns for Salesforce platform development including4license: MIT5---67# Salesforce Development89Expert patterns for Salesforce platform development including Lightning Web Components (LWC), Apex triggers and classes, REST/Bulk APIs, Connected Apps, and Salesforce DX with scratch orgs and 2nd generation packages (2GP).1011## When to Use12- User mentions or implies: salesforce13- User mentions or implies: sfdc14- User mentions or implies: apex15- User mentions or implies: lwc16- User mentions or implies: lightning web components17- User mentions or implies: sfdx18- User mentions or implies: scratch org19- User mentions or implies: visualforce20- User mentions or implies: soql21- User mentions or implies: governor limits2223## Core Workflow241. Confirm the request matches this skill's trigger, scope, and risk profile.252. Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.263. Load `references/full-guidance.md` when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.274. Apply only the relevant guidance instead of loading or repeating the entire reference by default.285. Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.2930## Topic Map31- Patterns32- Lightning Web Component with Wire Service33- Context34- Bulkified Apex Trigger with Handler Pattern35- Queueable Apex for Async Processing36- REST API Integration with Connected App37- Bulk API 2.0 for Large Data Operations38- Salesforce DX with Scratch Orgs39- 2nd Generation Package (2GP) Development40- Sharp Edges41- Governor Limits Apply Per Transaction, Not Per Record42- @wire Results Are Cached and May Be Stale43- LWC Properties Are Case-Sensitive44- Null Pointer Exceptions in Apex Collections45- Trigger Recursion Causes Infinite Loops46- Cannot Make Callouts from Synchronous Triggers47- Cannot Mix Setup and Non-Setup DML48- Dynamic SOQL Is Vulnerable to Injection4950## Reference Map51- `references/full-guidance.md` preserves the complete original guidance, including examples and detailed edge cases.5253## Limitations54- Use this skill only when the task clearly matches the scope described above.55- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.56- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.5758## Progressive Loading59Keep this `SKILL.md` as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.