
Generating Apex
This is the workhorse for writing production Apex classes, triggers, selectors, services, batch jobs, and REST resources. It enforces bulkification rules, governor limit patterns, and security defaults like `with sharing` and `WITH USER_MODE`. The workflow is rigid: gather requirements, pick the smallest pattern, author with guardrails, generate tests via a separate skill, then validate with code analyzer and test execution before reporting. It won't let you put SOQL in loops or skip exception handling. The templates and references folder suggest this is part of a larger structured approach to Salesforce development. Good for teams that want consistency and guard rails baked into their AI tooling.
- skills.sh installs
- 1.6K
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill generating-apex --agent claude-codeInstalls into .claude/skills of the current project.
Files
This is the workhorse for writing production Apex classes, triggers, selectors, services, batch jobs, and REST resources. It enforces bulkification rules, governor limit patterns, and security defaults like `with sharing` and `WITH USER_MODE`. The workflow is rigid: gather requirements, pick the smallest pattern, author with guardrails, generate tests via a separate skill, then validate with code analyzer and test execution before reporting. It won't let you put SOQL in loops or skip exception handling. The templates and references folder suggest this is part of a larger structured approach to Salesforce development. Good for teams that want consistency and guard rails baked into their AI tooling.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- First seen
- May 16, 2026
More from forcedotcom/afv-library
All 58- Generating Apex Test1.6K
- Generating Custom Field1.6K
- Generating Custom Object1.6K
- Generating Flow1.6K
- Generating Permission Set1.6K
- Building Ui Bundle App1.5K
- Building Ui Bundle Frontend1.5K
- Deploying Ui Bundle1.5K
- Developing Agentforce1.5K
- Generating Custom Application1.5K
- Generating Custom Lightning Type1.5K
- Generating Custom Tab1.5K
- Generating Flexipage1.5K
- Generating Lightning App1.5K
- Generating List View1.5K
- Generating Ui Bundle Features1.5K
- Generating Ui Bundle Metadata1.5K
- Generating Ui Bundle Site1.5K
- Generating Validation Rule1.5K
- Implementing Ui Bundle Agentforce Conversation Client1.5K
- Implementing Ui Bundle File Upload1.5K
- Observing Agentforce1.5K
- Searching Media1.5K
- Switching Org1.5K