본문으로 건너뛰기
cccskills
무료GitHub에 공개

debug

Debug a problem in claude-desktop-extra by pulling the right local evidence - the most recent local-agent-mode session transcript (your last prompt + the model's tool calls/errors) and the Claude Desktop logs - and asking you for anything else worth collecting for the specific issue. Invoke as "/debug <short description of what's broken>".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

patrickjaja/claude-desktop-extra스타 696(GitHub 696 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md7.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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.

Which tools the CLI actually exposed to the model (a missing SendUserMessage / present_files / send_message explains "response never rendered"):

python3 -c "
import json
for l in open('$AUDIT'):
    d=json.loads(l)
    if d.get('tools') and len(d['tools'])>10:
        names=[t if isinstance(t,str) else t.get('name','?') for t in d['tools']]
        print(f'Tools ({len(names)}):', names)
        for t in ['SendUserMessage','present_files','send_message']:
            print(' ',t,[n for n in names if t in n] or 'MISSING')
        break
"

Key insight: audit.jsonl is what the model saw and did; main.log is how the bridge processed the model's output. Check both.

2. Claude Desktop logs (whatever exists - globbed, not hardcoded)

ls -la "$CFG"/logs/ 2>/dev/null
rg -i -a 'error|exception|fatal|denied|ENOENT|EACCES' "$CFG"/logs/ 2>/dev/null | tail -40

Known logs (presence varies): main.log (Electron main), cowork_vm_node.log (Cowork sessions), mcp.log + mcp-server-*.log, claude.ai-web.log (BrowserView), plus others like ssh.log, unknown-window.log. Tail the one(s) relevant to "$ARGUMENTS". Also check crash reports: ls -la "$CFG"/crash* 2>/dev/null. ($CFG resolved in step 0 - Claude-3p under managed-settings.json, else Claude.)

Dispatch-specific (if relevant)

grep -a 'DISPATCH-FWD.*PASSING\|DISPATCH-TRANSFORM\|DISPATCH-WRITE' "$CFG"/logs/main.log | tail -20
grep -a 'Permission.*denied' "$CFG"/logs/main.log | tail -10

3. Cowork backend (if Cowork/Dispatch is implicated)

Cowork runs on the .deb's bundled native VM backend (cowork-linux-helper + virtiofsd + smol-bin + QEMU/OVMF; requires /dev/kvm). The old claude-cowork-service Go daemon is deprecated - there is no separate socket/systemd unit to poke. The backend's Electron-side lifecycle log is cowork_vm_node.log:

grep -a 'Using Claude VM spawn\|Spawn succeeded\|vmStarted\|disallowedTools\|virtualization_not_available' \
  "$CFG"/logs/cowork_vm_node.log 2>/dev/null | tail -20

If Cowork won't start, confirm the host has /dev/kvm + /dev/vhost-vsock (the backend hard-requires both).

4. Ask the user for what you can't collect

Based on "$ARGUMENTS", use AskUserQuestion to request anything missing - only ask for what the task actually needs. Examples to consider:

  • Exact repro steps + which feature (Chat/Code/Cowork/Dispatch/Computer Use/3P/Quick Entry).
  • Session/distro: output of claude-desktop --diagnose and the [claude-cu] diagnostics: lines from terminal (for Computer Use / Wayland issues).
  • Whether to reproduce the issue now while tailing cowork_vm_node.log (step 3).
  • A screenshot / the exact error text shown in the UI.
  • For stale-state bugs: permission to clear "$CFG"/local-agent-mode-sessions/ (the model can otherwise "remember" past errors; $CFG as resolved in step 0).

5. Diagnose

State the hypothesis grounded in the evidence (cite the log line / audit record / file:line). If it's a patch/upstream issue, point at the patch and suggest /fresh-upstream + /update. Propose the fix; apply only if the user asks. Cross-reference memory (~/.claude/projects/-home-patrickjaja-development-claude-desktop-extra/memory/, e.g. dispatch-linux-debug, cowork-crash-debug) for prior findings before concluding.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

3p

무료

Reference for the 3p / enterprise / inference-gateway deployment of Claude Desktop on Linux - how /etc/claude-desktop/managed-settings.json is read, what "3p mode" changes (separate ~/.config/Claude-3p userData, hidden Chat tab, the false VM-download banner), how Cowork still runs under it, which hardcoded paths are safe vs split under the -3p switch, and how to verify it all from logs. Use when working on managed-settings.json, inferenceProvider/gateway/Bedrock/Vertex configs, the 3p setup SPA (ion-dist), the Claude-3p directory, or debugging managed-deployment Cowork.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

patrickjaja/claude-desktop-extra6962026년 10월 26일 업데이트

Explains the purpose, features, and architecture of claude-desktop-extra - which repackages Anthropic's official Claude Desktop Linux .deb for Arch/Fedora/RHEL/Nix/AppImage and layers Linux-only extras (Computer Use, themes, multi-profile, Quick Entry) on top via surgical JS patches. Use when onboarding, writing docs/READMEs, explaining what the project does, or reasoning about how the official build and our patches fit together.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

patrickjaja/claude-desktop-extra6962026년 10월 26일 업데이트

audit

무료

Full review of the claude-desktop-extra project - patches vs the official Linux .deb (still needed? new ones needed? did the surrounding code change?), docs accuracy, Linux compatibility across the distro/session matrix, and runtime logs. Orchestrates a team of sub-agents and produces a consolidated report with solution approaches.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

patrickjaja/claude-desktop-extra6962026년 10월 26일 업데이트

Take one or more claude-desktop-extra GitHub bug reports from triage to a shipped fix - read, classify ours vs upstream, reproduce without touching the user's running app, spec with the maintainer, implement and review in parallel, verify live, commit, release, and close the loop with the reporter. Self-improving - every run ends by folding what it learned back into this file. Invoke as "/check-issue <issue numbers or URLs>".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

patrickjaja/claude-desktop-extra6962026년 10월 26일 업데이트

comment

무료

Draft (and after approval, post) a reply on a claude-desktop-extra GitHub issue in this project's house voice - short, factual, friendly, no self-blame and no speculation - ending in one copy-pasteable command block that asks the reporter for the evidence we still need. Invoke as "/comment <issue number>".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

patrickjaja/claude-desktop-extra6962026년 10월 26일 업데이트

deploy

무료

Trigger the claude-desktop-extra Build & Release GitHub Actions pipeline (build-and-release.yml). With no argument the skill inspects the changes since the last release and decides force_rebuild itself; "/deploy force" / "/deploy no-force" override.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

patrickjaja/claude-desktop-extra6962026년 10월 26일 업데이트

patrickjaja의 스킬 모두 보기

이 스킬의 문제 신고