sf-debug

Analyze Salesforce Apex debug logs for governor limits and performance bottlenecks.

6|Updated Dec 20, 2023
One-click install
npx skills add https://github.com/ronitnuguru/Package-Visualizer --skill sf-debug-ronitnuguru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-debug
Source: https://github.com/ronitnuguru/Package-Visualizer/tree/main/.cursor/skills/sf-debug
Command: npx skills add https://github.com/ronitnuguru/Package-Visualizer --skill sf-debug-ronitnuguru

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Salesforce debugging and troubleshooting for Apex logs, governor limits, performance bottlenecks, and root-cause analysis, enabling faster fixes.

Core Features & Use Cases

  • Log Analysis: Parse and analyze Apex debug logs for issues
  • Governor Limit Detection: Identify SOQL, DML, CPU, and heap limit concerns
  • Performance Analysis: Find slow queries, expensive operations, and bottlenecks
  • Stack Trace Interpretation: Parse exceptions and identify root causes
  • Agentic Fix Suggestions: Automatically suggest code fixes based on issues found
  • Query Plan Analysis: Analyze SOQL query performance and selectivity

Quick Start

Provide a Salesforce Apex debug log and ask the skill to analyze it for governor limits, performance hotspots, and recommended fixes.

Frequently Asked Questions about sf-debug

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

FAQPage Schema
How do I analyze Salesforce Apex debug logs for governor limit issues?

You can analyze Salesforce Apex debug logs by providing the log file to parse SOQL, DML, CPU, and heap usage across the transaction. This surfaces governor limit concerns and provides actionable code fix recommendations.

What is the best way to find performance bottlenecks in Apex logs?

Finding performance bottlenecks in Apex logs involves parsing the transaction to identify slow SOQL queries, expensive operations, and loops. This pinpoints query selectivity issues and CPU time hotspots.

Can I automatically suggest code fixes for Apex exceptions from a debug log?

Yes, you can automatically suggest code fixes for Apex exceptions by parsing stack traces to identify root causes. The analysis interprets exceptions and generates agentic fix suggestions based on the specific issues found.

Does Salesforce Apex log analysis require the Salesforce CLI?

Salesforce Apex log analysis requires command-line tooling via the Salesforce CLI to ingest logs from sf apex commands. This environment setup enables the tool to parse debug logs and evaluate governor limit utilization.

How do I check SOQL query performance and selectivity in Apex logs?

To check SOQL query performance in Apex logs, the analysis tool parses the transaction to evaluate query plans and selectivity. It identifies slow queries and flags operations that risk hitting SOQL governor limits.