generating-apex

Generate and review Apex classes for Salesforce service, selector, domain, and trigger workflows.

Updated May 19, 2026
One-click install
npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill generating-apex-dmckeesf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-apex
Source: https://github.com/dmckeeSF/mcpdctn0507/tree/main/.agents/skills/generating-apex
Command: npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill generating-apex-dmckeesf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the process of creating, refactoring, and reviewing Apex code, ensuring high-quality, efficient development practices.

Core Features & Use Cases

  • Apex Authoring: Generate new Apex classes for services, selectors, domains, and more.
  • Refactoring: Refactor existing Apex code to improve readability and performance.
  • Code Review: Provide evidence-based reviews of Apex code for quality assurance.
  • Use Case: When a developer needs to create a new Apex class for a service layer, this skill guides the process from naming conventions to code generation and testing.

Quick Start

Use the generating-apex skill to create a new service class for the 'Account' object with the name 'AccountService'.

Frequently Asked Questions about generating-apex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Apex classes for a Salesforce service layer?

To generate Apex classes for a Salesforce service layer, you can automate class creation by specifying the object and class name, such as creating an 'AccountService' class for the 'Account' object. The process guides naming conventions, code generation, and testing to ensure adherence to Apex best practices.

What is the best way to refactor existing Apex code for better performance?

Refactoring existing Apex code for better performance involves restructuring the code to improve readability and execution efficiency. The process applies Apex best practices and coding standards to optimize existing classes, including service, selector, domain, and trigger classes.

Can I automate code review for Apex classes to ensure quality assurance?

Yes, you can automate code review for Apex classes to ensure quality assurance by generating evidence-based reviews. This approach evaluates the code against established Apex best practices and coding standards to validate the quality of service, selector, domain, and trigger class implementations.

Does Apex code generation support domain and selector class patterns?

Yes, Apex code generation supports domain and selector class patterns alongside service and trigger classes. It automates the creation of these specific class types within Salesforce development workflows, ensuring the generated code aligns with the required architectural patterns and coding standards.

When do I need to use automated Apex class creation in Salesforce development?

You need to use automated Apex class creation in Salesforce development when streamlining the process of authoring, refactoring, and reviewing code. It is particularly useful for generating new service, selector, domain, or trigger classes while enforcing high-quality and efficient development practices.