nadolskimm-max/sf-skills/sf-ai-agentforce-testing

Claude Code and agent skill by nadolskimm-max/sf-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Creates test specifications and validation strategies for Agentforce agents. Use when writing agent test scenarios, building conversation test scripts, validating agent behavior against persona rules, or running agentic fix loops. Do NOT use for Apex unit tests (use sf-testing) or agent configuration (use sf-ai-agentforce).

Install

npx vskill@latest install nadolskimm-max/sf-skills/sf-ai-agentforce-testing

SKILL.md

The same SKILL.md was published earlier as nadolskimm-max/sf-skills/sf-ai-agentforce-testing.

Agentforce Testing

Core Responsibilities

  1. Create agent test specifications (scenario-based)
  2. Build conversation test scripts with expected outcomes
  3. Validate topic routing accuracy
  4. Test guardrail enforcement
  5. Run agentic fix loops (test → diagnose → fix → retest)

Test Specification Format

yaml
test_suite: Customer Support Agent
agent: Customer_Support_Agent
version: "1.0"
test_cases:
- id: TC-001
name: Order Lookup - Happy Path
description: Agent correctly retrieves order by number
setup:
- Create Order__c with Name='ORD-1001', Status__c='Shipped'
conversation:
- user: "Where is my order ORD-1001?"
- expected_action: OrderLookupAction
- expected_topic: Order Management
- assert_response_contains:
- "ORD-1001"
- "Shipped"
teardown:
- Delete test Order__c
- id: TC-002
name: Order Lookup - Not Found
description: Agent handles missing order gracefully
conversation:
- user: "Check order ORD-9999"
- expected_topic: Order Management
- assert_response_contains:
- "couldn't find"
- "verify the order number"
- assert_response_not_contains:
- "error"
- "exception"
- "null"
- id: TC-003
name: Guardrail - Refund Limit
description: Agent escalates for refunds above $500
conversation:
- user: "I want a refund of $750 for order ORD-1001"
- assert_escalation: true
- assert_response_contains:
- "connect you"
- "team lead"
- id: TC-004
name: Topic Routing
description: Agent routes to correct topic
conversation:
- user: "I need to return a product"
- expected_topic: Returns & Refunds
- user: "Actually, where is my order?"
- expected_topic: Order Management

Test Categories

CategoryWhat to TestExample
Happy PathCore functionality worksOrder lookup returns correct data
Error HandlingGraceful failureMissing record, invalid input
GuardrailsBoundaries enforcedPII protection, refund limits
Topic RoutingCorrect topic selectedSwitching between order/return topics
EscalationHandoff triggers correctlyCustomer requests human agent
PersonaTone and style matchesEmpathetic response to complaint
Edge CasesUnusual inputs handledEmpty input, very long message, special chars

Agentic Fix Loop

When a test fails, follow this iterative process:

1. RUN test suite
2. IDENTIFY failures
3. DIAGNOSE root cause:
- Action returned wrong data? → Fix Apex/Flow
- Wrong topic selected? → Adjust topic description/keywords
- Guardrail not enforced? → Update system instructions
- Tone mismatch? → Refine persona instructions
4. APPLY fix
5. RETEST (go to step 1)
6. REPEAT until all tests pass (max 3 iterations)

Validation Checklist

Action Validation
  • [ ] Each action returns expected data format
  • [ ] Error responses are user-friendly (no technical jargon)
  • [ ] Actions handle null/empty inputs gracefully
Topic Validation
  • [ ] Each topic triggers on correct keywords
  • [ ] No topic overlap (ambiguous routing)
  • [ ] Fallback topic handles unrecognized queries
Persona Validation
  • [ ] Agent uses correct name and greeting
  • [ ] Tone matches persona specification
  • [ ] Escalation messages include context summary
  • [ ] Guardrails prevent prohibited behaviors
Performance Validation
  • [ ] Agent responds within acceptable latency
  • [ ] Actions complete without governor limit errors
  • [ ] Concurrent sessions don't interfere

Cross-Skill References

  • For agent configuration: see sf-ai-agentforce
  • For persona rules to validate: see sf-ai-agentforce-persona
  • For session tracing in production: see sf-ai-agentforce-observability
  • For Apex test patterns: see sf-testing

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nadolskimm-max/sf-skills/sf-ai-agentforce-testing/badge)](https://verified-skill.com/skills/nadolskimm-max/sf-skills/sf-ai-agentforce-testing)

Something wrong with this skill or its page? Tell us.