What problem does it solve?
Apex code that passes a quick review often hides governor limit violations, missing sharing declarations, SOQL injection risks, and inadequate test coverage that only surface in production. This Skill applies a systematic checklist to every Apex class, trigger, and test file so these defects are caught before deployment.
Core Features & Use Cases
- Governor Limit Guardrails: Detects SOQL and DML statements inside loops and enforces bulkified collection-based patterns.
- Security Enforcement: Verifies sharing model declarations, CRUD/FLS checks, WITH USER_MODE queries, and SOQL injection prevention via bind variables and whitelists.
- PNB Test Coverage: Requires Positive, Negative, and Bulk (200-251 records) test paths with meaningful assertions using modern Assert methods.
- Use Case: When reviewing a new Account trigger handler, apply this Skill to confirm the trigger delegates to a with-sharing handler class, all SOQL is bulkified outside loops, and the test class covers positive, negative, and 200-record bulk scenarios.
Quick Start
Review my Apex trigger handler and test class for governor limit risks, sharing model issues, and missing bulk test coverage.