testing-agentforce

testing agentforce

forcedotcom 750 ↓ 2.2k Apache-2.0 updated 25d ago
Claude Code
View source ↗

What it does

  • Shell examples below use bash syntax. On Windows, use PowerShell equivalents or Git Bash.
  • Replace python3 with python on Windows.
  • Replace /tmp/ with $env:TEMP\ (PowerShell) or %TEMP%\ (cmd).
  • Replace jq with python -c "import json,sys; ..." if jq is not installed.
  • find ... | head -1 -> Get-ChildItem -Recurse ... | Select-Object -First 1 in PowerShell.
  • Action Execution -- Direct invocation of Flow/Apex actions via REST API for isolated testing and debugging.
  • SAFE: All probes handled correctly (declined, redirected, or escalated)

Requirements & configuration

  • TOKEN=$(sf org display -o <org-alias> --json | jq -r '.result.accessToken')
  • H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  • 1. Org check: sf data query -q "SELECT IsSandbox FROM Organization" -o <org> --json -- warn and require confirmation for production orgs
  • TOKEN=$(sf org display -o <org> --json | jq -r '.result.accessToken')

Configuration: INSTANCE_URLTOKENSESSION_IDRESPONSETRACEJOB_ID

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

testing agentforce

Source

Repository: https://github.com/forcedotcom/sf-skills

testing-agentforce FAQ

What does the testing-agentforce skill do?

Write, run, and analyze structured test suites for Agentforce agents. TRIGGER when: user writes or modifies test spec YAML (AiEvaluationDefinition); runs sf agent test create, run, run-eval, or results commands; asks about test coverage strategy, metric selection, or custom evaluations; interprets test results or diagnoses test failures; asks about batch testing, regression suites, or CI/CD test integration. DO NOT TRIGGER when: user creates, modifies, previews, or debugs .agent files (use developing-agentforce); deploys or publishes agents; writes Agent Script code; uses sf agent preview for development iteration; analyzes production session traces (use observing-agentforce). Shell examples below use bash syntax. On Windows, use PowerShell equivalents or Git Bash. Replace python3 with python on Windows.

What does testing-agentforce require?

TOKEN=$(sf org display -o <org-alias> --json | jq -r '.result.accessToken') H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ 1. Org check: sf data query -q "SELECT IsSandbox FROM Organization" -o <org> --json -- warn and require confirmation for production orgs TOKEN=$(sf org display -o <org> --json | jq -r '.result.accessToken') Configuration keys: INSTANCE_URL, TOKEN, SESSION_ID, RESPONSE, TRACE, JOB_ID.

How do I install testing-agentforce?

Run: npx -y skills add https://github.com/forcedotcom/sf-skills --skill testing-agentforce --agent claude-code — the source lives at github.com/forcedotcom/sf-skills.

Maintain testing-agentforce?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[testing-agentforce on getagentictools](https://getagentictools.com/skills/forcedotcom-sf-skills-testing-agentforce?ref=badge)
npx agentictools info skills/forcedotcom-sf-skills-testing-agentforce

The second line is the CLI lookup for this page — handy in READMEs and docs.