Token导航 LogoToken导航

Agent Skill · 研究检索

systematic-debugging(系统调试)

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

systematic-debugging 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 9,930。

总安装 13,363周安装 699GitHub Stars 公开资料未说明下载 4,313核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add chunkytortoise/enterprisehub --skill "systematic-debugging"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于系统化定位与修复程序错误。systematic-debugging 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合结合日志、堆栈跟踪与单元测试缩小问题范围。使用时需复现问题并隔离最小可验证案例。避免盲目修改代码,每次变更后应运行回归测试。输出应包含根因分析与修复方案对比。

来源仓库内路径:skills/systematic-debugging

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add chunkytortoise/enterprisehub --skill "systematic-debugging";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

systematic-debugging 怎么安装?

在终端执行 npx skills add chunkytortoise/enterprisehub --skill "systematic-debugging"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

systematic-debugging 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

systematic-debugging 需要什么权限?

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

systematic-debugging 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

systematic-debugging 用的人多吗?

公开数据是累计安装 13,363 次,近一周安装 699 次,下载 4,313 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

systematic-debugging 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
systematic-debugging

系统调试 · 本页

13,363—需要联网MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
Systematic Debugging
description
This skill should be used when the user asks to "debug this issue", "find the root cause", "investigate the bug", "systematic debugging", "troubleshoot the problem", or needs help with systematic problem-solving and root cause analysis.
version
1.0.0

Systematic Debugging: 4-Phase Root Cause Analysis

Overview

Systematic debugging follows a structured 4-phase approach to identify, isolate, and resolve issues efficiently. This methodology prevents the common debugging trap of random changes and ensures comprehensive problem-solving with reproducible results.

The 4-Phase Debugging Process

Phase 1: REPRODUCE - Isolate the Problem

Establish a reliable way to reproduce the issue consistently.

Objectives:

  • Create minimal reproduction case
  • Document exact steps to trigger the bug
  • Identify environmental factors
  • Establish success/failure criteria

Key Questions:

  • What exactly happens vs. what should happen?
  • Under what conditions does it occur?
  • Can you reproduce it consistently?
  • What's the minimal case that shows the problem?

Phase 2: GATHER - Collect Evidence

Systematically collect all available information about the issue.

Data Sources:

  • Error messages and stack traces
  • Log files and application output
  • System metrics and performance data
  • User reports and behavioral patterns
  • Code changes and deployment history

Evidence Types:

  • Direct evidence: Error messages, exceptions, failures
  • Circumstantial evidence: Timing, environment, patterns
  • Historical evidence: When did it start? What changed?

Phase 3: HYPOTHESIZE - Generate Theories

Develop testable theories about the root cause based on evidence.

Hypothesis Framework:

  • Input hypothesis: Problem in data or user input
  • Logic hypothesis: Bug in business logic or algorithms
  • Environment hypothesis: System, infrastructure, or configuration issue
  • Integration hypothesis: Problem in external dependencies or APIs

Validation Criteria:

  • Each hypothesis must be testable
  • Evidence should support or refute the theory
  • Prioritize hypotheses by probability and impact

Phase 4: TEST - Validate and Fix

Test each hypothesis systematically and implement verified solutions.

Testing Approach:

  • Test hypotheses in order of likelihood
  • Change one variable at a time
  • Document test results
  • Verify fix resolves the original issue

Debugging Toolbox

Code-Level Debugging

Print/Log Debugging:

# Strategic print statements
print(f"DEBUG: Variable x = {x}, type = {type(x)}")
print(f"DEBUG: Function entry - params: {locals()}")

Interactive Debuggers:

# Python
python -m pdb script.py
breakpoint()  # Python 3.7+

# JavaScript/Node.js
node --inspect-brk script.js
debugger;  // Breakpoint in code

Assertion Debugging:

# Validate assumptions
assert user_id is not None, f"User ID should not be None at this point"
assert len(items) > 0, f"Items list should not be empty: {items}"

System-Level Debugging

Log Analysis:

# Search for patterns
grep -i "error" /var/log/application.log
tail -f /var/log/application.log | grep "user_id=123"

# Analyze timing patterns
awk '{print $4}' access.log | sort | uniq -c

