forcedotcom avatar

Debugging Apex Logs

This is a structured framework for reading Salesforce debug logs when you hit governor limits, chase down exceptions, or need to figure out why a transaction died. It walks you through retrieval, analysis order (exceptions first, then limits, then SOQL/DML patterns), and gives you a six-field output format so you deliver root cause, not symptoms. The skill explicitly delegates code generation to generating-apex and test execution to running-apex-tests, keeping scope tight on diagnosis. It includes a scoring rubric, common issue patterns like SOQL-in-loop, and reference files for CLI commands and benchmarking. If you spend time scrolling through 2MB logs trying to spot the line that burned your CPU budget, this gives you a repeatable method.

skills.sh installs
532
GitHub stars
705
last updated
Jul 14, 2026

Install

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

Installs into .claude/skills of the current project.

Files

This is a structured framework for reading Salesforce debug logs when you hit governor limits, chase down exceptions, or need to figure out why a transaction died. It walks you through retrieval, analysis order (exceptions first, then limits, then SOQL/DML patterns), and gives you a six-field output format so you deliver root cause, not symptoms. The skill explicitly delegates code generation to generating-apex and test execution to running-apex-tests, keeping scope tight on diagnosis. It includes a scoring rubric, common issue patterns like SOQL-in-loop, and reference files for CLI commands and benchmarking. If you spend time scrolling through 2MB logs trying to spot the line that burned your CPU budget, this gives you a repeatable method.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/forcedotcom/afv-library
Category
Debugging
First seen
Jun 3, 2026

More from forcedotcom/afv-library

All 58

Recommended

More Debugging
1parcadei avatardebugparcadei/continuous-claude-v3Debug issues by investigating logs, database state, and git history509skills.sh installs
2secondsky avatarapi-error-handlingsecondsky/claude-skillsImplements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building production APIs, implementing error455skills.sh installs
3sickn33 avatarapplication-performance-performance-optimizationsickn33/antigravity-awesome-skillsapplication performance performance optimization426skills.sh installs
4sickn33 avatarerror-handling-patternssickn33/antigravity-awesome-skillserror handling patterns367skills.sh installs
5sickn33 avatarerror-diagnostics-error-tracesickn33/antigravity-awesome-skillserror diagnostics error trace294skills.sh installs
6vltansky avatardebugvltansky/debug-skilldebug276skills.sh installs