Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/Testing & QA
jaganpro avatar

Sf Testing

jaganpro/sf-skills

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.

installs
1.4K
GitHub stars
424
last updated
Jul 14, 2026
View on GitHubSave

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:

  • writing or refactoring production Apex → sf-apex
  • testing Agentforce agents → sf-ai-agentforce-testing
  • testing LWC with Jest → sf-lwc

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

1. Discover test scope

Identify:

  • existing test classes
  • target production classes
  • test data factories / setup helpers

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:

  • failing methods
  • exception types and stack traces
  • uncovered lines / weak coverage areas
  • whether failures indicate bad test data, brittle assertions, or broken production logic

4. Run a disciplined fix loop

When the issue is code or test quality:

  • delegate code fixes to sf-apex when needed
  • add or improve tests
  • rerun focused tests before broader regression

5. Improve coverage intentionally

Cover:

  • positive path
  • negative / exception path
  • bulk path (251+ records where appropriate)
  • callout or async path when relevant

High-Signal Rules

  • default to SeeAllData=false
  • every test should assert meaningful outcomes
  • test bulk behavior, not just single-record happy paths
  • use factories / @TestSetup when they improve clarity and speed
  • pair Test.startTest() with Test.stopTest() when async behavior matters
  • do not hide flaky org dependencies inside tests

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

NeedDelegate toReason
fix production code or author testssf-apexcode generation and repair
create bulk / edge-case datasf-datarealistic test datasets
deploy updated testssf-deployrollout
inspect detailed runtime logssf-debugdeeper failure analysis

Reference Map

Start here

  • references/cli-commands.md
  • references/test-patterns.md
  • references/testing-best-practices.md
  • references/test-fix-loop.md

Specialized guidance

  • references/mocking-patterns.md
  • references/performance-optimization.md
  • assets/

Score Guide

ScoreMeaning
108+strong production-grade test confidence
96–107good test suite with minor gaps
84–95acceptable but strengthen coverage / assertions
< 84below standard; revise before relying on it
SKILL.md on GitHub

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

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

More from jaganpro/sf-skills

All 37
  • Sf Data1.4K
  • Sf Integration1.4K
  • Sf Diagram Mermaid1.4K
  • Sf Connected Apps1.4K
  • Sf Ai Agentscript1.4K
  • Sf Diagram Nanobananapro1.3K
  • Sf Ai Agentforce1.3K
  • Sf Ai Agentforce Testing1.3K
  • Sf Ai Agentforce Observability1.3K
  • Sf Docs1.2K
  • Sf Ai Agentforce Persona1.2K
  • Sf Datacloud1K
  • Sf Industry Commoncore Omniscript990
  • Sf Industry Commoncore Datamapper987
  • Sf Industry Commoncore Omnistudio Analyze986
  • Sf Industry Commoncore Flexcard984
  • Sf Datacloud Retrieve982
  • Sf Datacloud Connect980
  • Sf Industry Commoncore Integration Procedure980
  • Sf Datacloud Prepare979
  • Sf Datacloud Segment976
  • Sf Datacloud Harmonize973
  • Sf Datacloud Act972
  • Sf Industry Commoncore Callable Apex951

Recommended

More Testing & QA
1itechmeat avatarreact-testing-libraryitechmeat/llm-codeReact Testing Library: user-centric component testing with queries, user-event simulation, async utilities, and accessibility-first API. Use when writing React 1.4Kinstalls
2digitalsamba avatarplaywright-recordingdigitalsamba/claude-code-video-toolkitRecord browser interactions as video using Playwright. Use for capturing demo videos, app walkthroughs, and UI flows for Remotion videos. Triggers include recor1.3Kinstalls
3lobehub avatartestinglobehub/lobe-chattesting1.3Kinstalls
4jaganpro avatarsf-ai-agentforce-testingjaganpro/sf-skillssf ai agentforce testing1.3Kinstalls
5neolabhq avatartest-driven-developmentneolabhq/context-engineering-kitUse when implementing any feature or bugfix, before writing implementation code - write the test first, watch it fail, write minimal code to pass; ensures tests1.3Kinstalls
6github avatarreact19-test-patternsgithub/awesome-copilotProvides before/after patterns for migrating test files to React 19 compatibility, including act() imports, Simulate removal, and StrictMode call count changes.1.2Kinstalls