Apex Optimizer Skills — AI skill for Claude Code
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 |
Related Skills
Claude Token Optimizer
Claude Code skill that audits your setup for token waste and cuts per-session costs by 30-85%. Detects missing
Claude Skill SEO Geo Optimizer
Production-ready Claude skill for comprehensive SEO/GEO optimization. Analyzes content for traditional search
Claude Code Prompt Optimizer
AI-powered prompt optimization hook for Claude Code. Transforms simple prompts into comprehensive, structured
SEO Master 2026
The complete AI SEO & GEO stack for Claude Code — keyword research, technical audits, Generative Engine Optimi
SwiftUI Design Skill
SwiftUI Front-End Design Skills — Six Ironclad Rules Against AI Sloppiness, Design Direction Consulting, Brand
Apex Formula
APEX FORMULA — open-source Formula 1 racing game for the browser. Three.js, 100% procedural assets, 120 Hz veh
Related Agents
Sf Review Agent
Final Salesforce quality gate — validate Apex, LWC, Flow against architect plan; audit security, governor limi
Salesforce Developer
MUST BE USED for ALL Salesforce code/programming work. Use PROACTIVELY when task involves: Apex classes, Apex
Process Observer Audit
Compliance audit sub-agent. Reviews session against CLAUDE.md behavioral guidelines — branching conventions, C