360 Secure SkillHub
360 安全技能中心

Session Debug Log Investigator

该 Skill 面向 Claude Code 会话故障排查:在需要时启用调试日志,读取近期日志,查找警告、错误及重复失败模式,并结合相关设置文件区分配置问题与运行时缺陷,最后总结可能原因和后续复现步骤。它强调只查看日志尾部、避免加载超大日志,并在刚开启日志时先要求复现。

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wimi321/session-debug-log-investigator
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
session_debug_log_investigator
description
Use when diagnosing a failing or confusing Claude Code session by enabling debug logging, tailing recent logs, and explaining warnings or errors.

Session Debug Log Investigator

Use this skill to diagnose runtime issues in an agent session.

Workflow

  1. Enable debug logging if it is not already active.
  2. Read the latest portion of the debug log instead of the whole file.
  3. Search for warnings, errors, and repeated failure patterns.
  4. Cross-check config files that can explain the behavior.
  5. Summarize likely causes and next reproduction steps.

Guardrails

  • Tail logs instead of loading giant files.
  • Separate configuration issues from product/runtime bugs.
  • If logging was just enabled, ask for reproduction before concluding too much.

Example Requests

  • Help me understand why this Claude Code session is misbehaving.
  • Turn on debug logging and diagnose this issue from the latest logs.

Inputs

  • Issue description
  • Current log availability
  • Relevant settings files

Outputs

  • Error or warning analysis
  • Likely causes
  • Suggested reproduction or next steps

Success Criteria

  • Recent logs were interpreted correctly.
  • The diagnosis distinguishes config vs runtime issues.
  • Follow-up steps are specific.

Non-Goals

  • Reading giant logs in full without need
  • Pretending to diagnose pre-log activity that was never captured

Source Provenance

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