Sf ai agentforce testing

From Jaganpro/sf-skills · View interactive version

Sf ai agentforce testing is an AI agent skill from the GitHub repository Jaganpro/sf-skills. 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 topic routing, or analyzes agent test coverage. DO NOT TRIGGER when: Apex unit tests (use sf-testing), building agents (use

How to use this skill

Skill file

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:

Delegate elsewhere when the user is:


Core Operating Rules

Script path rule

Use the existing scripts under:

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:

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:

Requires:

Track B — CLI Testing Center (secondary)

Use when you need:

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

2. Plan tests

Cover at least:

3. Execute the right track

Track A
Track B

4. Classify failures

Typical failure buckets:

5. Run fix loop

When failures imply agent-authoring issues:


Testing Guardrails

Never skip these:

Avoid these anti-patterns:


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

| Need | Delegate to | Reason |

|---|---|---|

| fix Agent Script logic | sf-ai-agentscript | authoring and deterministic fix loops |

| create test data | sf-data | action-ready data setup |

| fix Flow-backed actions | sf-flow | Flow repair |

| fix Apex-backed actions | sf-apex | Apex repair |

| set up ECA / OAuth for Agent Runtime API | sf-connected-apps | auth and app configuration |

| analyze session telemetry | sf-ai-agentforce-observability | STDM / trace analysis |


Reference Map

Start here

Execution / auth

Coverage / fix loops

Advanced / specialized

Templates / assets


Score Guide

| Score | Meaning |

|---|---|

| 90+ | production-ready test confidence |

| 80–89 | strong coverage with minor gaps |

| 70–79 | acceptable but coverage expansion recommended |

| 60–69 | partial validation only |

| < 60 | insufficient confidence; block release |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.