360 Secure SkillHub
360 安全技能中心

Stuck Session Diagnosis

用于排查另一 Claude Code 会话卡死、冻结或异常缓慢的情况:列出候选进程,检查 CPU、RSS、状态、运行时长与子进程,复采样确认问题持续存在,必要时查看调试日志,最终给出简明、可升级处理的诊断报告。仅做诊断,默认不终止或向进程发送信号。

分类:开发
wimi321
wimi321
热度 27.39
最近更新 2026-05-11 17:39:39

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wimi321/stuck-session-diagnosis
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
stuck_session_diagnosis
description
Use when another Claude Code session appears frozen, stuck, or abnormally slow and needs process-level diagnosis and reporting.

Stuck Session Diagnosis

Use this skill to investigate slow or frozen local agent sessions.

Workflow

  1. List candidate agent processes.
  2. Check CPU, RSS, state, uptime, and child processes.
  3. Sample suspicious processes again to confirm sustained issues.
  4. Inspect related debug logs when possible.
  5. Produce a concise diagnosis and escalation-ready report.

Guardrails

  • Diagnostic only: do not kill or signal processes unless asked.
  • Confirm suspicious metrics are sustained, not transient.
  • Keep the final report focused on actionable symptoms.

Example Requests

  • Find out why another Claude session on this machine is frozen.
  • Inspect local agent processes and tell me if one is hung.

Inputs

  • Observed symptom
  • Process state
  • Optional target PID

Outputs

  • Diagnosis summary
  • Evidence from process inspection
  • Escalation-ready report

Success Criteria

  • Suspicious sessions were confirmed rather than guessed.
  • Supporting process data was captured.
  • The report is concise and actionable.

Non-Goals

  • Killing processes by default
  • Reporting transient blips as confirmed hangs

Source Provenance

Derived from src/skills/bundled/stuck.ts.