Apex Limits Monitoring

Use this skill when writing Apex that must check governor limits at runtime before executing expensive operations — guard clauses, early-exit patterns, Queueable re-queue on limit approach, and batch scope sizing. Trigger keywords: check governor limits before SOQL apex, defensive coding against limits apex, Limits.getDMLStatements getLimitDMLStatements, Limits class usage, guard clause governor limits, remaining SOQL queries Apex, heap size check before DML, LimitException handling. NOT for diagnosing a limit you already hit — use apex/governor-limits. NOT for CPU and heap tuning — use apex/apex-cpu-and-heap-optimization. NOT for org-wide limit consumption — use architect/org-limits-monitoring.

PranavNagrecha c3adb11 7 files · 42.6 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/apex/apex-limits-monitoring commit c3adb118a0

Frequently asked questions

npx skillmds add pranavnagrecha/apex-limits-monitoring