sf-debug

Diagnose Salesforce Apex debug logs to identify governor-limit violations and root causes.

423|97|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/Jaganpro/sf-skills --skill sf-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-debug
Source: https://github.com/Jaganpro/sf-skills/tree/main/sf-debug
Command: npx skills add https://github.com/Jaganpro/sf-skills --skill sf-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps diagnose and fix Salesforce issues by analyzing Apex logs, identifying governor limit patterns, and suggesting actionable fixes.

Core Features & Use Cases

  • Log parsing and anomaly detection
  • Governor-limit dashboards and bottleneck identification
  • Agentic fix suggestions and automated guidance

Quick Start

Retrieve a log via sf apex get log and ask Claude to summarize issues and propose fixes.

Frequently Asked Questions about sf-debug

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

FAQPage Schema
How do I identify governor limit violations in Salesforce Apex logs?

Governor limit violations appear as specific limit exceeded errors in debug logs. This Skill analyzes Apex logs to detect SOQL, DML, CPU, and heap bottlenecks, pinpointing which governor limits your code has crossed and suggesting fixes to bring usage within limits.

What's the best way to debug Salesforce performance issues using logs?

Retrieve your Apex debug logs via sf apex get log, then use this Skill to parse log events and detect performance regressions. It identifies CPU and heap bottlenecks, interprets stack traces, and generates agentic fix recommendations with structured reporting.

Can I use log analysis to troubleshoot Salesforce deployment failures?

Yes. This Skill collects and analyzes logs from Salesforce orgs to diagnose root causes behind deployment failures and runtime exceptions. It detects anomalies and provides actionable fix suggestions to resolve issues quickly.

How do I get automated fix recommendations for Apex code issues?

Share your Apex debug logs with this Skill. It analyzes log events to identify governor limits, performance bottlenecks, and runtime exceptions, then generates agentic fix recommendations scored by impact and priority for your specific issues.

Does this work with LWC and Apex together?

Yes. This Skill diagnoses Salesforce issues across Apex and LWC by parsing debug logs and detecting governor-limit violations and performance patterns in both server-side and client-side code execution.

What happens when Salesforce throws a CPU timeout or heap size error?

CPU and heap limit violations typically cause runtime exceptions and deployment failures. This Skill detects these bottlenecks in your logs, interprets the stack trace to find the root cause, and suggests code optimizations to resolve them.