sf-apex-constraints

Enforce Apex governor limits, naming conventions, and security patterns.

13|2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-apex-constraints
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-apex-constraints
Source: https://github.com/jiten-singh-shahi/salesforce-claude-code/tree/main/.cursor/skills/sf-apex-constraints
Command: npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-apex-constraints

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce Apex governance and security on all Apex classes, triggers, and batch jobs.

Core Features & Use Cases

  • Automatically flag governor limit violations, naming inconsistencies, and insecure patterns across Apex artifacts during development and reviews.
  • Enforce bulkification and sharing rules, ensuring code adheres to Salesforce best practices.
  • Use Case: when starting a new trigger, run this skill to validate the code against governor limits and security patterns before deployment.

Quick Start

Apply the apex-constraints checks to Apex artifacts during development to enforce governor limits, naming conventions, and security patterns.

Frequently Asked Questions about sf-apex-constraints

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

FAQPage Schema
How do I check Apex classes for governor limit violations before deployment?

To check Apex classes for governor limit violations, run validation checks against defined governance rules to automatically flag bulkification issues, naming inconsistencies, and insecure patterns across artifacts before deployment.

What security patterns should I enforce during a Salesforce Apex code review?

During a Salesforce Apex code review, you should enforce explicit sharing rules, bulkification best practices, and security patterns defined in SECURITY_PATTERNS.md to flag insecure patterns across classes, triggers, and batch jobs.

Can I use this to bulkify Apex triggers and enforce naming conventions?

Yes, you can apply this to bulkify Apex triggers and enforce naming conventions. It validates triggers against governor limits and ensures explicit sharing and naming consistency across multiple artifacts during development.

When do I need to validate Salesforce batch jobs against governor limits?

You need to validate Salesforce batch jobs against governor limits during development and code reviews to ensure bulkification and prevent limit violations before deploying the batch jobs to production.

What is the best way to automate Apex governance checks across multiple artifacts?

The best way to automate Apex governance checks is to apply constraint rules across multiple artifacts, automatically flagging naming inconsistencies, security vulnerabilities, and governor limit violations during the development and review phases.