Performance Analysis:

# CPU and Memory
top -p $(pgrep python)
ps aux | grep "my_application"

# Network debugging
netstat -tulpn | grep :8080
curl -v http://localhost:8080/api/health

Database Debugging:

-- Query performance
EXPLAIN ANALYZE SELECT * FROM users WHERE email = ' [email protected] ';

-- Lock analysis
SELECT * FROM pg_locks WHERE NOT granted;

-- Slow query log analysis
SELECT query, mean_time, calls FROM pg_stat_statements ORDER BY mean_time DESC;

Common Bug Patterns

Logic Errors

Off-by-One Errors:

# Bug: Missing last element
for i in range(len(array) - 1):  # Should be len(array)
    process(array[i])

# Fix: Include all elements
for i in range(len(array)):
    process(array[i])

Null/Undefined Handling:

// Bug: Doesn't handle null case
function processUser(user) {
    return user.name.toUpperCase();  // Crashes if user is null
}

// Fix: Add null checks
function processUser(user) {
    return user?.name?.toUpperCase() || 'Unknown';
}

Timing and Concurrency Issues

Race Conditions:

# Bug: Race condition in counter
class Counter:
    def __init__(self):
        self.count = 0

    def increment(self):
        temp = self.count
        temp += 1
        self.count = temp  # Not atomic

# Fix: Use proper synchronization
import threading

class Counter:
    def __init__(self):
        self.count = 0
        self.lock = threading.Lock()

    def increment(self):
        with self.lock:
            self.count += 1

Async/Await Issues:

// Bug: Not awaiting async function
async function fetchData() {
    const result = api.getData();  // Missing await
    return result.id;  // Tries to access property on Promise
}

// Fix: Proper async handling
async function fetchData() {
    const result = await api.getData();
    return result.id;
}

Resource Management Issues

Memory Leaks:

# Bug: Circular references
class Parent:
    def __init__(self):
        self.children = []

    def add_child(self, child):
        child.parent = self  # Circular reference
        self.children.append(child)

# Fix: Use weak references
import weakref

class Parent:
    def __init__(self):
        self.children = []

    def add_child(self, child):
        child.parent = weakref.ref(self)
        self.children.append(child)

Debugging Strategies by Context

Web Application Debugging

Client-Side Issues:

  1. Check browser console for JavaScript errors
  2. Inspect network tab for failed requests
  3. Validate form data and API payloads
  4. Test across different browsers and devices

Server-Side Issues:

  1. Check application logs for errors
  2. Monitor database query performance
  3. Validate API request/response cycles
  4. Check server resource utilization

API Debugging

Request/Response Debugging:

# Test API endpoints
curl -X POST http://api.example.com/users \
  -H "Content-Type: application/json" \
  -d '{"name": "Test User"}' \
  -v

# Check authentication
curl -H "Authorization: Bearer token123" \
  http://api.example.com/protected \
  -v

Database Integration:

# Add query logging
import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)

Performance Debugging

Profiling Code:

# Python profiling
import cProfile
cProfile.run('main()')

# Line-by-line profiling
from line_profiler import LineProfiler
profiler = LineProfiler()
profiler.add_function(my_function)
profiler.run('main()')

Memory Profiling:

# Memory usage tracking
import tracemalloc
tracemalloc.start()

# Your code here

current, peak = tracemalloc.get_traced_memory()
print(f"Current memory usage: {current / 1024 / 1024:.1f} MB")
print(f"Peak memory usage: {peak / 1024 / 1024:.1f} MB")
tracemalloc.stop()

Debugging Checklist

Phase 1: REPRODUCE

  • [ ] Document exact error message or unexpected behavior
  • [ ] Identify steps to reproduce consistently
  • [ ] Note environmental factors (OS, browser, data)
  • [ ] Create minimal test case
  • [ ] Verify issue exists in different environments

Phase 2: GATHER

  • [ ] Collect all error messages and stack traces
  • [ ] Review relevant log files
  • [ ] Check system metrics (CPU, memory, disk)
  • [ ] Identify recent changes (code, configuration, data)
  • [ ] Gather user reports and patterns

