本文へスキップ
Kitbay
スキル公式

platform-apex-anonymous-run

Apache-2.02026年11月6日 更新1,156GitHubスター

A Salesforce skill for running anonymous Apex against a connected org, from an .apex file or a pasted snippet.

スキルの内容

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.

できること

  • 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