platform-apex-logs-debug

Analyze Salesforce Apex debug logs for performance bottlenecks.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Agents --skill platform-apex-logs-debug-padjei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: platform-apex-logs-debug
Source: https://github.com/padjei/SF_Agents/tree/main/.claude/skills/platform-apex-logs-debug
Command: npx skills add https://github.com/padjei/SF_Agents --skill platform-apex-logs-debug-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill analyzes Apex debug logs to help diagnose and resolve performance bottlenecks in Salesforce applications.

Core Features & Use Cases

  • Log Analysis: Parse and analyze Apex debug logs to identify performance issues.
  • Governor Limit Detection: Monitor SOQL, DML, CPU, and heap limit usage.
  • Performance Analysis: Find slow queries, expensive operations, and potential performance improvements.
  • Agentic Fix Suggestions: Automatically suggest code fixes to optimize Apex code.
  • Use Case: For example, use this Skill to analyze a slow SOQL query in an Apex class and automatically suggest an index that can improve query performance.

Quick Start

Invoke the platform-apex-logs-debug skill and provide a debug log for analysis. Example: "Analyze the latest debug log for errors."

Frequently Asked Questions about platform-apex-logs-debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Apex debug logs for performance bottlenecks in Salesforce?

Yes, governor limit detection is a core feature of this Apex log analysis. It specifically monitors your SOQL, DML, CPU, and heap limit usage within the debug logs, allowing you to identify potential limit breaches before they impact your Salesforce application.

Can this Skill suggest fixes for slow SOQL queries found in Apex logs?

Yes, it provides agentic fix suggestions for slow SOQL queries and other performance issues found in Apex logs. For example, after detecting a slow query, it can automatically suggest adding a custom index to improve query performance in your Salesforce org.

What do I need to start debugging Apex performance issues with this tool?

You need to provide an Apex debug log from your Salesforce environment. Once you invoke the Skill with the log data, it applies its knowledge of the debug log format and common performance bottlenecks to analyze the code execution and suggest optimizations.

Why is my Salesforce Apex code hitting CPU limits and how can I find the cause?

Hitting CPU limits often results from expensive operations or inefficient loops in your Apex code. This Skill analyzes your debug logs to locate the exact lines causing high CPU usage, helping you understand the source of the bottleneck and suggesting code fixes to reduce the load.

Are there limitations to what this Apex log analyzer can detect?

The Skill focuses strictly on performance tuning and debugging Apex code by analyzing debug logs. It requires a valid debug log to function and applies its reasoning to known performance bottlenecks, meaning it cannot detect issues outside the scope of the provided log data.