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

debugging调试

Agent Skill

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

总安装

753

周安装

32

GitHub Stars

35

下载量

264
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ratacat/claude-skills --skill debugging

简介

debugging 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位结果。
  • 可结合来源仓库和原始 README 继续核验具体用法,建议确认权限范围。
  • 安装命令:npx skills add https://github.com/ratacat/claude-skills --skill debugging
  • 安装前建议检查维护状态及是否涉及文件读写或网络请求。

SKILL.md

Debugging

Quickstart

  1. Capture exact repro, scope, and recent changes
  2. Isolate components/files; trace path to failure
  3. Research exact error; check official docs
  4. Compare failing vs working patterns; form a testable hypothesis
  5. Verify with minimal test; apply minimal fix across all instances; validate

When to Use This Skill

Use debugging when:

  • A bug has no obvious cause or has been "fixed" before but returned
  • Error messages are unclear or misleading
  • Multiple attempted fixes have failed
  • The issue might affect multiple locations in the codebase
  • Understanding the root cause is critical for proper resolution

Skip this skill for:

  • Simple syntax errors with obvious fixes
  • Trivial typos or missing imports
  • Well-understood, isolated bugs with clear solutions

Core Anti-Patterns to Avoid

Based on documented failures in AI debugging, explicitly avoid:

  1. Circular Reasoning: Never propose the same fix twice without learning why it failed
  2. Premature Victory: Always verify fixes were actually implemented and work
  3. Pattern Amnesia: Maintain awareness of established code patterns throughout the session
  4. Context Overload: Use the 50% rule - restart conversation when context reaches 50%
  5. Symptom Chasing: Resist fixing error messages without understanding root causes
  6. Implementation Before Understanding: Never jump to code changes before examining existing patterns

UNDERSTAND (10-step checklist)

  • Understand: capture exact repro, scope, and recent changes
  • Narrow: isolate components/files; trace path to failure
  • Discover: research exact error (WebSearch → Parallel Search, Context7:get-library-docs)
  • Examine: compare against known-good patterns in the codebase
  • Reason: use SequentialThinking:process_thought and 5 Whys to reach root cause
  • Synthesize: write a falsifiable hypothesis with predictions
  • Test: add logs/tests to confirm the mechanism
  • Apply: minimal fix for root cause, across all occurrences, following patterns
  • Note: record insights, warnings, decisions
  • Document: update comments/docs/tests as needed

Progress Tracking with TodoWrite

Use TodoWrite to track debugging progress through the UNDERSTAND checklist:

  1. At start: Create todos for each applicable step: ☐ U - Capture exact repro and scope ☐ N - Isolate failing component ☐ D - Research error message ☐ E - Compare with working patterns ☐ R - Root cause analysis (5 Whys) ☐ S - Write falsifiable hypothesis ☐ T - Verify with minimal test ☐ A - Apply fix across all occurrences ☐ N - Record insights ☐ D - Update docs/tests
  2. During debugging: Mark steps in_progress → completed as you work through them
  3. When stuck: TodoWrite makes it visible which step is blocked - helps identify if you're skipping steps or going in circles
  4. Skip steps only if: Bug is simple enough that checklist is overkill (see "Skip this skill for" above)

Tool Decision Tree

  • Know exact text/symbol? → grep
  • Need conceptual/semantic location? → codebase_search
  • Need full file context? → read_file
  • Unfamiliar error/behavior? → Context7:get-library-docs, then WebSearch → Parallel Search
  • Complex multi-hypothesis analysis? → SequentialThinking:process_thought

Context Management

  • Restart at ~50% context usage to avoid degraded reasoning
  • Before restart: summarize facts, hypothesis, ruled-outs, next step
  • Start a fresh chat with just that summary; continue

Decision Framework

IF same fix proposed twice → Stop; use SequentialThinking:process_thought IF error is unclear → Research via WebSearch → Parallel Search; verify with docs IF area is unfamiliar → Explore with codebase_search; don't guess IF fix seems too easy → Confirm it addresses root cause (not symptom) IF context is cluttered → Restart at 50% with summary IF multiple hypotheses exist → Evaluate explicitly (evidence for/against) IF similar code works → Find and diff via codebase_search/read_file IF declaring success → Show changed lines; test fail-before/pass-after IF fix spans multiple files → Search and patch all occurrences IF library behavior assumed → Check Context7:get-library-docs

Quality Checks Before Finishing

Before declaring a bug fixed, verify:

  • Root cause identified and documented
  • Fix addresses cause, not symptom
  • All occurrences fixed (searched project-wide)
  • Follows existing code patterns
  • Original symptom eliminated
  • No regressions introduced
  • Tests/logs verify under relevant conditions
  • Docs/tests updated (comments, docs, regression tests)

References

  • reference/root-cause-framework.md
  • reference/antipatterns.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

30.55%
按下载量换算81

Antigravity

24.38%
按下载量换算64

trae

16.65%
按下载量换算44

OpenCode

12.36%
按下载量换算33

Gemini CLI

6.99%
按下载量换算18

windsurf

3.39%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills