Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

systematic-debugging系统调试

Agent Skill

systematic-debugging 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

588

周安装

25

GitHub Stars

8

下载量

206
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:systematic-debugging(系统调试)
来源仓库:https://github.com/vamseeachanta/workspace-hub
仓库路径:skills/systematic-debugging
安装命令:
npx skills add https://github.com/vamseeachanta/workspace-hub --skill systematic-debugging
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vamseeachanta/workspace-hub --skill systematic-debugging

简介

用于查找、检索和筛选相关信息,适合根据关键词、任务场景或来源线索快速定位候选结果。

  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 安装命令:npx skills add https://github.com/vamseeachanta/workspace-hub --skill systematic-debugging
  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

SKILL.md

Systematic Debugging Skill

Overview

This skill provides a structured four-phase debugging framework emphasizing root cause discovery before attempting fixes. Core principle: "Random fixes waste time and create new bugs. Quick patches mask underlying issues."

Quick Start

  1. Investigate - Gather evidence, reproduce consistently
  2. Analyze - Compare with working patterns
  3. Hypothesize - Form and test specific theories
  4. Implement - Fix with test coverage

When to Use

  • Bug reports requiring investigation
  • Test failures with unclear causes
  • Production incidents
  • Performance regressions
  • Integration failures
  • Any debugging that requires more than 5 minutes

The Four Phases

Phase 1: Root Cause Investigation

Objective: Understand the problem completely before attempting any fix.

Steps:

  1. Examine error messages thoroughly
  2. Reproduce the issue consistently
  3. Review recent changes (commits, configs, dependencies)
  4. Gather diagnostic evidence (logs, traces, metrics)
  5. For multi-component systems, add instrumentation at each boundary

Questions to answer:

  • What exactly is failing?
  • When did it start failing?
  • What changed recently?
  • Can I reproduce it reliably?

Phase 2: Pattern Analysis

Objective: Find working examples and understand differences.

Steps:

  1. Locate working examples in the codebase
  2. Compare against reference implementations completely
  3. Identify differences systematically
  4. Understand all dependencies

Key comparisons:

  • Working vs. broken code paths
  • Expected vs. actual behavior
  • Known good state vs. current state

Phase 3: Hypothesis and Testing

Objective: Form and validate theories before changing code.

Steps:

  1. Formulate a specific hypothesis
  2. Design a test for the hypothesis
  3. Test with minimal changes (one variable at a time)
  4. Verify results before proceeding

Hypothesis format: "The bug occurs because [condition] when [trigger], which causes [symptom]."

Phase 4: Implementation

Objective: Fix the root cause with proper verification.

Steps:

  1. Create a failing test case reproducing the bug
  2. Implement a single fix addressing the root cause
  3. Verify the test passes
  4. Verify no other tests broke
  5. Document the fix

Critical Safeguards

Hard Stop Rule

If >= 3 fixes fail: STOP and question the architecture.

When multiple fixes fail, the issue indicates deeper structural problems requiring discussion rather than continued symptom-patching.

Red Flags (Restart Process)

  • Proposing solutions before investigation
  • Attempting multiple simultaneous fixes
  • Assuming without verification
  • Skipping reproduction step
  • "It should work" without evidence

Debugging Anti-Patterns

Anti-PatternProblemCorrect Approach
Shotgun debuggingRandom changes hoping something worksSystematic investigation
Printf debugging onlyIncomplete pictureStructured instrumentation
Blame the frameworkAvoids understandingVerify framework behavior
"Works on my machine"Environment assumptionsDocument exact repro steps
Quick patchHides root causeFind and fix actual cause

Instrumentation Strategies

Logging Strategy

1. Entry/exit of suspected functions
2. Input/output values at boundaries
3. State changes at key points
4. Timing information for performance issues

Boundary Tracing

For multi-component systems:

[Input] -> [Component A] -> [Component B] -> [Output]
   ^            ^               ^              ^
   |            |               |              |
 Check 1     Check 2         Check 3       Check 4

Add verification at each boundary to isolate failure point.

Best Practices

Do

  1. Reproduce before investigating
  2. Document investigation steps
  3. Test one hypothesis at a time
  4. Write regression test for every bug fix
  5. Share findings with team
  6. Update documentation when environment-related

Don't

  1. Jump to conclusions
  2. Make multiple changes at once
  3. Fix symptoms instead of causes
  4. Skip the hypothesis step
  5. Merge fixes without tests
  6. Ignore intermittent failures

Error Handling

SituationAction
Cannot reproduceGather more context, check environment differences
Multiple potential causesIsolate and test each separately
Fix breaks other thingsRevert, investigate dependencies
Root cause unclear after investigationEscalate, add more instrumentation

Metrics

MetricTargetDescription
First-fix success rate>80%Fixes that resolve issue first time
Regression rate<5%Bug fixes causing new bugs
Investigation time ratio>60%Time spent investigating vs. coding
Documentation rate100%Bugs documented with root cause

Debugging Checklist

  • Issue reproduced consistently
  • Recent changes reviewed
  • Error messages fully understood
  • Working comparison found
  • Hypothesis documented
  • Single-variable test performed
  • Root cause identified
  • Failing test written
  • Fix implemented
  • All tests pass
  • Fix documented

Related Skills


Version History

  • 1.0.0 (2026-01-19): Initial release adapted from obra/superpowers

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.35%
按下载量换算60

windsurf

19.36%
按下载量换算40

trae

15.86%
按下载量换算33

OpenCode

12.77%
按下载量换算26

Cursor

8.16%
按下载量换算17

weavefox

3.05%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills