apex-development

Review Salesforce Apex code for compliance with NimbleUser Apex Style Guide rules.

6|6|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/david-sfdev/claude-sf-skills --skill apex-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apex-development
Source: https://github.com/david-sfdev/claude-sf-skills/tree/main/sf-apex-development
Command: npx skills add https://github.com/david-sfdev/claude-sf-skills --skill apex-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the challenge of maintaining high-quality, bulk-safe, and consistent Apex code across Salesforce projects by enforcing the NimbleUser Apex Style Guide.

Core Features & Use Cases

  • Style Enforcement: Automatically guides code formatting, naming conventions, and ApexDoc standards.
  • Best Practice Guardrails: Prevents common anti-patterns like SOQL/DML in loops and hardcoded IDs.
  • Use Case: When writing a new trigger handler or service class, this skill ensures your code is bulkified, secure, and follows the K&R brace style, preventing governor limit exceptions before they happen.

Quick Start

Use the apex-development skill to review this class for governor limit issues and suggest improvements.

Frequently Asked Questions about apex-development

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

FAQPage Schema
How do I prevent governor limit violations in Salesforce Apex code?

To prevent governor limit violations in Salesforce Apex, you must bulkify your code by removing SOQL and DML operations from loops. This skill enforces those bulk-safe patterns automatically during Apex class and trigger development.

What is bulkification in Apex and when do I need it?

Bulkification in Apex is structuring code to process multiple records simultaneously to avoid hitting Salesforce governor limits. You need it whenever writing trigger handlers or service classes that handle bulk data operations.

Can I use this to review existing Apex classes and triggers for security vulnerabilities?

Yes, you can use this skill to review existing Apex classes and triggers for security vulnerabilities. It applies the NimbleUser Apex Style Guide to identify anti-patterns and ensure proper exception handling during code review.

What's the best way to enforce consistent Apex formatting and naming conventions?

The best way to enforce consistent Apex formatting is by applying a strict style guide like NimbleUser's. This skill automatically guides K&R brace style, ApexDoc standards, and naming conventions across your Salesforce repository.

How do I structure Apex code to follow repository and service layer architectural patterns?

To structure Apex code following repository and service layer patterns, you separate database access logic from business logic. This skill enforces those architectural patterns to ensure clean, maintainable, and bulk-safe Salesforce code.

Why does my Salesforce Apex trigger fail when updating multiple records at once?

Your Apex trigger likely fails during bulk updates because it contains SOQL or DML statements inside a loop, hitting governor limits. This skill identifies these anti-patterns and guides you to write bulkified trigger handlers.