apex-coding-standards

Enforce Apex naming conventions, ApexDoc documentation, and PMD compliance.

2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bhanu91221/claude-sfdx-iq --skill apex-coding-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apex-coding-standards
Source: https://github.com/bhanu91221/claude-sfdx-iq/tree/main/skills/apex-coding-standards
Command: npx skills add https://github.com/bhanu91221/claude-sfdx-iq --skill apex-coding-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Apex teams struggle with inconsistent naming, missing documentation, and unstandardized code structure, which hampers maintenance and reviews. This skill codifies conventions for naming, documentation, and PMD compliance to keep Apex codebases clean and auditable.

Core Features & Use Cases

  • Enforces naming conventions for classes, methods, and variables.
  • Promotes ApexDoc-style documentation on public APIs.
  • Provides a framework for PMD rule configuration and code quality checks.
  • Use Case: A team standardizes all new Apex classes to follow the same naming pattern and documentation before merger approvals.

Quick Start

Adopt the naming, documentation, and PMD guidelines described here in your Salesforce Apex projects.

Frequently Asked Questions about apex-coding-standards

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

FAQPage Schema
How do I enforce consistent Apex coding standards across a Salesforce team?

You can enforce Apex coding standards by codifying naming conventions for classes and methods, applying ApexDoc-style documentation, and configuring PMD rules for automated code quality checks during reviews.

What naming conventions should I follow for Salesforce Apex classes and methods?

Apex naming conventions standardize how classes, methods, and variables are named across projects. Applying consistent naming patterns ensures codebase readability and simplifies maintenance during code reviews.

How do I generate ApexDoc documentation for public APIs in Salesforce?

ApexDoc-style documentation is generated by adding standardized comments to public APIs. This skill provides guidelines to ensure all public methods and classes have proper documentation before merger approvals.

Can I use PMD to check Apex code quality and compliance?

Yes, PMD can check Apex code quality. This skill provides a framework for PMD rule configuration to automate code quality checks and ensure Apex codebases remain clean, auditable, and maintainable.

What is the best way to standardize Apex code structure before pull request approvals?

The best way to standardize Apex code before approvals is to apply codified conventions for naming, ApexDoc documentation, and PMD compliance. This ensures all new classes follow the same patterns and quality checks.

Why does unstandardized Apex code hamper maintenance and reviews?

Unstandardized Apex code hampers maintenance because inconsistent naming and missing documentation make it difficult to audit. Codifying conventions for structure and PMD compliance keeps codebases clean and reviewable.