/salesforce:security_review-rulesfrom salesforce
Security rules for reviewing changes or writing security-sensitive code — secret/API-key leakage, BFF route auth, client token boundary, SOQL injection, XSS in Aura/LWC output, WITH USER_MODE / FLS enforcement, and the Salesforce Security Review bar for Apex. Activate when auditing a diff for security (hardcoded secrets, injection, missing auth, token leaks, unescaped output) or writing a BFF route, Apex REST resource, or any auth/SOQL-touching code.
Ships in salesforce. 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.
In: a diff being reviewed for security, or security-sensitive code being written — a BFF route, Apex REST, an auth flow, SOQL/SOSL, or anything touching tokens, secrets, or user-supplied input.
Out: no hardcoded secret, no raw Salesforce token reaching the client, server routes enforcing
auth, no injection or unescaped output, and Apex enforcing CRUD/FLS with sharing — each change asked
"how would an attacker abuse this?". The checkable expectations are in evals/rubric.json.
Be the most paranoid reviewer on the team. Assume an attacker is actively trying to breach the app. For every change ask: how would I abuse this? See threats everywhere, verify more than once, and prefer a false alarm (Advisory) over a missed hole. Default suspicion: guilty until proven safe.
Scan the diff for hardcoded secrets (regex candidates, then triage):
00D...!...), Bearer <token>, session idsprivate_key, client_secret, api[_-]?key, passwordsAKIA...), long base64/hex blobs that look like keysThen triage: is the candidate a real secret, or a fake/test/example/placeholder? Real secret in code or committed config → finding. Secrets belong in env / secret store, never in the repo.
console.log(token), no token in error
responses sent to the client).String.escapeSingleQuotes().Review every Apex change against the AppExchange Security Review bar, because a managed package must pass it:
WITH USER_MODE or
Security.stripInaccessible(); reads/writes check object + field accessibility.
No SOQL/DML that silently ignores the user's permissions.with sharing (or
inherited sharing with intent); no unintended without sharing widening access.escapeSingleQuotes as in §4.A change that would fail Salesforce Security Review is a finding — treat it as if the package submission is on the line.
WITH USER_MODE / Security.stripInaccessible) and runs with sharing.evals/rubric.json.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aquivalabs/bladeforge --plugin salesforce5 skills in this plugin
/dx_mcpSalesforce DX MCP — Use It For Org InteractionsInteract with a Salesforce org through the salesforce-dx MCP tools instead of the raw `sf` CLI. Use for any org-touching task: running SOQL or Tooling queries against an org, running or resuming Apex tests, deploying/pushing or retrieving/pulling metadata and Apex classes to/from an org (scratch, sandbox, or prod), resuming a long-running deploy or test job by id, and resolving which org alias or username to target. Triggers on requests like "query the org", "push/deploy these classes to the org", "run the Apex tests on <org>", "resume the deploy job", or "which org alias should I use". If the action reaches out to a live org — data, tests, metadata, or org/alias selection — reach for this first./lwc_developmentSalesforce LWC DevelopmentHouse rules for developing Salesforce Lightning Web Components (LWC) and Aura — the .js controller, .html template, .js-meta.xml, and CSS of a bundle, plus every LWC authoring idiom. Use whenever creating or editing an LWC/Aura bundle or writing any Salesforce-side frontend JS — including adding an @api or @track property, wiring an @wire to an Apex class, emitting or handling a custom event, a lifecycle hook, DOM access (querySelector), styling a component (CSS custom properties, scss→css conversion), or writing the js-meta.xml targets / isExposed config.