Sf testing

From Jaganpro/sf-skills · View interactive version

Sf testing is an AI agent skill from the GitHub repository Jaganpro/sf-skills. Apex test execution, coverage analysis, and test-fix loops with 120-point scoring. TRIGGER when: user runs Apex tests, checks code coverage, fixes failing tests, or touches *Test.cls / *_Test.cls files. DO NOT TRIGGER when: writing Apex production code (use sf-apex), Agentforce agent testing (use sf

How to use this skill

Skill file

sf-testing: Salesforce Test Execution & Coverage Analysis

Use this skill when the user needs Apex test execution and failure analysis: running tests, checking coverage, interpreting failures, improving coverage, and managing a disciplined test-fix loop for Salesforce code.

When This Skill Owns the Task

Use sf-testing when the work involves:

Delegate elsewhere when the user is:


Required Context to Gather First

Ask for or infer:


Recommended Workflow

1. Discover test scope

Identify:

2. Run the smallest useful test set first

Start narrow when debugging a failure; widen only after the fix is stable.

3. Analyze results

Focus on:

4. Run a disciplined fix loop

When the issue is code or test quality:

5. Improve coverage intentionally

Cover:


High-Signal Rules


Output Format

When finishing, report in this order:

  1. What tests were run
  2. Pass/fail summary
  3. Coverage result
  4. Root-cause findings
  5. Fix or next-run recommendation

Suggested shape:

Test run: <scope>
Org: <alias>
Result: <passed / partial / failed>
Coverage: <percent / key classes>
Issues: <highest-signal failures>
Next step: <fix class, add test, rerun scope, or widen regression>

Cross-Skill Integration

| Need | Delegate to | Reason |

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

| fix production code or author tests | sf-apex | code generation and repair |

| create bulk / edge-case data | sf-data | realistic test datasets |

| deploy updated tests | sf-deploy | rollout |

| inspect detailed runtime logs | sf-debug | deeper failure analysis |


Reference Map

Start here

Specialized guidance


Score Guide

| Score | Meaning |

|---|---|

| 108+ | strong production-grade test confidence |

| 96–107 | good test suite with minor gaps |

| 84–95 | acceptable but strengthen coverage / assertions |

| < 84 | below standard; revise before relying on it |

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.