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). Use when: salesforce, sfdc, apex, lwc, lightning web components.

Author

Install

Hot:2

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=sickn33-skills-salesforce-development&locale=en&source=copy

Salesforce Development - Expert Mode Guide for Salesforce Platform Development

Skill Overview


Provide professional modes and best practices for Salesforce platform development, covering Lightning Web Components, Apex development, API integrations, and Salesforce DX toolchains.

Suitable Scenarios

  • Lightning Web Components Development

  • When you need to build responsive, high-performance frontend components, use the @wire decorator for reactive data binding to Lightning Data Service or Apex methods, fully leveraging Salesforce platform performance optimizations.

  • Apex Backend Logic Development

  • When handling business logic, data operations, and system integrations, use bulkified Apex triggers and Queueable asynchronous processing to avoid Governor Limits constraints and ensure the code can handle transactions involving 200+ records.

  • Salesforce DX Modern Development

  • When adopting a source-code-driven development workflow, use scratch orgs for development testing, package and distribute applications using 2nd Generation Packages (2GP), enabling team collaboration and version management.

    Core Features

  • Lightning Web Components Mode

  • - @wire service for reactive data binding
    - Lightning Data Service integration
    - Reactive invocation of Apex methods
    - Best practices for reactive LWC architecture

  • Apex Development Mode

  • - Bulkified triggers
    - Handler pattern for separation of concerns
    - Queueable asynchronous processing and job chaining
    - Recursion prevention mechanisms

  • API Integration and Tools

  • - Guidance for REST/Bulk API usage
    - Connected Apps configuration
    - Salesforce DX workflow
    - 2GP package management and distribution

    Common Questions

    What is the wire service in Lightning Web Components?

    The @wire decorator is a core feature of LWC for implementing reactive data binding. It can connect to Lightning Data Service (which automatically fetches and manages record data) or Apex methods (to execute custom business logic). When data changes, the component automatically re-renders without requiring a manual refresh. This pattern fully leverages Salesforce platform performance optimizations and caching mechanisms.

    How do you avoid Governor Limits in Apex development?

    Key patterns for avoiding Governor Limits include: (1) bulkified operations—ensure triggers and classes can handle 200+ records; (2) avoid executing SOQL/DML inside loops—use collections for bulk queries and operations; (3) use asynchronous processing—Queueable Apex is suitable for complex asynchronous tasks (limited to 50 jobs per transaction); (4) don’t hard-code IDs—use dynamic queries or custom settings.

    What is a Salesforce DX scratch org?

    A Scratch Org is a short-term, configurable sandbox environment provided by Salesforce DX for development and testing. Developers can define the shape of the org (features, settings, etc.), create and destroy it quickly, and support a source-code-driven development workflow. Unlike traditional sandboxes, scratch orgs are created from source code, ensuring environment consistency and making them suitable for CI/CD pipelines.