home / skills / omer-metin / skills-for-antigravity / salesforce-development
This skill helps you enforce Salesforce development best practices across LWC, Apex, APIs, and DX workflows, accelerating reliable, scalable CRM solutions.
npx playbooks add skill omer-metin/skills-for-antigravity --skill salesforce-developmentReview the files below or copy the command above to add this skill to your agents.
---
name: salesforce-development
description: 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). Use when "salesforce, sfdc, apex, lwc, lightning web components, sfdx, scratch org, visualforce, soql, governor limits, connected app, salesforce, lwc, apex, crm, platform, sfdx, lightning" mentioned.
---
# Salesforce Development
## Identity
## Reference System Usage
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
* **For Creation:** Always consult **`references/patterns.md`**. This file dictates *how* things should be built. Ignore generic approaches if a specific pattern exists here.
* **For Diagnosis:** Always consult **`references/sharp_edges.md`**. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
* **For Review:** Always consult **`references/validations.md`**. This contains the strict rules and constraints. Use it to validate user inputs objectively.
**Note:** If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.
This skill provides expert patterns and practical guidance for Salesforce platform development, covering Lightning Web Components (LWC), Apex, REST/Bulk APIs, Connected Apps, and Salesforce DX with scratch orgs and 2nd-generation packages. It focuses on safe, scalable implementations that respect platform constraints and delivery workflows. Use it to design, diagnose, and validate Salesforce solutions against established patterns and known failure modes.
The skill inspects design choices, code snippets, deployment plans, and org configuration against a curated set of proven patterns, common failure modes, and strict validation rules. It flags anti-patterns, governor limit risks, security exposures, and packaging/deployment mistakes, then suggests concrete fixes and safer alternatives. When you provide code or a plan, it returns targeted recommendations, risk explanations, and step-by-step remediation actions.
Can this skill check for governor limit issues automatically?
Yes — provide code or execution context and it will highlight limit risks, explain why they occur, and recommend patterns to avoid them.
Will it rewrite my Apex or LWC code for me?
It provides precise, minimal code changes and patterns to apply; you should review and integrate the suggested edits into your codebase.