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

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.

agentmods
npx agentmods add skills/kugamon/salesforce-core-skills/sf-debug
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00081 $0.01265
Sonnet 5 $0.00032 $0.00506
Haiku 4.5 $0.00016 $0.00253

Measured 5d ago against content hash 044f0dfc0c3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 5d 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. 5d 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 (0 stars, last pushed 6d ago), with no licence file. It adds 161 tokens to every session and 2,530 once invoked, about $0.0008 per session on Opus 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

sf-debug

Debug and troubleshoot Salesforce applications using debug logs, governor limit monitoring, error diagnosis, and performance profiling. Use when analyzing debug logs, diagnosing governor limit violations, interpreting stack traces, resolving common Salesforce errors, or profiling Apex performance. Activate on .log…

Clientell-Ai/salesforce-skills · 89 tokens

nebula-logger-instrumentation

Use this skill when the user wants to add or update Nebula Logger instrumentation in Apex, LWC, Aura, Flow, or OmniStudio. Covers logging APIs, save patterns, record association, scenarios, tags, async transaction linking, and save method selection.

jongpie/NebulaLogger · 60 tokens

cocoreview

CocoReview — structured code review with six-severity findings vocabulary, progressive disclosure architecture, and universal anti-pattern baseline. Invoked via $review [file] [--complexity] [--security] [--architecture] [--language ].

Snowflake-Labs/cocoplus · 57 tokens

meter-reconcile

Skill-native CocoMeter transcript reconciliation and adapter canary. Replaces the former meter-reconcile and adapter-self-test runtime helpers.

Snowflake-Labs/cocoplus · 29 tokens

afrexai-performance-engineering

Complete performance engineering system — profiling, optimization, load testing, capacity planning, and performance culture. Use when diagnosing slow applications, optimizing code/queries/infrastructure, load testing before launch, planning capacity, or building performance into CI/CD. Covers Node.js, Python, Go…

LeoYeAI/openclaw-master-skills · 71 tokens

agent-anti-false-completion

用于减少 AI Agent"没做却说做了""没验证却说完成了"等假完成行为的可靠性技能。通过任务约束、结果校验和执行规范,帮助 Agent 在复杂任务中保持真实执行、明确验证与可信交付。适用于代码、调试、研究、写作、规划、运维、API 集成、数据分析、部署等所有任务类型。.

LeoYeAI/openclaw-master-skills · 95 tokens