platform-apex-generate
A Salesforce skill for writing, refactoring and reviewing Apex classes and triggers.
What the skill teaches
A Salesforce skill for writing, refactoring and reviewing Apex classes and triggers. It covers service, selector and domain classes, batch, queueable and schedulable jobs, invocable methods, DTOs, utilities, interfaces, exceptions and REST resources, with a bundled template for each. The agent authors the code, validates it before reporting, and follows the skill's rules on bulkification and governor limits, SOQL efficiency, caching, security checks and error handling, including hard-stop constraints it must enforce. It also covers trigger design, @AuraEnabled controllers and custom REST APIs. It uses the sf CLI.
Capabilities
- Generate Apex classes from bundled templates
- Refactor or review existing Apex
- Design triggers and @AuraEnabled controllers
- Write custom REST resources in Apex
About
- Publisher
- Salesforce
- Tool
- Salesforce
Install
- Run this to add it to Any client:
npx skills add forcedotcom/sf-skills
What's inside
- assets/abstract.cls
- assets/batch.cls
- assets/domain.cls
- assets/dto.cls
- assets/exception.cls
- assets/interface.cls
- assets/invocable.cls
- assets/queueable.cls
- assets/rest-resource.cls
- assets/schedulable.cls
- assets/selector.cls
- assets/service.cls
- assets/trigger.cls
- assets/utility.cls
- references/AccountDeduplicationBatch.cls
- references/AccountSelector.cls
- references/AccountService.cls
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Salesforce | |
| Publisher | Salesforce | source |
| Official status | OfficialSalesforce's developer documentation for its skills and plugins links to the forcedotcom/sf-skills repository | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 6, 20261,156 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/forcedotcom/sf-skillsNov 10, 2026
- README (README.md)github.com/forcedotcom/sf-skillsNov 13, 2026
- Licence file (LICENSE.txt)github.com/forcedotcom/sf-skills · Backs: Licence, PublisherNov 13, 2026
- Web pagedeveloper.salesforce.com · Backs: Official statusNov 13, 2026
- Folder in the repository (platform-apex-generate)github.com/forcedotcom/sf-skills · Backs: Includes scriptsNov 10, 2026
- GitHub repositorygithub.com/forcedotcom/sf-skills · Backs: Activity, LicenceNov 11, 2026