Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

systematic-debugging系统调试

Agent Skill

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

总安装

710

周安装

29

GitHub Stars

1

下载量

230
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill systematic-debugging

简介

systematic-debugging 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于系统调试相关的信息搜集与筛选,可结合来源仓库和原始 README 核验具体用法。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和维护状态。
  • 安装前建议确认是否会触发联网、命令执行或文件读写等操作边界。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Systematic Debugging

Overview

Debugging is investigation, not experimentation. This skill enforces a rigorous 4-phase process — root cause investigation, pattern analysis, hypothesis testing, and architecture questioning — that prevents shotgun debugging and ensures every fix is understood before it is applied.

Announce at start: "I'm using the systematic-debugging skill to investigate this issue."


Core Principle

┌─────────────────────────────────────────────────────────────────┐
│  HARD-GATE: NEVER GUESS. NEVER SHOTGUN DEBUG.                  │
│  NEVER CHANGE CODE WITHOUT UNDERSTANDING WHY IT IS BROKEN.     │
│                                                                 │
│  You are a detective gathering evidence, not a gambler trying   │
│  random fixes. If you are changing code without understanding   │
│  the root cause, STOP immediately.                             │
└─────────────────────────────────────────────────────────────────┘

Phase 1: Root Cause Investigation

Goal: Understand exactly WHAT is happening, not what you think is happening.

Actions

  1. Read the error message carefully. The entire message. Every line. Including the stack trace.
  2. Reproduce the bug. If you cannot reproduce it, you cannot fix it. Find the exact steps.
  3. Gather evidence. Collect:

- Full error message and stack trace - Input that triggers the bug - Expected behavior vs actual behavior - Environment details (versions, config, OS)

  1. Check recent changes. What changed since this last worked?

- Recent commits (git log, git diff) - Dependency updates - Configuration changes - Environment changes

Evidence Gathering Checklist

  • Full error message captured (not truncated)
  • Stack trace read from bottom to top
  • Bug reproduced reliably with specific steps
  • Expected vs actual behavior documented
  • Recent changes reviewed (git log --oneline -20)
  • Relevant logs examined

STOP — HARD-GATE: Do NOT proceed to Phase 2 until:

  • You can reproduce the bug consistently
  • You have the full error message and stack trace
  • You know what changed recently
  • You can describe the bug precisely (not vaguely)

Phase 2: Pattern Analysis

Goal: Narrow down WHERE the problem lives and WHEN it occurs.

Actions

  1. Find working examples. Does this feature work in other contexts? With other inputs? In other environments?
  2. Compare working vs broken. What is different between the case that works and the case that does not?
  3. Check dependencies. Are all required services/libraries/configs present and correct?
  4. Isolate the scope. Can you reproduce with a minimal example? Strip away everything non-essential.

Comparison Matrix

Fill this out to identify the pattern:

FactorWorking CaseBroken CaseDifferent?
Input data
Environment
Configuration
Dependencies
Timing/order
User/permissions
State/context

STOP — HARD-GATE: Do NOT proceed to Phase 3 until:

  • You have identified at least one working case for comparison
  • You have compared working vs broken and identified differences
  • You have isolated the scope to the smallest reproducible case
  • Dependencies have been verified (versions, availability, config)

Phase 3: Hypothesis and Testing

Goal: Form ONE specific, testable hypothesis and verify it with the smallest possible change.

Actions

  1. Form ONE hypothesis. Based on evidence from Phases 1-2, what is the single most likely cause?

- State it explicitly: "The bug occurs because [specific cause]" - If you cannot state it specifically, go back to Phase 1 or 2

  1. Design a minimal test. What is the smallest change to confirm or deny this hypothesis?

- Prefer adding a test case over modifying production code - Prefer logging/assertions over code changes - Prefer reverting a change over writing new code

  1. Apply the change and test.

- Make ONLY the change needed to test the hypothesis - Run the test suite - Observe the result

  1. Evaluate.

- If CONFIRMED: proceed with the fix, write a regression test - If DENIED: record what you learned, form a new hypothesis, return to step 1

Hypothesis Log Template

Hypothesis #1: [description]
Test: [what you did]
Result: CONFIRMED / DENIED
Learning: [what this taught you]

Hypothesis #2: ...

Decision Table: Hypothesis Testing Approach

Hypothesis TypeTesting MethodExample
Recent code change caused itgit bisect or revert commit"The bug was introduced in commit abc123"
Data shape mismatchAdd logging/assertion"The API returns null instead of array"
Race conditionAdd timing logs or serialize"Request B completes before request A"
Configuration errorCompare configs across environments"Production uses different DB host"
Dependency version issueLock to known-good version"Library 2.0 changed the API surface"

STOP — HARD-GATE: Do NOT proceed to Phase 4 unless:

  • You have tested at least 3 hypotheses and ALL were denied
  • Each hypothesis was specific and testable
  • Each test was minimal (one change at a time)
  • You recorded learnings from each failed hypothesis

