This one generates and reviews Salesforce Apex code against a 150-point rubric across eight categories. It handles the full range: triggers, batch jobs, queueables, test classes, invocable methods, and refactors. The workflow is smart about context gathering first (class type, target objects, existing patterns like TAF), then enforces production guardrails like bulkification, sharing modes, and security. It blocks common governor limit traps (SOQL in loops, DML in loops) and pushes you toward the PNB testing pattern (positive, negative, bulk). The cross-skill delegation is clean: it knows when to hand off to sf-lwc for Lightning components or sf-deploy for org validation. If you're writing or reviewing Apex and want structured quality gates instead of vibes-based code review, this is the tool.

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

Install

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

Installs into .claude/skills of the current project.

Files

sf-apex: Salesforce Apex Code Generation and Review

Use this skill when the user needs production Apex: new classes, triggers, selectors, services, async jobs, invocable methods, test classes, or evidence-based review of existing .cls / .trigger code.

When This Skill Owns the Task

Use sf-apex when the work involves:

  • Apex class generation or refactoring
  • trigger design and trigger-framework decisions
  • @InvocableMethod, Queueable, Batch, Schedulable, or test-class work
  • review of bulkification, sharing, security, testing, or maintainability

Delegate elsewhere when the user is:

  • editing LWC JavaScript / HTML / CSS → sf-lwc
  • building Flow XML or Flow orchestration → sf-flow
  • writing SOQL only → sf-soql
  • deploying or validating metadata to orgs → sf-deploy

Required Context to Gather First

Ask for or infer:

  • class type: trigger, service, selector, batch, queueable, schedulable, invocable, test
  • target object(s) and business goal
  • whether code is net-new, refactor, or fix
  • org / API constraints if known
  • expected test coverage or deployment target

Sponsors

Details

Repository
github.com/jaganpro/sf-skills
First seen
Apr 16, 2026

More from jaganpro/sf-skills

All 37

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs