forcedotcom avatar

Debugging Apex Logs

This is a structured approach to reading Salesforce debug logs when you hit governor limits, stack traces, or performance issues. It walks you through retrieving logs with the CLI, analyzing them in a specific order (exceptions first, then limits, then SOQL/DML patterns), and classifying severity before recommending a fix. The output format is rigid but practical: what failed, where, why, severity, fix, and how to verify. It explicitly delegates code generation to other skills and stays focused on diagnosis. The reference files include common patterns like SOQL-in-loop and before/after fix examples. Useful if you want a checklist instead of guessing why your transaction blew up at 9,000ms CPU.

skills.sh installs
3K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill debugging-apex-logs --agent claude-code

Installs into .claude/skills of the current project.

Files

This is a structured approach to reading Salesforce debug logs when you hit governor limits, stack traces, or performance issues. It walks you through retrieving logs with the CLI, analyzing them in a specific order (exceptions first, then limits, then SOQL/DML patterns), and classifying severity before recommending a fix. The output format is rigid but practical: what failed, where, why, severity, fix, and how to verify. It explicitly delegates code generation to other skills and stays focused on diagnosis. The reference files include common patterns like SOQL-in-loop and before/after fix examples. Useful if you want a checklist instead of guessing why your transaction blew up at 9,000ms CPU.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Debugging, Sales & Marketing
First seen
Jun 3, 2026

More from forcedotcom/sf-skills

All 158

Recommended

More Debugging
1elastic avatarelasticsearch-security-troubleshootingelastic/agent-skillsDiagnose and resolve Elasticsearch security errors: 401/403 failures, TLS problems, expired API keys, role mapping mismatches, and Kibana login issues. Use when2.9Kskills.sh installs
2microsoft avatarfix-errorsmicrosoft/vscodeGuidelines for fixing unhandled errors from the VS Code error telemetry dashboard. Use when investigating error-telemetry issues with stack traces, error messag2.8Kskills.sh installs
3trailofbits avatarchrome-mcp-troubleshootingtrailofbits/skillsDiagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", 2.7Kskills.sh installs
4trailofbits avatarclaude-in-chrome-troubleshootingtrailofbits/skillsDiagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", 2.6Kskills.sh installs
5nexu-io avatarexport-download-debuggingnexu-io/open-designDiagnose and fix browser, preview, or Electron export/download failures, especially image export issues involving Save As, Blob/Data URLs, the File System Acces1.9Kskills.sh installs
6cognitedata avatarcorrectness-and-error-handlingcognitedata/builder-skillsMUST be used whenever fixing correctness and error handling issues in a Flows app. This skill finds AND fixes bugs, missing error states, unhandled rejections, 1.9Kskills.sh installs