platform-apex-anonymous-run
Runs anonymous Apex against the connected org (.apex file or pasted snippet), capturing the debug log, surfacing errors. Triggers on "run this anonymous apex", "execute this script against my org", "what does this code return", or "execute scripts/foo.apex". Wraps scripts in savepoint+rollback; warns before running in production. DO NOT TRIGGER for authoring .cls/.trigger files (platform-apex-generate), Apex unit tests (platform-apex-test-run), or debug-log analysis (platform-apex-logs-debug).
Install as a plugin
Install the salesforce-development plugin
Copy: Install the salesforce-development plugin/plugin install salesforce-development@claude-plugins-officialThe official marketplace is already added in Claude Code. The command opens the plugin's page in /plugin, where you pick a scope and confirm.
From your shell instead
Copy: Add the marketplaceclaude plugin marketplace add anthropics/claude-plugins-officialOnly on a machine that never ran an interactive Claude Code session: the first session adds the official marketplace by itself.
Copy: Install itclaude plugin install salesforce-development@claude-plugins-official
Then ask Claude for what it does: it loads the skill when your request matches the description. Or call it directly with /salesforce-development:platform-apex-anonymous-run.
See which of your apps makes money
- Revenue from Stripe, Paddle and others next to visits, per app
- Search Console and the analytics you already use, on one screen
- Which channel your paying customers came from

From its SKILL.md
Run anonymous Apex against the connected Salesforce org via sf apex run --file, capture the debug log, and narrate compile-time and runtime outcomes back to the developer. This is the agent-side equivalent of VS Code's Execute Anonymous Apex (document and selection) commands.