360 Secure SkillHub
360 安全技能中心

Stuck Session Diagnosis

核心功能是针对卡顿、冻结的本地Claude Code会话,按流程排查候选进程的CPU、内存、状态等指标,检查相关日志后生成简洁可上报的诊断报告。典型场景为其他Claude会话出现异常缓慢、冻结时。输入需提供症状、进程状态,可选目标PID;输出包含诊断摘要、进程排查证据及可上报报告,默认不进行进程操作。

wimi321
wimi321
热度 39.83
最近更新 2026-05-11 17:39:39
分类:开发依赖:代码执行 / 内部调用大模型应用场景:调试排错 / DevOps / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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.