Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By divingsbysangamv4.1.2MITIn 1 marketplace
Plans, builds and reviews Salesforce changes for Apex, LWC and Flow, then deploys and ships them. Its edit and deploy gates are off by default and must be enabled per feature.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
3 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Connects to a remote server outside your machine
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
apex, lwc, salesforce-flow, governor-limits, sf-cli, compound-engineering, skills-first, multi-platform ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Salesforce metadata gatemetadata_gate
Deny raw Salesforce metadata edits that no authoring skill authorised. OFF by default. Enabling this runs executable hooks on your machine. READ BEFORE ENABLING: - These hooks are executable scripts that run on your machine, with your full user permissions and no sandbox, on every matching file edit and every Bash call. They are delivered as repository content at the ref you installed; a git tag is mutable and is not a content address, so pin a commit SHA. - The absence of a deny is never evidence of authorisation. A PreToolUse hook fails open. The gate does not run, and does not say so, when: the script errors or times out; the script is missing, not executable, or its interpreter is absent; its output JSON is malformed; enterprise allowManagedHooksOnly or disableAllHooks suppresses plugin hooks — including the session-start self-check, which the same setting suppresses; the opt-in has not taken effect because the session was not restarted; or the path predicate misses. - The gate's own enforcement inputs are ordinary files the agent can edit. The hook scripts, the authoring allowlist, and the path-class routing table are not Salesforce metadata, so a change to any of them is never denied and produces no bypass record. One such edit disarms the gate for every future session in that repository. The session-start self-check records a digest of these inputs so a change is visible in the audit record, but nothing prevents it. - The model can bypass this gate at any time, using Bash, which it uses constantly. The Bash observer measures that bypass. It does not prevent it. Files referenced with @ in a prompt bypass PreToolUse entirely. - MCP writes and org deploys are ungated. .mcp.json configures @salesforce/mcp; deploy_metadata and its siblings write metadata and reach a live org without matching Edit, Write, NotebookEdit, or Bash. The drift this gate exists to prevent is more available through MCP than through the tools it watches. - Symlinked paths defeat a shape-only predicate. An edit to a benign filename that symlinks to an Apex class is not matched. - Enforcement exists on Claude Code only. The other eleven conversion targets receive the intent as text. - The log is local-only, pseudonymous rather than anonymous, retained until deleted, and shareable by the user. It is not an audit trail, and the override is not tamper-evident: the actor who sets the override can delete the record of it. - Stop and re-plan if U1 finds that no hook event carries skill identity for a description-matched entry. This breaks both halves, not only the reporter. The reporter's claim narrows to explicit invocations and the cold-skill feature is cut. For the gate it is worse: description-based routing is this plugin's primary designed entry path, so a developer who reaches an allowlisted authoring skill that way mints no grant and is denied on their first metadata edit. R4 and KTD1 both assume entry is observable, so U5 stops with U7 rather than proceeding on a narrowed claim. - Stop and re-plan if a full sf-lfg run cannot complete with the gate enabled after U2. - Stop and re-plan if U1's Cursor probe finds that Cursor does not silently ignore a PreToolUse entry it cannot honor and U9's file split cannot produce a hooks/hooks.json that Cursor accepts. The split is the prescribed remedy, so the probe's negative result redirects U8's config rather than halting the plan; only a failed split is the stop. Cursor receives hooks/hooks.json by manifest reference, bypassing the converter layer, so it is the one exception to this plan's inert-elsewhere premise. - Tail ownership: This plan ends at a reviewed, tested branch. Shipping is /sf-ship mode:pr. -
booleandefault false
Skill-firing telemetry (local only)skill_telemetry
Record which skills actually fire, to a local JSONL store. OFF by default. Nothing leaves your machine. Rows carry a skill name and salted references only -- never prompt text, file contents, org data, or a raw session id. Read it with scripts/skill-usage; purge it with scripts/skill-usage purge.
booleandefault false
Skills-first compound engineering for Salesforce — a multi-platform plugin (Claude Code, Cursor, Codex, and 9 other AI coding tools) where each iteration becomes smarter than the last through institutional knowledge capture and parallel persona dispatch. This is a skill-native product, not an instruction pack: workflows auto-route from natural language and from /sf-* invocation.
V4 is compact. Ten skills replace 68; former skills are modes (
/sf-plan mode:brainstorm,/sf-generate type:apex) whose guides load only when used. Nine review lenses replace 61 personas. SeeCHANGELOG.mdfor the old-name → new-name map.
Both hook features are OFF by default. Installing the plugin enables
nothing; you opt in per feature with /plugin configure, or by setting
SFCE_GATE_ENABLED=1 / SFCE_SKILL_LOG_ENABLED=1.
| Script | Event | Runs when |
|---|---|---|
scripts/session-start | SessionStart (startup) | always — prints the discipline primer, plus a few lines of project facts (API version, packages, default org and its type, source counts, trigger framework) inside a Salesforce DX project, from local files only |
scripts/sfce-gate-selfcheck | SessionStart (startup) | gate enabled |
scripts/sfce-metadata-gate | PreToolUse / PostToolUse on Edit, Write, NotebookEdit | gate enabled |
scripts/sfce-skill-observer | PostToolUse on Skill, UserPromptExpansion, SessionStart (clear/resume), SessionEnd | either feature enabled |
scripts/sfce-bash-observer | PostToolUse on Bash | either feature enabled |
scripts/sfce-deploy-gate | PreToolUse on Bash | on by default; acts only on sf project deploy / sf project delete (set SFCE_DEPLOY_GATE=0 to turn off) |
With both flags unset every gate/observer script exits before reading stdin. The deploy gate reads the payload but exits immediately unless the command is a deploy or delete; it asks before a direct production deploy or a destructive change on a non-scratch org, and denies --test-level NoTestRun on production. It classifies the org from local sf auth files, with no network call.
None of these scripts makes a network call, and that is enforced rather than
promised: cli/tests/hooks/invariants.test.ts walks scripts/ and fails on any
network-capable construct, and fails if any hook in hooks/hooks.json runs a
script outside that scan. There is exactly one declared runtime exception,
below, which no hook may invoke. (The CI-only scripts/check-npm-release.mjs,
which asks the npm registry what it serves, is the other declared exception;
nothing at runtime runs it.)
scripts/sfce-delegate — optional cheap-worker tierNot a hook. Nothing invokes it unless you or a skill explicitly do, and with
no ANTHROPIC_API_KEY it declines and the caller does the work inline exactly
as before. Default behaviour is unchanged.
It exists because pure pattern-matching generation — a TestDataFactory, a
custom-object field list, the boilerplate half of a service class — costs
frontier tokens twice: once to produce the code, and again because the produced code then
sits in the session's context for the rest of the run. sfce-delegate sends the
spec plus a required reference to a cheaper worker and writes the result
straight to disk. stdout carries only the path, never the code. That
second part is most of the saving.
scripts/sfce-delegate \
--spec /tmp/factory-spec.md \
--reference skills/sf-generate/references/test-data/guide.md \
--out force-app/main/default/classes/TestDataFactory.cls \
--kind test-factory --expect-lines 120
# see every gate's decision without making a call
scripts/sfce-delegate ... --dry-run
| Exit | Meaning |
|---|---|
0 | delegated; --out was written |
3 | declined — not an error. No key, no worker, below threshold, or an excluded topic. Do the work inline; do not retry. |
1 | a real failure — API error, malformed response, failed write |
2 | usage error |
What it refuses to delegate. Security, sharing, CRUD/FLS, permission
metadata (profiles, permission sets), governor-sensitive and async logic,
callouts, credentials and sessions, and debugging all stay on the frontier
model. Matching is case- and whitespace-insensitive. The denylist scans the spec
and every reference file — a spec that reads as plain boilerplate can point at a reference full of sharing logic — and it is
deliberately over-broad, because the failure costs are not symmetric: a false
refusal costs one round-trip, a false accept ships security logic written by a
weak model. The worker is also instructed to emit DELEGATION_REFUSED if the
spec appears to need that judgement, which is honoured as a second, independent
check.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub divingsbysangam/salesforce-compound-engineering-plugin --plugin sf-compound-engineeringPlugins from other owners that cover similar ground