What problem does it solve? When an Apex test, trigger, batch job, Flow, or callout fails in a Salesforce org, the raw error message rarely explains why. This Skill provides a systematic method for capturing and reading Salesforce debug logs so you can pinpoint the exact code unit, query, limit, or exception behind a failure. ## Core Features & Use Cases - Trace Flag Management: Create and delete TraceFlag and DebugLevel records via the Tooling API or sf CLI, with correct scoping to avoid the 20 MB log and 1000 MB rate limits. - Log Retrieval and Analysis: Use sf apex list log, get log, and tail log, then read execution units, SOQL_EXECUTE, DML, LIMIT_USAGE_FOR_NS, CUMULATIVE_PROFILING, and FLOW_* events in the right order. - Symptom-Driven Playbooks: Diagnose CPU time and heap limit errors, silent batch and queueable failures, callout errors, Flow interference, and missing System.debug output using grep-based recipes. - Use Case: A batch job reports failure with no stack trace. Query AsyncApexJob for the failed chunks, fetch the per-chunk logs, grep for FATAL_ERROR, and identify the exact line and limit that caused the rollback. ## Quick Start Ask the assistant to capture and analyze a debug log for the failing Apex test or transaction in your target Salesforce org.