
generating-apex
Primary Apex authoring skill for class generation, refactoring, and review
by forcedotcomFree
Description
Generating Apex is the primary agent skill for writing and reviewing Apex code in Salesforce projects. It covers production-grade Apex: new classes, selectors, services, async jobs, invocable methods and triggers. It also covers evidence-based review and refactoring of existing .cls and .trigger files. Before it writes anything, the skill tells the agent to gather or infer the required inputs. These are the class type, such as service, selector, domain, batch, queueable, schedulable, invocable, trigger, trigger action, DTO, utility, interface, abstract, exception or REST resource. They also include the target object or objects, the business goal, a class name derived from the naming table in the skill, whether the work is new or a refactor or fix, and any org or API constraints. Deployment defaults to runSpecifiedTests, with the generated tests used where they apply. The skill is meant to activate whenever a user mentions Apex, a .cls file, triggers or asks for a class. It is for Salesforce developers who want code that follows consistent patterns and passes review, and who want the agent to check existing Apex against the same standards. The skill is part of the public forcedotcom/sf-skills repository on GitHub.…
Highlights
- Classes, selectors, services, batch and queueable jobs
- Triggers and trigger actions
- Review and refactoring of existing Apex
- Naming table and deployment defaults built in
Ratings & Reviews
No ratings yet
Be the first to rate generating-apex.
People also visit

platform-apex-generate
Primary Apex authoring skill for class generation, refactoring, and review
generating-apex FAQ
What kinds of Apex can it write?
Service, selector, domain, batch, queueable, schedulable, invocable, trigger, trigger action, DTO, utility, interface, abstract, exception and REST resource classes, according to the skill.
Does it review existing code too?
Yes. The skill covers evidence-based review of existing .cls or .trigger files, as well as refactoring and fixes.
How do I install it?
Run npx skills add https://github.com/forcedotcom/sf-skills --skill generating-apex in your project.
Is it free and open source?
Yes. It is published in the public forcedotcom/sf-skills repository on GitHub.
What do the security audits say?
skills.sh lists Gen Agent Trust Hub: Pass, Socket: Pass and Snyk: Pass for this skill.
What are the best generating-apex alternatives?
Popular alternatives to generating-apex include platform-apex-generate, salesforce-developer and sf-apex. See all generating-apex alternatives



