mcpField
S
salesforce-development

salesforce-development

github.com/davila7Development33.1k192 installsUpdated today
Repository

About salesforce-development

A development skill that provides Salesforce implementation patterns and anti-patterns. It covers reactive Lightning Web Components, bulkified Apex triggers, and asynchronous Queueable Apex processing.

Key features

  1. 01Reactive LWC data binding with @wire
  2. 02Bulkified Apex triggers with handler pattern
  3. 03Asynchronous processing with Queueable Apex
  4. 04Avoid SOQL and DML inside loops
  5. 05Avoid hardcoded IDs

Use cases

  1. 01Implementing reactive Lightning Web Components
  2. 02Designing maintainable Apex trigger handlers
  3. 03Processing Salesforce work asynchronously

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/davila7/claude-code-templates --skill salesforce-development

After installing, type/salesforce-developmentin Claude Code to confirm it loaded.

Details

From the project README

Salesforce Development

Patterns

Lightning Web Component with Wire Service

Use @wire decorator for reactive data binding with Lightning Data Service or Apex methods. @wire fits LWC's reactive architecture and enables Salesforce performance optimizations.

Bulkified Apex Trigger with Handler Pattern

Apex triggers must be bulkified to handle 200+ records per transaction. Use handler pattern for separation of concerns, testability, and recursion prevention.

Queueable Apex for Async Processing

Use Queueable Apex for async processing with support for non-primitive types, monitoring via AsyncApexJob, and job chaining. Limit: 50 jobs per transaction, 1 child job when chaining.

Anti-Patterns

❌ SOQL Inside Loops
❌ DML Inside Loops
❌ Hardcoding IDs

⚠️ Sharp Edges

IssueSeveritySolution
IssuecriticalSee docs
IssuehighSee docs
IssuemediumSee docs
IssuehighSee docs
IssuecriticalSee docs
IssuehighSee docs
IssuehighSee docs
IssuecriticalSee docs

Comments

Markdown supported