Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jaganpro avatar

Sf Ai Agentforce Testing

  • 1.2k installs
  • 423 repo stars
  • Updated April 27, 2026
  • jaganpro/sf-skills

sf-ai-agentforce-testing is an agent skill for agentforce agent testing with dual-track workflow and 100-point scoring. trigger when: user tests agentforce agents, runs sf agent test commands, creates test specs, validat

About

The sf-ai-agentforce-testing skill is designed for agentforce agent testing with dual-track workflow and 100-point scoring. TRIGGER when: user tests Agentforce agents, runs sf agent test commands, creates test specs, validates. Use multi-turn API testing as the primary path when conversation continuity matters. Use CLI Testing Center as the secondary path for single-utterance and org-supported test-center workflows. Invoke when the user asks about sf ai agentforce testing or related SKILL.md workflows.

  • sf agent test workflows.
  • multi-turn Agent Runtime API testing.
  • topic routing, action invocation, context preservation, guardrail, or escalation validation.
  • test-spec generation and coverage analysis.
  • post-publish / post-activate test-fix loops.

Sf Ai Agentforce Testing by the numbers

  • 1,221 all-time installs (skills.sh)
  • +5 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #337 of 1,880 Design & UI/UX skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

sf-ai-agentforce-testing capabilities & compatibility

Capabilities
sf agent test workflows · multi turn agent runtime api testing · topic routing, action invocation, context preser · test spec generation and coverage analysis
Use cases
frontend
From the docs

What sf-ai-agentforce-testing says it does

Agentforce agent testing with dual-track workflow and 100-point scoring. TRIGGER when: user tests Agentforce agents, runs sf agent test commands, creates test specs, validates topi
SKILL.md
Agentforce agent testing with dual-track workflow and 100-point scoring. TRIGGER when: user tests Agentforce agents, runs sf agent test commands, creates test s
SKILL.md
npx skills add https://github.com/jaganpro/sf-skills --skill sf-ai-agentforce-testing

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.2k
repo stars423
Security audit3 / 3 scanners passed
Last updatedApril 27, 2026
Repositoryjaganpro/sf-skills

How do I agentforce agent testing with dual-track workflow and 100-point scoring. trigger when: user tests agentforce agents, runs sf agent test commands, creates test specs, validates?

Agentforce agent testing with dual-track workflow and 100-point scoring. TRIGGER when: user tests Agentforce agents, runs sf agent test commands, creates test specs, validates.

Who is it for?

Developers using sf ai agentforce testing workflows documented in SKILL.md.

Skip if: Skip when the task falls outside sf-ai-agentforce-testing scope or needs a different stack.

When should I use this skill?

User asks about sf ai agentforce testing or related SKILL.md workflows.

What you get

Completed sf-ai-agentforce-testing workflow with documented commands, files, and expected deliverables.

  • test specification file
  • multi-topic routing test cases
  • action invocation scenarios

By the numbers

  • Compatible with sf agent test create --spec for Agent Script .agent files
  • Documents a two-level action system across topic.actions and reasoning.actions blocks

Files

SKILL.mdMarkdownGitHub ↗

sf-ai-agentforce-testing: Agentforce Test Execution & Coverage Analysis

Use this skill when the user needs formal Agentforce testing: multi-turn conversation validation, CLI Testing Center specs, topic/action coverage analysis, preview checks, or a structured test-fix loop after publish.

When This Skill Owns the Task

Use sf-ai-agentforce-testing when the work involves:

  • sf agent test workflows
  • multi-turn Agent Runtime API testing
  • topic routing, action invocation, context preservation, guardrail, or escalation validation
  • test-spec generation and coverage analysis
  • post-publish / post-activate test-fix loops

Delegate elsewhere when the user is:

  • building or editing the agent itself → sf-ai-agentforce or sf-ai-agentscript
  • running Apex unit tests → sf-testing
  • creating seed data for actions → sf-data
  • analyzing session telemetry / STDM traces → sf-ai-agentforce-observability

---

Core Operating Rules

  • Testing comes after deploy / publish / activate.
  • Use multi-turn API testing as the primary path when conversation continuity matters.
  • Use CLI Testing Center as the secondary path for single-utterance and org-supported test-center workflows.
  • Interactive and programmatic CLI preview use standard sf org login web authentication; ECA is only required for Agent Runtime API testing, not for live preview.
  • Fixes to the agent should be delegated to [sf-ai-agentscript](../sf-ai-agentscript/SKILL.md) when Agent Script changes are needed.
  • Do not use raw curl for OAuth token validation in the ECA flow; use the provided credential tooling.

Script path rule

Use the existing scripts under:

  • ~/.claude/skills/sf-ai-agentforce-testing/hooks/scripts/

These scripts are pre-approved. Do not recreate them.

---

<a id="phase-0-prerequisites--agent-discovery"></a>

Required Context to Gather First

Ask for or infer:

  • agent API name / developer name
  • target org alias
  • testing goal: smoke test, regression, coverage expansion, or bug reproduction
  • whether the agent is already published and activated
  • whether the org has Agent Testing Center available
  • whether ECA credentials are available for Agent Runtime API testing

