This is your tool for running Apex tests, diagnosing failures, and improving coverage in Salesforce. It handles the full test-fix loop: executing tests via SF CLI, parsing results, identifying uncovered lines, and recommending next steps. Works across single classes, suites, or org-wide runs. The 120-point scoring system helps you assess test quality beyond just pass/fail. It knows when to stay narrow during debugging and when to widen for regression testing. Delegates production code fixes to sf-apex and LWC testing to sf-lwc, staying focused on the Apex test execution layer. Strong on coverage analysis and structured fix loops, less useful if you just need to write tests from scratch.

skills.sh installs
1.4K
GitHub stars
422
last updated
Jul 14, 2026

Install

$ npx -y skills add jaganpro/sf-skills --skill sf-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

  • sf apex run test workflows
  • Apex unit-test failures
  • code coverage analysis
  • identifying uncovered lines and missing test scenarios
  • structured test-fix loops for Apex code

Delegate elsewhere when the user is:


Required Context to Gather First

Ask for or infer:

  • target org alias
  • desired test scope: single class, specific methods, suite, or local tests
  • coverage threshold expectation
  • whether the user wants diagnosis only or a test-fix loop
  • whether related test data factories already exist

Recommended Workflow

Sponsors

Details

Repository
github.com/jaganpro/sf-skills
Category
Testing & QA
First seen
Apr 16, 2026

More from jaganpro/sf-skills

All 37
1lobehub avatartestinglobehub/lobe-chattesting1.3Kskills.sh installs
2neolabhq avatartest-skillneolabhq/context-engineering-kitUse when creating or editing skills, before deployment, to verify they work under pressure and resist rationalization - applies RED-GREEN-REFACTOR cycle to proc1.2Kskills.sh installs
3ruvnet avataragent-tdd-london-swarmruvnet/rufloAgent skill for tdd-london-swarm - invoke with $agent-tdd-london-swarm1.1Kskills.sh installs
4ruvnet avataragent-test-long-runnerruvnet/rufloAgent skill for test-long-runner - invoke with $agent-test-long-runner1.1Kskills.sh installs
5sickn33 avatartest-driven-developmentsickn33/antigravity-awesome-skillstest driven development1.1Kskills.sh installs
6cexll avatartest-casescexll/myclaudetest cases1Kskills.sh installs