Phase 3: HYPOTHESIZE

  • [ ] List possible root causes
  • [ ] Prioritize hypotheses by likelihood
  • [ ] Define tests for each hypothesis
  • [ ] Consider both direct and indirect causes
  • [ ] Review similar past issues

Phase 4: TEST

  • [ ] Test hypotheses systematically
  • [ ] Change only one variable at a time
  • [ ] Document test results
  • [ ] Verify fix resolves original issue
  • [ ] Test for regression in other areas

Advanced Debugging Techniques

Binary Search Debugging

When dealing with large codebases or data sets:

# Git bisect for finding regression
git bisect start
git bisect bad HEAD
git bisect good v1.0.0
# Git will check out commits to test
git bisect run ./test_script.sh

Rubber Duck Debugging

Explain the problem step-by-step to:

  • Identify assumptions and gaps
  • Clarify understanding
  • Generate new hypotheses
  • Spot overlooked details

Collaborative Debugging

Pair Debugging:

  • Fresh perspective on the problem
  • Knowledge sharing and learning
  • Faster hypothesis generation
  • Reduced debugging tunnel vision

Debug Sessions:

  • Screen sharing for real-time collaboration
  • Systematic walkthrough of the issue
  • Collective problem-solving

Prevention Strategies

Defensive Programming

Input Validation:

def process_user_data(data):
    if not isinstance(data, dict):
        raise ValueError(f"Expected dict, got {type(data)}")

    if 'email' not in data:
        raise ValueError("Missing required field: email")

    if not data['email'] or '@' not in data['email']:
        raise ValueError(f"Invalid email format: {data['email']}")

Error Handling:

def fetch_user_profile(user_id):
    try:
        response = api_client.get(f"/users/{user_id}")
        return response.json()
    except requests.exceptions.ConnectionError:
        logger.error(f"Failed to connect to API for user {user_id}")
        raise
    except requests.exceptions.Timeout:
        logger.error(f"API timeout for user {user_id}")
        raise
    except Exception as e:
        logger.error(f"Unexpected error fetching user {user_id}: {e}")
        raise

Monitoring and Observability

Structured Logging:

import structlog

logger = structlog.get_logger()

def process_order(order_id):
    logger.info("Processing order", order_id=order_id)
    try:
        # Process order
        logger.info("Order processed successfully", order_id=order_id)
    except Exception as e:
        logger.error("Order processing failed",
                   order_id=order_id,
                   error=str(e))
        raise

Health Checks:

def health_check():
    checks = {
        "database": check_database_connection(),
        "cache": check_cache_connection(),
        "external_api": check_external_api(),
    }

    all_healthy = all(checks.values())

    return {
        "status": "healthy" if all_healthy else "unhealthy",
        "checks": checks
    }

Additional Resources

Reference Files

For detailed debugging patterns and advanced techniques, consult:

  • references/debugging-patterns.md - Common debugging patterns and anti-patterns
  • references/tool-specific-guides.md - Debugging guides for specific tools and frameworks
  • references/performance-debugging.md - Performance debugging and profiling techniques

Example Files

Working debugging examples in examples/:

  • examples/web-app-debugging.py - Complete web application debugging workflow
  • examples/api-debugging-session.py - API debugging scenarios
  • examples/performance-issue-analysis.py - Performance debugging example

Scripts

Debugging utility scripts in scripts/:

  • scripts/debug-session-logger.sh - Automated debugging session logging
  • scripts/log-analyzer.py - Log file analysis and pattern detection
  • scripts/system-health-check.sh - Comprehensive system health validation

Success Metrics

Debugging Efficiency

  • Time to identify root cause
  • Number of hypotheses tested
  • Accuracy of initial hypothesis
  • Resolution time

Quality Improvement

  • Reduced bug recurrence
  • Improved error handling
  • Better monitoring coverage
  • Enhanced system reliability

Follow the 4-phase systematic approach to debug issues efficiently and build more robust systems through better understanding of failure modes and prevention strategies.

平台分布

windsurf

27.71%
按下载量换算1,195

OpenCode

24.33%
按下载量换算1,049

Codex

18.57%
按下载量换算801

Claude Code

13.48%
按下载量换算581

Antigravity

8.1%
按下载量换算349

Gemini CLI

3.35%
按下载量换算144

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills