sf-debug

sf-debug is a skill for Claude Code from kugamon/salesforce-core-skills. It costs 161 tokens per session (2,530 once invoked), scanned A, original, no licence file.

A Salesforce troubleshooting tool that collects and examines debug logs through Salesforce’s Tooling API. Salesforce is a cloud business platform, and debug logs record what happens while its code runs.

In plain words
What is it for?
Use it to set trace flags, retrieve and parse logs, find exceptions, detect queries inside loops, analyse governor limits, and investigate row locks in a live Salesforce organisation.
Why use it?
It helps locate errors and resource-limit problems that are difficult to diagnose from the visible failure alone. It can inspect issues such as repeated database queries, CPU or memory use, and record-lock conflicts.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the salesforce-core plugin — 16 skills, 2 agents, 1 hook shipped together

Good fit Use it to set trace flags, retrieve and parse logs, find exceptions, detect queries inside loops, analyse governor limits, and investigate row locks in a live Salesforce organisation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kugamon/salesforce-core-skills/sf-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kugamon/salesforce-core-skills --skill sf-debug
Clone the repo
git clone --depth 1 https://github.com/kugamon/salesforce-core-skills

Made for: Claude Code.

Or install salesforce-core, the plugin that ships this one along with the rest of its 16 skills, 2 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sf-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/kugamon/salesforce-core-skills/sf-debug/github.svg)](https://agentmods.dev/skills/kugamon/salesforce-core-skills/sf-debug)
Your own site
<a href="https://agentmods.dev/skills/kugamon/salesforce-core-skills/sf-debug"><img src="https://agentmods.dev/badge/skills/kugamon/salesforce-core-skills/sf-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sf-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/kugamon/salesforce-core-skills/sf-debug"><img src="https://agentmods.dev/badge/skills/kugamon/salesforce-core-skills/sf-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,530 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00161 $0.02530
Opus 5.5 $0.00064 $0.01012
Sonnet 5.5 $0.00032 $0.00506
Haiku 4.5 $0.00016 $0.00253

Measured 1mo ago against content hash 044f0dfc0c3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sf-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/salesforce-core/skills/sf-debug/SKILL.md · 226 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 226 lines · 161 tokens per session scan A 044f0dfc0c3a

Subscribe to this mod's changes

sf-debug is a skill published in the GitHub repository kugamon/salesforce-core-skills (3 stars, last pushed 1mo ago), with no licence file. It adds 161 tokens to every session and 2,530 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

matlab-coach-debugging

Use when tutoring a learner through MATLAB debugging, error interpretation, failed tests, incorrect outputs, array-shape problems, indexing mistakes, function argument issues, or code repair practice. Use for guided debugging sessions, debugging drills, teach-the-agent critique, and evidence-based MATLAB…

matlab/agent-skills-playground · 62 tokens

spark-engineer

Use when writing Spark jobs, debugging performance issues, or configuring cluster settings for Apache Spark applications, distributed data processing pipelines, or big data workloads. Invoke to write DataFrame transformations, optimize Spark SQL queries, implement RDD pipelines, tune shuffle operations, configure…

Jeffallan/claude-skills · 75 tokens

debugging-wizard

Parses error messages, traces execution flow through stack traces, correlates log entries to identify failure points, and applies systematic hypothesis-driven methodology to isolate and resolve bugs. Use when investigating errors, analyzing stack traces, finding root causes of unexpected behavior, troubleshooting…

Jeffallan/claude-skills · 70 tokens

log-analyzer

A log-analysis helper that reads application and system logs to find unusual patterns and likely causes. Logs are records of events such as errors, requests, warnings, and service activity.

laolaoshiren/claude-code-skills-zh · 24 tokens

shiny-py-optimize

Diagnose and fix performance problems in Shiny for Python apps — slow startup, sluggish interactions, blocking operations, and apps that struggle beyond a handful of concurrent users. Use when a Shiny for Python app is slow, hangs, recomputes too much, times out, or must support more users; when the user asks to…

posit-dev/skills · 105 tokens

scenario-unreal-performance

Use when an Unreal Engine 5.8 project misses its frame rate or stutters: "optimize to 60 fps", "we run at 38 fps", CPU or GPU bound, game or render thread too long, hitches, traversal or shader stutter (PSO), GC spikes, camera-cut spikes, Lumen, Nanite, VSM, ray tracing, foliage, crowds or Niagara too expensive, async…

scenario-labs/skills · 133 tokens