Preflight checks: 1. discover the agent 2. confirm publish / activation state 3. verify dependencies (Flows, Apex, data) 4. choose testing track

---

Dual-Track Workflow

Track A — Multi-turn API testing (primary)

Use when you need:

  • multi-turn conversation testing
  • topic re-matching validation
  • context preservation checks
  • escalation or action-chain analysis across turns

Requires:

  • ECA / auth setup
  • agent runtime access

Track B — CLI Testing Center (secondary)

Use when you need:

  • org-native sf agent test workflows
  • test spec YAML execution
  • quick single-utterance validation
  • CLI-centered CI/CD usage where Testing Center is available

Quick manual path

For manual validation without full formal testing, use preview workflows first, then escalate to Track A or B as needed.

---

Recommended Workflow

1. Discover and verify

  • locate the agent in the target org
  • confirm it is published and activated
  • confirm required actions / Flows / Apex exist
  • decide whether Track A or Track B fits the request

2. Plan tests

Cover at least:

  • main topics
  • expected actions
  • guardrails / off-topic handling
  • escalation behavior
  • phrasing variation

3. Execute the right track

Track A
  • validate ECA credentials with the provided tooling
  • retrieve metadata needed for scenario generation
  • run multi-turn scenarios with the provided Python scripts
  • analyze per-turn failures and coverage
Track B
  • generate or refine a flat YAML test spec
  • run sf agent test commands
  • inspect structured results and verbose action output

4. Classify failures

Typical failure buckets:

  • topic not matched
  • wrong topic matched
  • action not invoked
  • wrong action selected
  • action invocation failed
  • context preservation failure
  • guardrail failure
  • escalation failure

5. Run fix loop

When failures imply agent-authoring issues:

  • delegate fixes to sf-ai-agentscript
  • re-publish / re-activate if needed
  • re-run focused tests before full regression

---

Testing Guardrails

Never skip these:

  • test only after publish/activate
  • include harmful / off-topic / refusal scenarios
  • use multiple phrasings per important topic
  • clean up sessions after API tests
  • keep swarm execution small and controlled

Avoid these anti-patterns:

  • testing unpublished agents
  • treating one happy-path utterance as coverage
  • storing ECA secrets in repo files
  • debugging auth with brittle shell-expanded curl commands
  • changing both tests and agent simultaneously without isolating the cause

---

Output Format

When finishing a run, report in this order: 1. Test track used 2. What was executed 3. Pass/fail summary 4. Coverage gaps 5. Root-cause themes 6. Recommended fix loop / next test step

Suggested shape:

Agent: <name>
Track: Multi-turn API | CLI Testing Center | Preview
Executed: <specs / scenarios / turns>
Result: <passed / partial / failed>
Coverage: <topics, actions, guardrails, context>
Issues: <highest-signal failures>
Next step: <fix, republish, rerun, or expand coverage>

---

Cross-Skill Integration

NeedDelegate toReason
fix Agent Script logicsf-ai-agentscriptauthoring and deterministic fix loops
create test datasf-dataaction-ready data setup
fix Flow-backed actionssf-flowFlow repair
fix Apex-backed actionssf-apexApex repair
set up ECA / OAuth for Agent Runtime APIsf-connected-appsauth and app configuration
analyze session telemetrysf-ai-agentforce-observabilitySTDM / trace analysis

---

Reference Map

Start here

  • references/interview-wizard.md
  • references/multi-turn-testing.md
  • references/cli-commands.md
  • references/test-spec-reference.md

Execution / auth

  • references/execution-protocol.md
  • references/multi-turn-execution.md
  • references/eca-setup-guide.md
  • references/credential-convention.md
  • references/connected-app-setup.md

Coverage / fix loops

  • references/coverage-analysis.md
  • references/agentic-fix-loops.md
  • references/results-scoring.md
  • references/known-issues.md

Advanced / specialized

  • references/agentscript-agents.md
  • references/agentscript-testing-patterns.md
  • references/cli-testing-details.md
  • references/deep-conversation-history-patterns.md
  • references/swarm-execution.md
  • references/trace-analysis.md
  • references/agent-api-reference.md

Templates / assets

  • references/test-templates.md
  • references/test-plan-format.md
  • assets/

---

Score Guide

ScoreMeaning
90+production-ready test confidence
80–89strong coverage with minor gaps
70–79acceptable but coverage expansion recommended
60–69partial validation only
< 60insufficient confidence; block release

Related skills

Forks & variants (1)

Sf Ai Agentforce Testing has 1 known copy in the catalog totaling 33 installs. They canonicalize to this original listing.

How it compares

Use Agentforce Testing for Agent Script CLI test specs; use standard Apex test classes when validating individual Apex logic outside agent conversation flows.

FAQ

What does sf-ai-agentforce-testing do?

Agentforce agent testing with dual-track workflow and 100-point scoring. TRIGGER when: user tests Agentforce agents, runs sf agent test commands, creates test specs, validates.

When should I use sf-ai-agentforce-testing?

User asks about sf ai agentforce testing or related SKILL.md workflows.

Is sf-ai-agentforce-testing safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.