/skills-developer:salesforcefrom Developer Skills
Architect Salesforce: multi-cloud design, integration patterns, governor limits and deployment. Use when developing Apex, Lightning Web Components, or Salesforce flows.
Ships in Developer Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Salesforce enterprise development is not clicking around Setup menus or writing single-record Apex scripts. Salesforce is a multi-tenant cloud environment governed by strict, unyielding runtime Governor Limits. An un-bulkified SOQL query inside a for loop or an unhandled recursion trigger will instantly crash production workflows. Architecting Salesforce requires rigorous bulkification patterns, decoupled trigger frameworks, Lightning Web Components (LWC), and automated Salesforce DX metadata deployments.
insert, update, delete) inside a for loop.List<Account>, Set<Id>, Map<Id, Account>).trigger AccountTrigger on Account (before insert, after update) {
AccountTriggerHandler.handle(Trigger.new, Trigger.oldMap, Trigger.operationType);
}
@wire(getRecord)) to read and mutate Salesforce data with client-side caching and zero custom Apex whenever possible.Database.Batchable) to expand governor limits (SOQL increases to 200, CPU to 60s).force-app/main/default).sf org create scratch -f config/project-scratch-def.json -a FeatureDevOrg
sf project deploy start
sf apex run test --code-coverage --result-format human
SFDC-SPEC.md)# Salesforce Architecture Specification: [Feature / Module]
## 1. Data Model & Relationships
- **Objects Impacted**: `Account` (Standard), `Subscription__c` (Custom)
- **Relationship**: Master-Detail (`Subscription__c` -> `Account`)
- **Security**: Inherited sharing (`with sharing` enforced on all Apex classes)
## 2. Apex Trigger & Handler Design
```apex
public with sharing class SubscriptionTriggerHandler {
public static void handleAfterInsert(List<Subscription__c> newRecords) {
Set<Id> accountIds = new Set<Id>();
for (Subscription__c sub : newRecords) {
if (sub.AccountId__c != null) {
accountIds.add(sub.AccountId__c);
}
}
if (!accountIds.isEmpty()) {
recalculateAccountARR(accountIds);
}
}
}
Queueable job for external HTTP callouts.with sharing or without sharing.System.assertEquals().
---
## Worked Example: Bulkified Opportunity ARR Rollup
- **Problem**: Legacy trigger fired individual SOQL queries per Opportunity line item, throwing `System.LimitException: Too many SOQL queries: 101` when importing bulk CSVs.
- **Refactor**: Replaced loop query with a single aggregated SOQL query grouped by Account ID stored in a `Map<Id, AggregateResult>`.
- **Result**: Successfully processed batches of 2,000 records in 1.2 seconds using only 3 SOQL queries.
---
## Verification Checklist
- [ ] Zero SOQL queries or DML statements reside inside `for` loops.
- [ ] Exactly one trigger per sObject, delegating to a structured Handler class.
- [ ] All Apex classes declare explicit sharing rules (`with sharing`).
- [ ] Apex test classes test bulk records ($\ge 200$ items) and verify assertions.
- [ ] Metadata deployed using Salesforce CLI (`sf project deploy start`) with clean git history.
---
## Anti-Patterns
- **SOQL in Loops**: Querying the database inside an iteration block, guaranteeing governor limit crashes in production.
- **Multiple Triggers per Object**: Creating 5 different triggers on `Contact`, leading to race conditions and debugging nightmares.
- **Hardcoding Record Type IDs**: Hardcoding 18-character Salesforce IDs instead of querying via DeveloperName or Schema describes.
What SKILL.md sets; muted values are Claude Code's defaults
skills-developer@skillary is listed by poorvith-mp/skillary — review the source before installing
npx claudepluginhub poorvith-mp/skillary --plugin skills-developer135 skills in this plugin
/accessibility-engineerMoved to accessibility-fix in skills-developer. Removed in v4.1./accessibility-fixAudit and refactor code for WCAG 2.1/2.2 AA and AAA: ARIA, keyboard operability, screen readers. Use when auditing or remediating WCAG 2.1/2.2 AA/AAA accessibility issues./ai-data-remediation-engineerMoved to data-pipelines in skills-developer. Removed in v4.1./ai-engineerMoved to ml-deployment in skills-developer. Removed in v4.1.