Salesforce Development
- .claude-plugin/
- .codex-plugin/
- agents/
- bin/
- catalog/
- codex-commands/
- commands/
- docs/
- hooks/
- scripts/
- skills/
- vendor/
- .gitattributes
- .mcp.json
- CHANGELOG.md
- LICENSE
- NOTICE
- README.md
salesforce-development
AI-powered Salesforce platform development in Claude Code and Codex
The foundation plugin for building apps and agents on the Salesforce Platform. Open your coding agent in a Salesforce DX project and describe what you want to build. The plugin uses your project and selected org to guide development through shared skills, Salesforce CLI, and configured MCP tools. It follows a skills-first approach: matching installed skills → Salesforce CLI → direct APIs when needed. There's no need to memorize slash commands.
Choose your coding agent: Claude Code quick start or Use with Codex. Each client loads the commands, hooks, and MCP configuration supported by its manifest.
Quick Start
This quick start covers Claude Code. For Codex, see Use with Codex.
Install prerequisites:
- Claude Code. Use a supported version listed in the current installation requirements.
- Node.js LTS. The bundled language servers run under
node. - Salesforce CLI.
- Python, using a version supported by the plugin. See the current installation requirements.
From your Salesforce DX project directory, authorize your development org:
sf org login web --alias my-org --set-defaultUse a sandbox or Developer Edition org for development. If the org is already authorized, select it for this project:
sf config set target-org my-orgIn Claude Code, install from the official Claude Plugin Marketplace:
/plugin install salesforce-development@claude-plugins-officialMarketplace versions can differ. For the latest release published by Salesforce, use the Salesforce marketplace:
/plugin marketplace add forcedotcom/sf-skills /plugin install salesforce-development@salesforceCheck your installed version in
/plugin. If you switch marketplaces, disable the previous copy so only one copy is enabled, then run/reload-plugins.Validate your environment:
/salesforce-development:setup
You're all set. Start describing what you need. You can install the plugin before connecting an org; workflows that access an org require authentication and can have additional permissions, product, license, or activation requirements. Review usage telemetry and privacy before installation.
Example Prompts
Use natural language in Claude Code or Codex:
- "Create an Apex service class to handle Account territory assignments."
- "Generate a custom object
Project__cwith fields for Name, Status, Due Date, and Owner." - "Find the existing fields and flows related to customer onboarding before creating anything new."
- "Write a test class for AccountTerritoryService and run it."
- "Deploy the current changes to my sandbox."
- "Validate a deployment to production."
- "Build a permission set that grants read access to Accounts and Contacts."
- "What can I do here?"
Review proposed project, org, and deployment changes before approving them. For a guided build, ask for a walkthrough of building a Service help agent; the plugin can recommend the Salesforce Test Drive companion plugin and check its workflow requirements.
Verify, Update, and Uninstall the Plugin
Claude Code
- Verify:
/pluginlistssalesforce-developmentand its version./salesforce-development:statuschecks project and org readiness."${CLAUDE_PLUGIN_ROOT}"/bin/lsp-doctorchecks the bundled language-server host. - Update: for the official marketplace, run
/plugin update salesforce-development@claude-plugins-official. For the Salesforce marketplace, run/plugin marketplace update salesforce, then/plugin update salesforce-development@salesforce. - Uninstall:
/plugin uninstall salesforce-development@claude-plugins-officialor@salesforce, matching your installation. If you added the Salesforce marketplace, you can also run/plugin marketplace remove salesforce.
Codex
- Verify: ask to "run the Salesforce Development status workflow" and check the installed version. Review active hooks with
/hooks. - Update: refresh the registered Salesforce marketplace, then repeat
codex plugin add salesforce-development@salesforce --jsonto refresh installed files. - Enable or disable: change
plugins."salesforce-development@salesforce".enabledin your Codex settings. - Uninstall: run
codex plugin remove salesforce-development@salesforce --json.
Start a new Codex session after installation, updates, or settings changes.
What's Included
Skills
| Area | Skills |
|---|---|
| Discovery | platform-capability-search — Generated capability overview, domain drilldown, installed-versus-available guidance, and on-demand org-feature detection |
| Environment | platform-environment-validate — Check prerequisites and guide setup or updates |
| Project and org lifecycle | dx-project-create — Scaffold a Salesforce DX project; dx-org-manage — Create scratch orgs, take snapshots, and open orgs |
| Apex | platform-apex-generate, platform-apex-anonymous-run, platform-apex-test-generate, platform-apex-test-run, platform-apex-logs-debug |
| Automation | automation-flow-generate — Screen, Autolaunched, Record-Triggered, and Scheduled Flows |
| Declarative metadata | platform-custom-object-generate, platform-custom-field-generate, platform-custom-metadata-type-generate, platform-custom-setting-generate, platform-custom-application-generate, platform-custom-tab-generate, platform-custom-report-type-generate, platform-list-view-generate, platform-value-set-generate, platform-validation-rule-generate, platform-flexipage-generate, platform-lightning-app-coordinate |
| Data and API context | platform-data-manage, platform-soql-query, platform-data-and-tooling-api-context-get |
| Metadata discovery | platform-metadata-discovery-get — Choose a method to find existing metadata; platform-metadata-grounding-get — Find metadata by meaning when its API name is unknown, using Salesforce Catalog where available |
| Deploy and retrieve | platform-metadata-deploy — Including production validation and quick deploy; platform-metadata-retrieve, platform-manifest-generate, platform-metadata-api-context-get, platform-destructive-deploy |
| Security | platform-permission-set-generate, platform-sharing-owd-configure, platform-sharing-rules-generate |
| Reporting | platform-report-generate |
| LSP | platform-lsp-integrate — Bundled language-server tools and fallbacks |
| Headless 360 MCP | platform-headless-360-integrate — Enable, validate, and use the optional Salesforce-hosted connection for live org and Setup workflows |
Use platform-metadata-deploy for production validation and quick deployment.
What Else Is in the Box
- Agents — Claude Code's
salesforce-devagent routes Salesforce development tasks through installed skills and tools. Code-analysis skills and thearchitecture-reviewagent live in the separate salesforce-code-quality plugin. Claude-only agents and hooks don't automatically carry over to other clients. - Commands — Setup, status, discovery, plugin installation and recommendations, telemetry, project and org management, login, logout, defaults, source-tracking reset, welcome, and feedback workflows. In Claude Code, use
/salesforce-development:<name>. In Codex, ask for the workflow in plain language or select its migrated command skill from the$list. - MCP servers —
salesforce-metadata-expertsfor metadata guidance;salesforce-metadata-groundingfor semantic metadata discovery;salesforce-lspfor Apex and SOQL language-server tools; and optionalsalesforce-headless-360(Beta) for live org and Setup workflows. Check the manifests shipped with your installed version and confirm connection status in your client. - Hooks — Client-specific project context, skills-first routing guidance, and deploy/delete checks. Codex declares its hooks separately; review and trust them with
/hooksbefore relying on those checks. - Companion plugin discovery — Find specialized plugins for LWC, React, Agentforce, code quality, and other tasks. Review the recommended source and capabilities and approve one installation at a time. In Claude Code, reload plugins and continue; in Codex, start a new session after installation.
Metadata grounding requires Salesforce Catalog provisioned in the selected org. Headless 360 (Beta) defaults off and requires activation in the org as well as client opt-in. In Claude Code, enable the Headless 360 MCP server plugin setting. In Codex CLI or desktop, ask "Enable Headless 360 in Codex", then start a new session. The saved preference survives plugin updates and doesn't require a shell export. If an update reports that setup is required, ask to enable Headless 360 again to refresh the launcher registration. Optional connection warnings don't block other development work.
In Claude Code, progress through Connect → Project → Build → Test → Deploy → Observe is tracked from project state and successful actions. Run /salesforce-development:discover journey inspect to review recorded activity. Codex hooks don't receive shell exit status and don't record shell success or deploy/test journey evidence.
💬 Feedback
In Claude Code, run /salesforce-development:feedback to submit a numeric rating from 1 to 5 when telemetry is enabled and the project is eligible. The manual feedback workflow doesn't collect ratings in Codex. Codex can offer an optional numeric rating prompt when SFDX_FEEDBACK=1, telemetry is enabled, and eligible activity has occurred.
Usage telemetry is enabled by default. Set SF_DISABLE_TELEMETRY=true to disable telemetry for both the plugin and Salesforce CLI. Set DO_NOT_TRACK=true to disable plugin telemetry only. See usage telemetry and privacy for collected fields and controls. For issues or suggestions, use the sf-skills issue tracker.
More Information
- Developer guide — Installation, project and org setup, examples, and troubleshooting.
- Plugin README — Current prerequisites, component inventory, and client-specific behavior.
- Configuration reference — Presentation settings and deploy/delete controls.
- MCP servers and project context — Connections, target-org selection, and optional services.
- Changelog — Changes in each release.
- Third-party notices — Attribution for bundled dependencies.
Use with Codex
Install, Enable, and Uninstall
Use Codex CLI with plugin support, Node.js LTS, Salesforce CLI, Bash, and Python. The hook adapter requires a POSIX host. Check the current installation requirements for supported versions, and use a release of sf-skills that includes the Codex manifests.
From a terminal, add the Salesforce marketplace directly from GitHub:
codex plugin marketplace add forcedotcom/sf-skills --json
codex plugin add salesforce-development@salesforce --json
You can also use https://github.com/forcedotcom/sf-skills.git as the marketplace source. You do not need to clone the repository. The shared marketplace catalog is .claude-plugin/marketplace.json; Codex loads the plugin's .codex-plugin/plugin.json and separate hook configuration.
Configure your target org from your Salesforce DX project directory, then start a new Codex session in that project. Review and trust the plugin's hooks through /hooks. Use the lifecycle commands above to refresh, disable, or remove the plugin.
Invoking Workflows
Supported Codex releases migrate plugin commands to skills during installation or updates. Ask for a workflow in plain language—for example, "run the Salesforce Development setup workflow" or "check my Salesforce project and org status"—or choose it from the $ skill list. Claude Code's /salesforce-development:<name> command syntax doesn't apply in Codex.
The plugin can recommend companion plugins through its guarded installation workflow. Review the source and approve each named plugin, then start a new session to use it.
Project Context and Deployment
Codex uses one explicit target org for the project. Set a project default with sf config set target-org my-org, or set SF_TARGET_ORG or SFDX_TARGET_ORG. If both environment variables are present, they must agree. Project .sf/config.json takes precedence over legacy .sfdx/sfdx-config.json; the adapter doesn't fall back to a global default.
The startup banner reads local project facts and the configured org alias. Ask for Salesforce status when you need live org details. A configured MCP server can still be unavailable because of authentication, permissions, or sandbox restrictions; CLI and packaged reference fallbacks remain available.
Use platform-metadata-deploy for production validation and quick deployment. In Codex, confirm production deployment with the entire reply confirm production deploy to <alias>, using the exact org alias. That confirmation covers one deployment in the current session and expires after ten minutes. Run one literal deploy or delete command per shell call from the session's working directory. See the plugin README for the full shell-hook rules and known limits.
Environment Variables
| Variable | Effect |
|---|---|
SF_TARGET_ORG / SFDX_TARGET_ORG |
Select the org used by MCP servers and deployment checks; both values must agree when set |
SF_PLUGIN_UI_MODE |
Choose full, plain, or off presentation; safety and routing guidance remain active |
SF_AGENT_CLIENT |
Set to codex for plugin runtime commands run from the shell so they use the Codex session identity |
SF_DISABLE_TELEMETRY |
Set to true to disable telemetry for both the plugin and Salesforce CLI |
DO_NOT_TRACK |
Set to true to disable plugin telemetry only. This variable does not control Salesforce CLI telemetry |
SFDX_FEEDBACK |
Set to 1 to enable the optional numeric feedback prompt when telemetry and activity requirements are met |