forcedotcom/sf-skills/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).
Agent skill · version 1.69.0 · from forcedotcom/sf-skills
Install
npx yarkr-cli add skill:forcedotcom/sf-skills/platform-apex-anonymous-runWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:forcedotcom/sf-skills/platform-apex-anonymous-run
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:forcedotcom/sf-skills/platform-apex-anonymous-runOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:forcedotcom/sf-skills/platform-apex-anonymous-runWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.