
This is a comprehensive wrapper around the Salesforce CLI that gives Claude direct access to your CRM. You can run SOQL queries to pull reports, inspect schemas, create and update records, bulk import thousands of rows from CSV, execute Apex anonymously, and hit raw REST endpoints. The skill includes smart guardrails: it won't mutate production data or reveal auth tokens without confirmation, always uses the `--json` flag for structured responses, and won't write files unless you explicitly ask. Honestly, the authentication story is the trickiest part since you need `sf org login web` working first, but once that's sorted, it beats context-switching to the Salesforce UI for quick data pulls or schema inspection during development.
$ npx -y skills add jdrhyne/agent-skills --skill salesforce --agent claude-codeInstalls into .claude/skills of the current project.
Use the Salesforce CLI (sf) to interact with Salesforce orgs. The CLI must be authenticated before use. Always add --json for structured output.
If the sf binary is not available, stop and ask the user to install the Salesforce CLI using the repo's declared install metadata or the official Salesforce CLI guide. After the CLI is available, authenticate with sf org login web before touching org data.
sf org login web --alias my-org
Other login methods:
# JWT-based login (CI/automation)
sf org login jwt --client-id <consumer-key> --jwt-key-file server.key --username user@example.com --alias my-org
Sponsors