On this page
Salesforce ships an official Claude Code plugin called salesforce-development in the forcedotcom/sf-skills repo. Install it with /plugin install salesforce-development@claude-plugins-official, authorize an org with sf org login web, and Claude Code gets skills for Apex, SOQL, Flow, metadata deploy and permission sets, plus hooks that stop a production deploy until you confirm it.
Claude Code can write Apex, run SOQL and deploy metadata. Without extra setup it has no Salesforce-provided workflow guidance. Salesforce now publishes an official plugin that adds skills and a safety gate.
This guide shows how to install it, connect an org and use it day to day. We did not run the plugin install ourselves for this post, so everything below comes from the official README, checked on 1 Dec 2026. Read the hook output the first time the deploy gate fires, because that is where your own setup matters most.
What is the salesforce-development plugin?
The salesforce-development plugin is a Claude Code plugin from Salesforce, in the forcedotcom/sf-skills repo. The plugin README says it bundles four kinds of parts:
- Skills: named tasks such as
platform-apex-generateorplatform-soql-query. - An agent:
salesforce-dev, the main one. It switches on when your folder has ansfdx-project.json. - Hooks: scripts that run around your commands, including a production deploy-safety gate.
- MCP servers: metadata helpers such as
salesforce-metadata-experts.
The salesforce-development plugin exists because the old local MCP server reached end of life and is no longer supported. For the full story, see Salesforce DX MCP Server End of Life. This post covers the replacement in daily use.
How do I install the salesforce-development plugin in Claude Code?
Install the salesforce-development plugin from inside Claude Code with the /plugin commands, after you check the prerequisites in step 1.
-
Check the prerequisites. The README asks for Claude Code
2.1.222or later, Node.js LTS, the Salesforce CLI (sf) and Python3.8+. Check them:claude --version node --version sf --version python3 --version -
Install the plugin. Start
claudein your project folder and run this slash command:/plugin install salesforce-development@claude-plugins-officialTo take releases straight from Salesforce instead, use:
/plugin marketplace add forcedotcom/sf-skills /plugin install salesforce-development@salesforceKeep one copy only. If you switch sources, remove the other one.
-
Check the setup.
/salesforce-development:setup /salesforce-development:statussetupis optional and validates your environment.statusshows what the plugin sees.
To update later, match the source you installed from:
- Official marketplace: updates arrive automatically. To update by hand, run
/plugin update salesforce-development@claude-plugins-official. - Salesforce marketplace: run
/plugin marketplace update salesforce, then/plugin update salesforce-development@salesforce.
To remove it, run /plugin uninstall salesforce-development@claude-plugins-official, or /plugin uninstall salesforce-development@salesforce if you installed from the Salesforce marketplace. If you added the salesforce marketplace, also run /plugin marketplace remove salesforce.
How do I connect the salesforce-development plugin to my Salesforce org?
The salesforce-development plugin does not store your password. Its hooks and MCP host call the Salesforce CLI, so they use the target org you configured (SF_TARGET_ORG, SFDX_TARGET_ORG or the project’s target-org). Log in once:
# Developer Edition or production org
sf org login web --alias my-org --set-default
# Sandbox
sf org login web --alias my-sandbox --instance-url https://test.salesforce.com --set-default
Use a sandbox or Developer Edition org while you learn. The plugin also has slash commands for orgs: /salesforce-development:org, :login, :logout and :set-default.
Open Claude Code from a Salesforce DX project folder, the one with sfdx-project.json. If you have no project yet, ask Claude Code to create one. The plugin’s project-creation skill (dx-project-create) handles it. The /salesforce-development:project command only shows stats for a project you already have.
What do the skills, agent and hooks do?
The salesforce-development plugin gives Claude Code named skills for Apex, Flow and data work, a salesforce-dev agent that switches on inside a DX project, and hooks that run around your commands. The README groups the skills by job. These are the ones most developers touch first:
| Job | Skills (names from the README) |
|---|---|
| Apex | platform-apex-generate, platform-apex-anonymous-run, platform-apex-test-generate, platform-apex-test-run, platform-apex-logs-debug |
| Flow | automation-flow-generate |
| Data | platform-soql-query, platform-data-manage |
| Deploy and retrieve | platform-metadata-deploy, platform-metadata-retrieve, platform-manifest-generate, platform-destructive-deploy |
| Declarative metadata | platform-custom-object-generate, platform-custom-field-generate, platform-validation-rule-generate, platform-flexipage-generate and more |
| Security | platform-permission-set-generate, platform-sharing-rules-generate, platform-sharing-owd-configure |
| Project and org | dx-project-create, dx-org-manage |
The salesforce-dev agent routes each request in a fixed order: skills first, then the Salesforce CLI, then direct API calls.
The hooks do three jobs:
- Org detection when a session starts.
- Deploy gates on
sf project deploy: one for production safety and one for Apex pre-deploy diagnostics. The README names both. It does not spell out every diagnostics check, so read the hook output the first time it fires. - Skills-first checks. Four raw
sfcommands are blocked until the matching skill has run:sf data query,sf project retrieve,sf apex run testandsf project generate manifest. You can relax this with theSF_PLUGIN_SKILLS_FIRSTsetting or the plugin’s skills-first option.
So if Claude Code refuses a plain sf data query, that is the hook working. It wants platform-soql-query to run first.
Code review is not in this plugin. The README says the code analyzer and Well-Architected review pieces moved to a separate salesforce-code-quality plugin.
How does the production deploy-safety gate work?
The salesforce-development plugin blocks a production deploy until you type a confirmation phrase. From the README:
- A production deploy goes ahead only after you reply
confirm production deploy to <alias>. - The confirmation expires after ten minutes.
- A
--dry-runto production counts as a production deploy, so it needs the same confirmation. - Deploys to non-production orgs that are destructive are advised against, not blocked.
Two habits keep it working well:
- Run one literal deploy or delete per shell call. Skip inline
cd,exportandsf config setin the same command. - Do not wrap a deploy in
eval,source,xargsor a nested shell. The README says those are denied.
Still, treat the gate as a seatbelt. Read the diff before you type the confirmation.
Which prompts work well?
Name the component and the target org in each prompt, and the salesforce-development plugin maps it to a skill. These examples are in our own words.
Write an Apex service class that reassigns open Cases when an Account owner changes.
Generate tests for CaseReassignmentService and run them.
Create a custom object Invoice__c with fields for Number, Status and Due Date.
Create a permission set that lets support agents read Cases and Contacts.
Deploy my current changes to the sandbox named dev1.
Run a validation-only deploy to production. Do not deploy.
What can this plugin do for me?
Here is a short flow that works well for a new feature:
- Ask for the class and its test class in one prompt.
- Ask Claude Code to run the tests and fix any failure.
- Ask it to deploy to your sandbox.
- Only then validate against production, and when the gate asks, reply with exactly
confirm production deploy to <alias>and nothing else.
/salesforce-development:discover lists what the plugin can do. It helps when you do not know a skill name.
What can go wrong with the salesforce-development plugin?
Most problems come from a duplicate install, a missing prerequisite or an expired org login.
- Skills do not show up. Run
/pluginand/salesforce-development:status. Also check you did not install both@claude-plugins-officialand@salesforce. - A hook fails at once. Python
3.8+must be on your path. The org-detection and deploy hooks use it. sfcommands fail. The plugin calls the same CLI you do. Runsf org listyourself first, and log in again if the org shows as expired.- Claude Code blocks a raw
sfcommand. That is the skills-first hook. Ask in plain words (“run a SOQL query for…”) so the skill runs. - No Apex or SOQL language help. The README mentions a
lsp-doctorcheck under the plugin folder. Use it if code intelligence is missing. - Names change. The README warns that skills and plugins may be renamed or removed between releases. If a name in this post no longer exists, run
/salesforce-development:discover.
Is my org data safe with an AI model?
Query results enter the model’s context. With a cloud model they go to that provider. Use a sandbox or Developer Edition org, and keep personal customer fields out of your prompts and queries.
The plugin has its own telemetry. The README says SF_DISABLE_TELEMETRY=true turns it off, and DO_NOT_TRACK=true disables only plugin telemetry. The /salesforce-development:feedback command stores one 1 to 5 rating locally, and only that number leaves your machine.
Related guides
- Salesforce DX MCP Server End of Life: What to Use Instead: why the old server was retired and how to remove it.
- Call the Claude API from Apex with Named Credentials: when your own Apex code should call a model.
- Connect Salesforce Sales in Claude Beta: the Claude connector for Salesforce, with OAuth and per-user connection checks.
- Salesforce CI/CD & Deployment: Guide and Interview Q&A: how production deploys work without the plugin: change sets, Salesforce CLI and unlocked packages.
Need this set up across your team’s Salesforce orgs? See our Salesforce services.
Official sources
Sources checked 1 Dec 2026.
- Salesforce Development plugin README
forcedotcom/sf-skillsGitHub repository- GitHub issue
forcedotcom/mcp#46: End of Life - Claude Code plugins documentation
Frequently asked questions
Is there an official Claude Code plugin for Salesforce?
Yes. Salesforce publishes the salesforce-development plugin in the forcedotcom/sf-skills repo, and Claude Code installs it with the /plugin commands. It adds skills, an agent, hooks and MCP servers for Salesforce DX work.
What do I need before installing the salesforce-development plugin?
The plugin README lists Claude Code 2.1.222 or later, Node.js LTS, the Salesforce CLI (sf) and Python 3.8 or later. You also need an authorized org, for example from sf org login web --alias my-org --set-default.
Can Claude Code deploy to production by itself with this plugin?
Not without you. A deploy-safety hook on sf project deploy lets a production deploy go ahead only after you reply 'confirm production deploy to my-org', with your own org alias in place of my-org. The README says the confirmation expires after ten minutes, and a --dry-run to production counts as a production deploy.
Does the plugin replace the Salesforce DX MCP server?
Yes, for Claude Code. Salesforce ended support for @salesforce/mcp on 2 Nov 2026 and now delivers its tooling as skills in sf-skills. The plugin still bundles some MCP servers, such as salesforce-metadata-experts.
Does the plugin work in Cursor or Codex?
Codex has a beta plugin that needs Codex CLI 0.145.0 or later. Cursor and other editors use standalone skills through npx skills add forcedotcom/sf-skills. Four skills ship only with the full plugin, so those editors get fewer.
Need this built in your Salesforce org?
SFX builds and fixes Salesforce + AI work: Agentforce actions, Prompt Builder, LLM integrations from Apex, Flows and LWC. Written scope and a fixed quote before any work starts.