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

  • 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