generating-apex

Generate Apex classes, selectors, services, and triggers with ApexDoc and tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skeleton-based Apex authoring skill reduces manual boilerplate work by generating production-ready Apex code, test scaffolds, and documentation from a clear specification.

Core Features & Use Cases

  • Generates {ClassName}.cls and {ClassName}Test.cls with ApexDoc-rich headers for all public APIs.
  • Supports standard patterns: service, selector, domain, batch, queueable, schedulable, invocable methods, REST resources, and triggers.
  • Facilitates rapid refactoring and code reviews by providing well-structured skeletons and guardrails.

Quick Start

Provide a request detailing the Apex class type, target object, and desired pattern, and this skill will generate the boilerplate plus tests.

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 with unit tests and ApexDoc automatically?

This skill generates production-ready Apex classes and test scaffolds with ApexDoc headers from a clear specification. It outputs both the main class file and its corresponding test class file together.

What Salesforce Apex patterns does this code generation skill support?

The skill supports generating service, selector, domain, batch, queueable, schedulable, invocable methods, REST resources, and triggers. It applies standard patterns to ensure adherence to Salesforce best practices, sharing, and security guidelines.

Can I use this to refactor existing Apex code or do code reviews?

Yes, the skill facilitates rapid refactoring and code reviews by providing well-structured skeletons and guardrails. It applies the same best practices for sharing, security, and code quality to existing code modification requests.

What do I need to provide to start generating Apex boilerplate?

You need to provide a request detailing the Apex class type, target object, and desired pattern. The skill will then generate the boilerplate code, tests, and documentation based on that specification.

Does the generated Apex code follow Salesforce security and sharing best practices?

Yes, the generated code ensures adherence to Salesforce best practices, including proper sharing rules, security guidelines, and overall code quality standards. This applies to all generated services, domains, and triggers.