platform-apex-anonymous-run
A Salesforce skill for running anonymous Apex against a connected org, from an .apex file or a pasted snippet.
What the skill teaches
A Salesforce skill for running anonymous Apex against a connected org, from an .apex file or a pasted snippet. The agent identifies the target org, sets up trace flags so useful logs are captured, writes snippets to a temporary file, wraps the code in a savepoint and rollback, runs it with the sf CLI, parses the JSON response and shows the debug log and any errors. The skill points out that anonymous Apex can change data and warns before running in a production org. Writing Apex classes, running unit tests and analysing logs are left to other skills.
Capabilities
- Run anonymous Apex from a file or snippet
- Capture and show the debug log
- Wrap scripts in a savepoint and rollback
- Warn before running against production
About
- Publisher
- Salesforce
- Tool
- Salesforce
Install
- Run this to add it to Any client:
npx skills add forcedotcom/sf-skills
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Salesforce | |
| Publisher | Salesforce | source |
| Official status | OfficialSalesforce's developer documentation for its skills and plugins links to the forcedotcom/sf-skills repository | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 6, 20261,156 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/forcedotcom/sf-skillsNov 10, 2026
- README (README.md)github.com/forcedotcom/sf-skillsNov 13, 2026
- Licence file (LICENSE.txt)github.com/forcedotcom/sf-skills · Backs: Licence, PublisherNov 13, 2026
- Web pagedeveloper.salesforce.com · Backs: Official statusNov 13, 2026
- Folder in the repository (platform-apex-anonymous-run)github.com/forcedotcom/sf-skills · Backs: Includes scriptsNov 10, 2026
- GitHub repositorygithub.com/forcedotcom/sf-skills · Backs: Activity, LicenceNov 11, 2026