
Generating Apex
If you're writing Apex classes, triggers, batch jobs, or REST resources, this skill walks you through the full authoring workflow: gathering requirements, choosing the right pattern (service, selector, domain, trigger handler, etc.), generating code with proper sharing keywords and bulkification, creating tests via a separate skill, then running code analyzer and test execution before delivering a validation report. It enforces hard stops for common governor limit violations like SOQL in loops and skipping sharing declarations. The workflow is strict and sequential, which means you get production-grade code with ApexDoc and test coverage, but you'll need to provide clear context upfront about your class type and target objects. It leans heavily on templates and conventions, so it fits best in orgs that already follow layered architecture patterns.
- skills.sh installs
- 4.2K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill generating-apex --agent claude-codeInstalls into .claude/skills of the current project.
Files
If you're writing Apex classes, triggers, batch jobs, or REST resources, this skill walks you through the full authoring workflow: gathering requirements, choosing the right pattern (service, selector, domain, trigger handler, etc.), generating code with proper sharing keywords and bulkification, creating tests via a separate skill, then running code analyzer and test execution before delivering a validation report. It enforces hard stops for common governor limit violations like SOQL in loops and skipping sharing declarations. The workflow is strict and sequential, which means you get production-grade code with ApexDoc and test coverage, but you'll need to provide clear context upfront about your class type and target objects. It leans heavily on templates and conventions, so it fits best in orgs that already follow layered architecture patterns.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- Categories
- Backend & APIs, Git & Pull Requests, Code Review & Quality, Debugging, Automation & Workflows, Design & UI/UX
- First seen
- Jun 3, 2026
More from forcedotcom/sf-skills
All 158- Generating Apex Test4.2K
- Generating Flow4.1K
- Generating Custom Field4K
- Generating Custom Object4K
- Generating Permission Set4K
- Generating Flexipage4K
- Generating Custom Tab3.9K
- Generating Custom Application3.9K
- Generating Lightning App3.9K
- Generating Custom Lightning Type3.9K
- Generating List View3.9K
- Generating Validation Rule3.9K
- Data360 Query3.8K
- Data360 Connect3.8K
- Data360 Activate3.8K
- Data360 Prepare3.8K
- Data360 Harmonize3.8K
- Data360 Orchestrate3.8K
- Data360 Segment3.8K
- Developing Agentforce3.8K
- Switching Org3.7K
- Generating Ui Bundle Metadata3.7K
- Building Ui Bundle App3.7K
- Building Ui Bundle Frontend3.7K