用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mkusaka/ccskills --skill stuck-slash-command命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | stuck-slash-command |
| description | Diagnoses frozen or slow Claude Code sessions |
| metadata | {"originalName":"Skill: /stuck slash command","ccVersion":"2.1.242","sourceUrl":"https://github.com/Piebald-AI/claude-code-system-prompts/blob/main/system-prompts/skill-stuck-slash-command.md","source":{"owner":"Piebald-AI","repo":"claude-code-system-prompts","ref":"main","path":"system-prompts/skill-stuck-slash-command.md"}} |
The user thinks another Claude Code session on this machine is frozen, stuck, or very slow. Investigate and post a report to #claude-code-feedback.
Scan for other Claude Code processes (excluding the current one — PID is in process.pid but for shell commands just exclude the PID you see running this prompt). Process names are typically claude (installed) or cli (native dev build).
Signs of a stuck session:
D (uninterruptible sleep) — often an I/O hang. The state column in ps output; first character matters (ignore modifiers like +, s, <).T (stopped) — user probably hit Ctrl+Z by accident.Z (zombie) — parent isn't reaping.git, node, or shell subprocess can freeze the parent. Check pgrep -lP <pid> for each session.List all Claude Code processes (macOS/Linux):
ps -axo pid=,pcpu=,rss=,etime=,state=,comm=,command= | grep -E '(claude|cli)' | grep -v grep
Filter to rows where comm is claude or (cli AND the command path contains "claude").
For anything suspicious, gather more context:
pgrep -lP <pid>ps -p <child_pid> -o command=~/.claude/debug/<session-id>.txt (the last few hundred lines often show what it was doing before hanging)Consider a stack dump for a truly frozen process (advanced, optional):
sample <pid> 3 gives a 3-second native stack sampleOnly post to Slack if you actually found something stuck. If every session looks healthy, tell the user that directly — do not post an all-clear to the channel.
If you did find a stuck/slow session, post to #claude-code-feedback (channel ID: C07VBSHV7EV) using the Slack MCP tool. Use ToolSearch to find slack_send_message if it's not already loaded.
Use a two-message structure to keep the channel scannable:
ts as thread_ts. Include:
sample output if you captured itIf Slack MCP isn't available, format the report as a message the user can copy-paste into #claude-code-feedback (and let them know to thread the details themselves).