platform-apex-logs-debug
A Salesforce skill for analysing debug logs and troubleshooting Apex problems.
What the skill teaches
A Salesforce skill for analysing debug logs and troubleshooting Apex problems. The agent retrieves logs from the org with the sf CLI, works through them in a set order, classifies how severe each issue is, and recommends the smallest change that fixes it, scoring the analysis on a 100-point scale. It covers governor limit errors, stack traces and common patterns such as SOQL or DML inside loops and null pointer errors, with bundled Apex examples of fixes. Running tests, writing new Apex and tracing Agentforce sessions are handled by other skills. It uses the sf CLI and jq.
Capabilities
- Retrieve and analyse Salesforce debug logs
- Diagnose governor limit errors and stack traces
- Classify issue severity
- Recommend minimal fixes with Apex examples
About
- Publisher
- Salesforce
- Tool
- Salesforce
Install
- Run this to add it to Any client:
npx skills add forcedotcom/sf-skills
What's inside
- README.md
- assets/benchmarking-template.cls
- assets/cpu-heap-optimization.cls
- assets/dml-in-loop-fix.cls
- assets/null-pointer-fix.cls
- assets/soql-in-loop-fix.cls
- references/analysis-playbook.md
- references/benchmarking-guide.md
- references/cli-commands.md
- references/common-issues.md
- references/debug-log-reference.md
- references/log-analysis-tools.md
- references/scoring-rubric.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Salesforce | |
| Publisher | Salesforce | source |
| Official status | OfficialSalesforce's developer documentation for its skills and plugins links to the forcedotcom/sf-skills repository | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 6, 20261,156 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/forcedotcom/sf-skillsNov 10, 2026
- README (README.md)github.com/forcedotcom/sf-skillsNov 13, 2026
- Licence file (LICENSE.txt)github.com/forcedotcom/sf-skills · Backs: Licence, PublisherNov 13, 2026
- Web pagedeveloper.salesforce.com · Backs: Official statusNov 13, 2026
- Folder in the repository (platform-apex-logs-debug)github.com/forcedotcom/sf-skills · Backs: Includes scriptsNov 10, 2026
- GitHub repositorygithub.com/forcedotcom/sf-skills · Backs: Activity, LicenceNov 11, 2026