forcedotcom avatar

Platform Apex Logs Debug

When you're staring at a Salesforce debug log trying to figure out why your transaction blew past the CPU limit or threw a null pointer three layers deep in a trigger, this is the skill that walks you through structured root cause analysis. It handles the full loop: retrieves logs via SF CLI, classifies issues by severity (Critical/Warning/Info), identifies the usual suspects like SOQL in loops or heap pressure, and delivers six-field findings with location, root cause, and a verification step. The 100-point scoring rubric keeps analysis thorough. It deliberately stays out of code generation and test execution, those get handed off to other skills so this one stays focused on diagnosis.

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

Install

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

Installs into .claude/skills of the current project.

Files

platform-apex-logs-debug: Salesforce Debug Log Analysis & Troubleshooting

Use this skill when the user needs root-cause analysis from debug logs: governor-limit diagnosis, stack-trace interpretation, slow-query investigation, heap / CPU pressure analysis, or a reproduction-to-fix loop based on log evidence.

When This Skill Owns the Task

Use platform-apex-logs-debug when the work involves:

  • .log files from Salesforce
  • stack traces and exception analysis
  • governor limits
  • SOQL / DML / CPU / heap troubleshooting
  • query-plan or performance evidence extracted from logs

Delegate elsewhere when the user is:


Required Context to Gather First

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Testing & QA, Debugging, Sales & Marketing
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1pixijs avatarpixijs-scene-graphicspixijs/pixijs-skillsUse this skill when drawing vector shapes and paths in PixiJS v8. Covers the Graphics API: shape-then-fill methods (rect/circle/ellipse/poly/roundRect/star/regu7.1Kskills.sh installs
2aws avatarcreating-data-lake-tableaws/agent-toolkit-for-awsCreate managed Iceberg tables using Amazon S3 Tables (s3tables API namespace) with automatic compaction and snapshot management. Sets up table bucket, namespace7Kskills.sh installs
3jimliu avatarbaoyu-designjimliu/baoyu-designCreate polished design artifacts as self-contained HTML: UI mockups, interactive prototypes, wireframes, landing pages, dashboards, app screens, mobile apps, sl7Kskills.sh installs
4leonardomso avatarrust-skillsleonardomso/rust-skillsComprehensive Rust coding guidelines with 265 rules across 26 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handlin7Kskills.sh installs
5pixijs avatarpixijs-mathpixijs/pixijs-skillsUse this skill when working with coordinates, vectors, matrices, shapes, hit testing, or layout rectangles in PixiJS v8. Covers Point/ObservablePoint, Matrix (26.9Kskills.sh installs
6wondelai avatarrefactoring-patternswondelai/skillsApply named refactoring transformations to improve code structure without changing behavior. Use when the user mentions "refactor this", "code smells", "extract6.7Kskills.sh installs