tkhandekar-glo

Apex Optimizer Skills — AI skill for Claude Code

AI community

AI-native code review and optimization skills for Claude Code, Cursor, and agent IDEs.

How to install Apex Optimizer Skills

This entry records only its repository, not the path inside it, so there is no exact command to give. Open tkhandekar-glo/apex-optimizer-skills and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Apex Optimizer Skills does

AI-native code review and optimization skills for Claude Code, Cursor, and agent IDEs. Audits Salesforce Apex, Triggers, Batch, LWC, and Aura against PMD rules and Codex guidelines to fix governor limit risks, security flaws, and anti-patterns with production-ready code.

Alternatives in AI

  • AGENTS.md — Guidelines for AI agents working in this repository 21.7k ★
  • Anthropic Quickstarts — by Anthropic - Offers comprehensive development guides for three distinct AI-powered demo projects with standa 15.4k ★
  • Go Modern Guidelines — Help AI coding agents write modern Go 1.7k ★

README

Salesforce Apex & Component Review Engine

A modular, zero-dependency AI agent skill set that transforms your AI coding assistant (**Claude Code**, **Codex**, **OpenCode**, **Cursor**, **Windsurf**) into an automated static code reviewer, security auditor, and performance optimizer for the entire Salesforce ecosystem:

  • Apex Classes & Controllers
  • Triggers & Trigger Handlers
  • Batch & Asynchronous Apex (Batchable, Queueable, Schedulable, @future)
  • Lightning Web Components (LWC)
  • Aura Components
  • Visualforce Pages & Controllers

Built on the official [PMD Apex Ruleset](https://pmd.github.io/pmd/pmd_rules_apex.html) and the [Salesforce Codex Apex Optimization Guidelines](https://salesforcecodex.com/salesforce/optimizing-salesforce-apex-code/).


What It Analyzes

Area Rule Group / Standards Key Checks & Anti-Patterns
Security & Permissions PMD Apex Security & Web Standards Dynamic SOQL/SOSL Injection, CRUD/FLS validation (WITH USER_MODE, stripInaccessible), Class sharing declarations (with/without/inherited sharing), Open Redirects, and DOM/XSS flaws in LWC (lwc:dom="manual") and Aura ({!v.raw}).
Governor Limits & Performance Salesforce Codex Optimization & PMD Performance SOQL queries in loops (100-limit), DML statements in loops (150-limit), missing trigger bulkification (200-record boundary), unindexed SOQL filters, nested iterations ($O(N^2) \rightarrow O(N)$ map indexing).
Memory & Heap Limits Salesforce Codex Heap Guidelines Synchronous 6 MB / Asynchronous 12 MB heap protection, SOQL record chunking (for (List chunk : [SELECT ...])), memory clearing (chunk.clear()), avoiding unnecessary field selections.
Async Apex Architecture Salesforce Async Processing Limits Guardrails for @future and System.enqueueJob in iterations, proper batch state management (Database.Stateful), and chaining discipline.
**Testing & Reliabilit