Borrowing it
Nothing to install: this file belongs to patrickjaja/claude-desktop-extra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/patrickjaja/claude-desktop-extra/master/.claude/skills/debug/SKILL.mdgit clone --depth 1 https://github.com/patrickjaja/claude-desktop-extraWrote 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.
[](https://agentmods.dev/skills/patrickjaja/claude-desktop-extra/debug)<a href="https://agentmods.dev/skills/patrickjaja/claude-desktop-extra/debug"><img src="https://agentmods.dev/badge/skills/patrickjaja/claude-desktop-extra/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.
<a href="https://agentmods.dev/skills/patrickjaja/claude-desktop-extra/debug"><img src="https://agentmods.dev/badge/skills/patrickjaja/claude-desktop-extra/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.02022 |
| Opus 5.5 | $0.00027 | $0.00809 |
| Sonnet 5.5 | $0.00014 | $0.00404 |
| Haiku 4.5 | $0.00007 | $0.00202 |
Grade A, and why
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.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debug - collect evidence, then diagnose
The issue to debug: $ARGUMENTS
You are debugging the patched Claude Desktop. Cowork runs on the .deb's bundled native VM backend (the old claude-cowork-service daemon is deprecated). Gather the relevant local evidence below (skip what's clearly irrelevant to "$ARGUMENTS"), form a hypothesis, then ask the user for anything you can't collect yourself. Read /architecture for how the pieces fit and /linux for session/CU specifics if relevant.
0. Resolve the config/log dir FIRST (1p vs 3p) - or you read stale evidence
The runtime dir is conditional: 3P mode relocates everything to ~/.config/Claude-3p/. 3P is active when an
inferenceProvider is configured - via /etc/claude-desktop/managed-settings.json, Settings -> Extra -> Deployment,
or --3p. The /etc file merely existing (e.g. only managedMcpServers) stays 1P. Resolve once, use $CFG below.
# 1. a running named profile passes its dir explicitly (match the app binary, not shells quoting this text)
CFG=
for p in $(pgrep -f -- '--user-data-dir='); do
readlink "/proc/$p/exe" 2>/dev/null | grep -q claude-desktop || continue
CFG=$(tr '\0' '\n' < "/proc/$p/cmdline" | sed -n 's/^--user-data-dir=//p' | head -1); break
done
# 2. else: policy-file provider, or the 3P dir's main.log is the fresher one (Deployment panel / --3p)
if [ -z "$CFG" ]; then
if grep -qs '"inferenceProvider"' /etc/claude-desktop/managed-settings.json \
|| [ ~/.config/Claude-3p/logs/main.log -nt ~/.config/Claude/logs/main.log ]; then
CFG=~/.config/Claude-3p; else CFG=~/.config/Claude; fi
fi
grep -a '3P mode active' "$CFG/logs/main.log" | tail -1 # confirms 3P when CFG is Claude-3p
echo "using CFG=$CFG"
1. Last local-agent-mode session transcript (the single source of truth for Cowork/Dispatch/agent runs)
audit.jsonl records exactly what the model saw and did. Find the newest one and read the user's last prompt + the assistant tool calls + any errors:
AUDIT=$(find "$CFG"/local-agent-mode-sessions -name audit.jsonl -printf '%T@ %p\n' 2>/dev/null | sort -n | tail -1 | cut -d' ' -f2)
echo "newest audit: $AUDIT"
python3 -c "
import json,sys
p='$AUDIT'
if not p: sys.exit('no audit.jsonl found')
rows=[json.loads(l) for l in open(p) if l.strip()]
# user's first/last prompt
users=[r for r in rows if r.get('type')=='user']
def text(m):
c=(m or {}).get('content')
if isinstance(c,str): return c
if isinstance(c,list): return ' '.join(x.get('text','') for x in c if isinstance(x,dict))
return str(c)
if users: print('FIRST USER PROMPT:', text(users[0].get('message'))[:500])
if len(users)>1: print('LAST USER PROMPT:', text(users[-1].get('message'))[:500])
# tool calls + errors
for i,r in enumerate(rows):
t=r.get('type')
if t=='assistant':
for c in (r.get('message',{}).get('content') or []):
if isinstance(c,dict) and c.get('type')=='tool_use': print(f'[{i}] tool_use: {c.get(\"name\")} {str(c.get(\"input\",{}))[:120]}')
elif t=='user' and ('Error' in str(r) or 'Permission' in str(r) or 'denied' in str(r)):
print(f'[{i}] error/result: {str(r)[:200]}')
elif t=='result': print(f'[{i}] RESULT: {str(r.get(\"result\",r))[:200]}')
"
If "$ARGUMENTS" is about dispatch/cowork/skills not working, this transcript usually shows the failing tool call, a permission denial, or a wrong path.
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.
- 1mo ago Changed · +25 lines 66ead2e3be2d
- 2mo ago First seen · 89 lines · 68 tokens per session scan A c021edacc151
debug is a skill published in the GitHub repository patrickjaja/claude-desktop-extra (726 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 2,022 once invoked, about $0.0003 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-30.
debug compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debugpatrickjaja/claude-desktop-extra | Skill | 726 | yesterday | MIT | A | 68 | Claude Code |
| sipcode-regressAnuj7411/sipcode | Skill | 46 | 21d ago | MIT | A | 105 | Claude Code |
| perf-theory-gatherercomposio-community/awesome-claude-plugins | Skill | 2.0k | yesterday | none | A | 20 | Claude Code |
| perf-code-pathscomposio-community/awesome-claude-plugins | Skill | 2.0k | yesterday | none | A | 21 | Claude Code |
| perf-profilercomposio-community/awesome-claude-plugins | Skill | 2.0k | yesterday | none | A | 25 | Claude Code |
| perf-theory-testercomposio-community/awesome-claude-plugins | Skill | 2.0k | yesterday | none | A | 16 | Claude Code |
| wiki-linttboome33/obsidian-mcp-router | Skill | 1 | 5d ago | Apache-2.0 | A | 119 | Claude Code |