From ccdebug
List live Claude Code sessions on this machine with pid, name, status, sid, cwd, and current tweet-length summary. Invoked only via /ccdebug:ccdebug.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ccdebug:ccdebugThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Print a one-row-per-session table summarizing every live Claude Code CLI session
Print a one-row-per-session table summarizing every live Claude Code CLI session
on this machine, by reading the ccwatch data layer under ~/.claude/.
Only when the user explicitly runs /ccdebug:ccdebug. Not proactive.
Do not invoke from other tasks.
A markdown table with these columns, in this order:
| pid | name | status | sid | cwd | tweet |
~/.claude/sessions/<pid>.json.name field from ~/.claude/state/launch/<pid>.json; - if missing.status field from sessions/<pid>.json (idle / busy / waiting).sessionId from sessions/<pid>.json.cwd from sessions/<pid>.json.~/.claude/state/summaries/<sid>.txt if present and
non-empty; else (no summary yet).Sort rows by status: waiting first, then busy, then idle. Things needing
attention go on top.
ls ~/.claude/sessions/*.json to enumerate candidates.entrypoint != "cli" (print-mode sdk-cli rows have status: null).kill -0 <pid> (silently). Skip if it fails -- stale file from a
SIGKILL'd process.sessionId (camelCase in this file), status, cwd.~/.claude/state/launch/<pid>.json -- pull name. If the file is
missing, use -.~/.claude/state/summaries/<sessionId>.txt (use the camelCase
sessionId from the sessions file, not snake_case).(no summary yet).Use a small Python one-liner (python3 -c '...') for the JSON reads. ccwatch
deliberately avoids a jq dependency.
No live Claude Code sessions. -- no table.~/.claude/state/ missing: print one line:
ccwatch state directory not found; hooks have not run yet. Do not error out.launch/<pid>.json: use - in the name column, do not warn.(no summary yet) in tweet column.claude -p, filtered out above as sdk-cli anyway) get pid files.~/.claude/. This skill is read-only.claude or invoke the harness.~/.claude/tasks/ -- ccwatch no longer reads task shards
(CLAUDE.md architecture invariant 1). The tweet comes only from summaries/.npx claudepluginhub xdg/ccwatch --plugin ccdebugProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.