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
- Engram — The context spine that 10x's every AI coding session 141 ★
- GPT 6 Astra Skill — Astra Skill Optimizer for GPT-6/Astra project Skill and workflow adaptation 117 ★
- Trading Skills — 17 triggers × 44 algorithms × 3 AI experts — live crypto trading signals for Claude Code, Codex, Cursor & 30+ 113 ★
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
Apple Review Skill
AI agent skill that audits iOS apps against Apple's App Store Review Guidelines before submission — all guidel
Going Dark
One strict way to run a software project with AI coding agents: issues as specs, handoff prompts, audits that
Local Exact Match Domain Research
Local exact-match domain (EMD) research skill for Claude, Codex, OpenCode & other AI agents — validate, score
API Gateway Skill
API gateway with managed auth. Connect your AI to Slack, HubSpot, Salesforce, Google Workspace, Shopify, and m
Lycheetah Framework
AI alignment framework. Nine interdependent theories — CASCADE, AURA, LAMAGUE and six more — each mathematical
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
Sf Lwc Engineer
Implements Lightning Web Components, Aura bundles, static resources, and their Jest specs. Use for wave-1 UI w