Phase 4: Architecture Questioning

Goal: If 3+ hypotheses have failed, the problem may be structural. Step back and question assumptions.

This phase is triggered ONLY after Phase 3 has been attempted at least 3 times without success.

Actions

  1. Question your assumptions. What have you been assuming is true that might not be?

- Is the data shaped the way you think it is? - Is the control flow what you expect? - Are the types what you think they are? - Is the API contract what you assumed?

  1. Question the design. Is the current approach fundamentally flawed?

- Is there a race condition in the design? - Is there a state management problem? - Is there an incorrect abstraction? - Are responsibilities misplaced?

  1. Consider redesign. Sometimes the fix is not a patch but a restructuring.

- Can you simplify the design to eliminate the bug class entirely? - Is there a pattern that handles this case better? - Should you replace rather than fix?

  1. Seek external input. If you are stuck:

- Explain the problem to someone else (rubber duck debugging) - Search for known issues in dependencies - Check if others have encountered similar problems

STOP — HARD-GATE: Do NOT continue without:

  • Written list of assumptions that were questioned
  • Explicit decision: patch the current design OR redesign
  • If redesigning: a plan before implementing
  • If patching: a new hypothesis informed by the assumption review

Debugging Decision Flowchart

Error encountered
    |
    v
Can you reproduce it?
    |
    +-- NO --> Gather more information (logs, user reports, monitoring)
    |          Try different inputs, environments, timing
    |          Do NOT proceed until reproducible
    |
    +-- YES -> Read the FULL error message and stack trace
               |
               v
         Is the cause obvious from the error?
               |
               +-- YES -> Form hypothesis, test it (Phase 3)
               |          Still write a regression test
               |
               +-- NO --> Complete Phase 1 evidence gathering
                          |
                          v
                    Find working case for comparison (Phase 2)
                          |
                          v
                    Identify differences
                          |
                          v
                    Form and test hypotheses (Phase 3)
                          |
                          +-- Fixed --> Write regression test, verify
                          |
                          +-- 3+ failed hypotheses --> Phase 4

Red Flags Table

Red FlagWhat It MeansAction
Changing code without understanding the bugShotgun debuggingGo back to Phase 1
Fix works but you do not know whyAccidental fix, likely to regressInvestigate until you understand
Same bug keeps coming backRoot cause not addressedGo to Phase 4, question design
Fix causes new bugs elsewhereUnexpected couplingMap dependencies before proceeding
"It works on my machine"Environment differenceGo to Phase 2, comparison matrix
Fix requires more than 20 linesMight be a design issueGo to Phase 4
Debugging for 30+ minutesTunnel visionTake a break, re-read evidence from Phase 1
Reading the same code repeatedlyMissing something fundamentalGet a fresh perspective, explain aloud
Multiple causes seem equally likelyInsufficient investigationGo back to Phase 1, gather more evidence

Anti-Patterns / Common Mistakes

Anti-PatternWhy It Is WrongCorrect Approach
Changing random things to see if bug goes awayWastes time, introduces new bugsForm a hypothesis first
Adding try/catch to suppress the errorHides the real problemFix the root cause
Rewriting the feature from scratchNuclear option is rarely neededIsolate and fix the specific issue
Blaming the framework/library without evidenceUsually your code is wrongProve the framework bug with minimal repro
Skipping the regression test after fixingBug will returnWrite the test, always
Fixing symptoms instead of root causesPatches accumulate, system degradesTrace to the actual cause
Debugging for 45+ minutes without stepping backTunnel vision reduces effectivenessTake a break, re-read Phase 1 evidence
Ignoring error messages or stack tracesThe answer is often in the errorRead every line of the error

Integration Points

SkillRelationship
test-driven-developmentEvery bug fix MUST include a regression test (RED-GREEN cycle)
verification-before-completionAfter fixing a bug, verify with fresh evidence
resilient-executionWhen debugging during task execution, pause task, complete debugging, resume
code-reviewReview the fix for completeness and side effects
self-learningRecord new debugging patterns in learned-patterns.md
acceptance-testingVerify fix does not break acceptance criteria

Quick Reference: What NOT To Do

  1. Do NOT change random things and see if the bug goes away
  2. Do NOT add try/catch to suppress the error
  3. Do NOT rewrite the feature from scratch as a first resort
  4. Do NOT blame the framework/library without evidence
  5. Do NOT skip writing a regression test after fixing
  6. Do NOT fix symptoms instead of root causes
  7. Do NOT debug for more than 45 minutes without stepping back
  8. Do NOT ignore error messages or stack traces

Skill Type

RIGID — The 4-phase process is mandatory and must be followed in order. Each phase has a HARD-GATE that must be satisfied before proceeding. Never change code without understanding why it is broken.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.64%
按下载量换算80

Claude

28.47%
按下载量换算65

Cursor

17.23%
按下载量换算40

Gemini CLI

9.95%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills