sf-ai-agentforce-testing

jaganpro/sf-skills · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/jaganpro/sf-skills --skill sf-ai-agentforce-testing
0 commentsdiscussion
summary

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.

skill.md

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:


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.
  • Fixes to the agent should be delegated to sf-ai-agentscript 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.


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

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 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
how to use sf-ai-agentforce-testing

How to use sf-ai-agentforce-testing on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add sf-ai-agentforce-testing
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/jaganpro/sf-skills --skill sf-ai-agentforce-testing

The skills CLI fetches sf-ai-agentforce-testing from GitHub repository jaganpro/sf-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/sf-ai-agentforce-testing

Reload or restart Cursor to activate sf-ai-agentforce-testing. Access the skill through slash commands (e.g., /sf-ai-agentforce-testing) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.744 reviews
  • Lucas Rahman· Dec 24, 2024

    Keeps context tight: sf-ai-agentforce-testing is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Lucas Ramirez· Dec 20, 2024

    sf-ai-agentforce-testing has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Xiao Malhotra· Dec 8, 2024

    sf-ai-agentforce-testing reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Michael Lopez· Dec 4, 2024

    We added sf-ai-agentforce-testing from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Mia Bhatia· Nov 27, 2024

    We added sf-ai-agentforce-testing from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Rahul Santra· Nov 23, 2024

    Useful defaults in sf-ai-agentforce-testing — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Lucas Gill· Nov 23, 2024

    sf-ai-agentforce-testing reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Lucas Mehta· Nov 15, 2024

    sf-ai-agentforce-testing is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Tariq Kim· Nov 11, 2024

    Solid pick for teams standardizing on skills: sf-ai-agentforce-testing is focused, and the summary matches what you get after install.

  • Min Menon· Oct 18, 2024

    Keeps context tight: sf-ai-agentforce-testing is the kind of skill you can hand to a new teammate without a long onboarding doc.

showing 1-10 of 44

1 / 5