Ask Krrish Contact
Home
Developer & Admin
Apex Triggers Mastery Asynchronous Apex SOQL & SOSL Governor Limits Flows & Process Builder
Advanced Topics
LWC Essentials Security & Sharing Managed Packages Deployment & CI/CD Integration Patterns
Interview Prep
Practice interview questions
Resources
Sales Cloud Class Diagram
Blog AI News
Available Now
Agentforce Pricing Calculator New Debug Log Analyzer SFX Forge New SFX Grove SFX Travel Manager
Salesforce + AI
AI Agent Development Salesforce Agentforce Development Custom RAG Solutions AI + Salesforce Integration Customer Support AI Agents AI Lead Qualification AI Knowledge Base Assistant AI Workflow Automation
Salesforce work
Issue Fix Sprint Automation Sprint LWC & integrations Overflow support for partners Agentforce & AI usage review All services →
About Ask Krrish Contact
Salesforce MCP

Claude Code for Salesforce Developers: The salesforce-development Plugin

Install the official salesforce-development plugin in Claude Code, authorize an org, and learn what its skills, agent and deploy-safety hooks do.

01 December 2026 9 min read Abhay Nama
On this page
Short answer

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-generate or platform-soql-query.
  • An agent: salesforce-dev, the main one. It switches on when your folder has an sfdx-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.

  1. Check the prerequisites. The README asks for Claude Code 2.1.222 or later, Node.js LTS, the Salesforce CLI (sf) and Python 3.8+. Check them:

    claude --version
    node --version
    sf --version
    python3 --version
    
  2. Install the plugin. Start claude in your project folder and run this slash command:

    /plugin install salesforce-development@claude-plugins-official
    

    To take releases straight from Salesforce instead, use:

    /plugin marketplace add forcedotcom/sf-skills
    /plugin install salesforce-development@salesforce
    

    Keep one copy only. If you switch sources, remove the other one.

  3. Check the setup.

    /salesforce-development:setup
    /salesforce-development:status
    

    setup is optional and validates your environment. status shows 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 sf commands are blocked until the matching skill has run: sf data query, sf project retrieve, sf apex run test and sf project generate manifest. You can relax this with the SF_PLUGIN_SKILLS_FIRST setting 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-run to 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, export and sf config set in the same command.
  • Do not wrap a deploy in eval, source, xargs or 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:

  1. Ask for the class and its test class in one prompt.
  2. Ask Claude Code to run the tests and fix any failure.
  3. Ask it to deploy to your sandbox.
  4. 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 /plugin and /salesforce-development:status. Also check you did not install both @claude-plugins-official and @salesforce.
  • A hook fails at once. Python 3.8+ must be on your path. The org-detection and deploy hooks use it.
  • sf commands fail. The plugin calls the same CLI you do. Run sf org list yourself first, and log in again if the org shows as expired.
  • Claude Code blocks a raw sf command. 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-doctor check 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.

Need this set up across your team’s Salesforce orgs? See our Salesforce services.

Official sources

Sources checked 1 Dec 2026.

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.

See SFX services Ask on WhatsApp founders@sfxsupport.com +91-7611896026 Contact SFX Support

SFX Support — Salesforce + AI solutions. Independent: not affiliated with, endorsed by, or a partner of Salesforce, Inc. Salesforce and Agentforce are trademarks of Salesforce, Inc.