
Sf Apex
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-codeInstalls 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- Sf Lwc1.5K
- Sf Flow1.5K
- Sf Metadata1.5K
- Sf Soql1.5K
- Sf Debug1.5K
- Sf Deploy1.5K
- Sf Permissions1.4K
- Sf Testing1.4K
- 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 Omniscript993
- Sf Industry Commoncore Datamapper990
- Sf Industry Commoncore Omnistudio Analyze989
- Sf Industry Commoncore Flexcard987