Token导航 LogoToken导航

Agent Skill · 研究检索

debugging(调试)

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

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

总安装 855周安装 25GitHub Stars 4下载 121核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/89jobrien/steve --skill debugging

这个 Skill 是做什么的

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

提供全面调试能力,用于定位错误、异常和意外行为。适用于测试失败排查、生产问题分析和日志解析场景。支持栈轨迹分析、错误模式识别和监控告警设置。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。使用前需确认权限范围,注意是否触发联网或命令执行。

debugging 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/debugging

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/89jobrien/steve --skill debugging;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

debugging 怎么安装?

在终端执行 npx skills add https://github.com/89jobrien/steve --skill debugging。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

debugging 支持哪些 AI 工具?

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

debugging 需要什么权限?

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

debugging 是免费的吗?

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

debugging 用的人多吗?

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

debugging 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 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调用外部服务未明确有提醒
debugging

调试 · 本页

8554需要联网MIT通过

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

SKILL.md 原文

Debugging

This skill provides comprehensive debugging capabilities for identifying and fixing errors, test failures, unexpected behavior, and production issues. It combines general debugging workflows with specialized error analysis, log parsing, and pattern recognition.

When to Use This Skill

  • When encountering errors or exceptions in code
  • When tests are failing and you need to understand why
  • When investigating unexpected behavior or bugs
  • When analyzing stack traces and error messages
  • When debugging production issues
  • When fixing issues reported by users or QA
  • When analyzing error logs and stack traces
  • When investigating performance issues or anomalies
  • When correlating errors across multiple services
  • When identifying recurring error patterns
  • When setting up error monitoring and alerting
  • When conducting post-mortem analysis of incidents

What This Skill Does

  1. Error Analysis: Captures and analyzes error messages and stack traces
  2. Log Parsing: Extracts errors from logs using regex patterns and structured parsing
  3. Stack Trace Analysis: Analyzes stack traces across multiple programming languages
  4. Error Correlation: Identifies relationships between errors across distributed systems
  5. Pattern Recognition: Detects common error patterns and anti-patterns
  6. Reproduction: Identifies steps to reproduce the issue
  7. Isolation: Locates the exact failure point in code
  8. Root Cause Analysis: Works backward from symptoms to identify underlying causes
  9. Minimal Fix: Implements the smallest change that resolves the issue
  10. Verification: Confirms the solution works and doesn't introduce new issues
  11. Monitoring Setup: Creates queries and alerts for error detection

Helper Scripts

This skill includes Python helper scripts in scripts/:

  • parse_logs.py: Parses log files and extracts errors, exceptions, and stack traces. Outputs JSON with error analysis and pattern detection. python scripts/parse_logs.py /var/log/app.log

How to Use

Debug an Error

Debug this error: TypeError: Cannot read property 'x' of undefined
Investigate why the test is failing in test_user_service.js

Analyze Error Logs

Analyze the error logs in /var/log/app.log and identify the root cause
Investigate why the API is returning 500 errors

Pattern Detection

Find patterns in these error logs from the past 24 hours
Correlate errors between the API service and database

Debugging Process

1. Capture Error Information

Error Message:

  • Read the full error message
  • Note the error type (TypeError, ReferenceError, etc.)
  • Identify the error location (file and line number)

Stack Trace:

  • Analyze the call stack
  • Identify the sequence of function calls
  • Find where the error originated

Context:

  • Check recent code changes
  • Review related code files
  • Understand the execution flow

2. Error Extraction (Log Analysis)

Using Helper Script:

The skill includes a Python helper script for parsing logs:

# Parse log file and extract errors
python scripts/parse_logs.py /var/log/app.log

Manual Log Parsing Patterns:

# Extract errors from logs
grep -i "error\|exception\|fatal\|critical" /var/log/app.log

# Extract stack traces
grep -A 20 "Exception\|Error\|Traceback" /var/log/app.log

# Extract specific error types
grep "TypeError\|ReferenceError\|SyntaxError" /var/log/app.log

Structured Log Parsing:

// Parse JSON logs
const errors = logs
  .filter(log => log.level === 'error' || log.level === 'critical')
  .map(log => ({
    timestamp: log.timestamp,
    message: log.message,
    stack: log.stack,
    context: log.context
  }));

3. Stack Trace Analysis

Common Patterns:

JavaScript/Node.js:

Error: Cannot read property 'x' of undefined
    at FunctionName (file.js:123:45)
    at AnotherFunction (file.js:456:78)

Python:

Traceback (most recent call last):
  File "app.py", line 123, in function_name
    result = process(data)
  File "utils.py", line 45, in process
    return data['key']
KeyError: 'key'

Java:

java.lang.NullPointerException
    at com.example.Class.method(Class.java:123)
    at com.example.AnotherClass.call(AnotherClass.java:456)

4. Error Correlation

Timeline Analysis:

  • Group errors by timestamp
  • Identify error spikes and patterns
  • Correlate with deployments or changes
  • Check for cascading failures

Service Correlation:

  • Map errors across service boundaries
  • Identify upstream/downstream relationships
  • Track error propagation paths
  • Find common failure points

5. Pattern Recognition

Common Error Patterns:

N+1 Query Problem:

Multiple database queries in loop
Pattern: SELECT * FROM users; SELECT * FROM posts WHERE user_id = ?

Memory Leaks:

Gradually increasing memory usage
Pattern: Memory growth over time without release

Race Conditions:

Intermittent failures under load
Pattern: Errors only occur with concurrent requests

Timeout Issues:

Requests timing out
Pattern: Errors after specific duration (e.g., 30s)

6. Reproduce the Issue

Reproduction Steps:

  1. Identify the exact conditions that trigger the error
  2. Create a minimal test case that reproduces the issue
  3. Verify the issue is consistent and reproducible
  4. Document the steps clearly

Example:

## Reproduction Steps

1. Navigate to `/users/123`
2. Click "Edit Profile"
3. Submit form without filling required fields
4. Error occurs: "Cannot read property 'validate' of undefined"

7. Isolate the Failure Location

Code Analysis:

  • Read the code around the error location
  • Trace the execution path
  • Identify where the assumption breaks
  • Check variable states and values

Debugging Techniques:

  • Add strategic logging to track execution
  • Use debugger breakpoints
  • Inspect variable states
  • Check function return values
  • Verify data structures

8. Form and Test Hypotheses

Hypothesis Formation:

  • What could cause this error?
  • What assumptions might be wrong?
  • What edge cases weren't considered?
  • What dependencies might be missing?

Testing Hypotheses:

  • Add logging to verify assumptions
  • Test edge cases
  • Check input validation
  • Verify dependencies are available
  • Test with different data

9. Root Cause Analysis

Investigation Steps:

  1. Start with Symptoms: What error is occurring?
  2. Work Backward: What changed before the error?
  3. Check Patterns: Is this recurring or isolated?
  4. Correlate Events: What else happened at the same time?
  5. Identify Cause: What is the underlying issue?

Analysis Framework:

## Error Analysis

**Error**: [Description]
**Frequency**: [How often]
**Timeline**: [When it started]
**Affected Services**: [Which services]
**User Impact**: [How many users affected]

**Root Cause Hypothesis**:
- [Primary hypothesis with evidence]
- [Alternative hypotheses]

**Evidence**:
- [Log entries supporting hypothesis]
- [Error patterns observed]
- [Correlation with other events]

**Recommended Actions**:
- [Immediate fix]
- [Long-term prevention]

10. Implement Minimal Fix

Fix Principles:

  • Fix the root cause, not just symptoms
  • Make the smallest change possible
  • Preserve existing functionality
  • Don't introduce new complexity
  • Add appropriate error handling

Fix Verification:

  • Test the fix with the reproduction case
  • Verify no regressions
  • Check edge cases
  • Ensure error handling is appropriate
  • Confirm the fix is complete

11. Document the Solution

Documentation Should Include:

  • Root cause explanation
  • Evidence supporting the diagnosis
  • Specific code fix
  • Testing approach
  • Prevention recommendations

Examples

Example 1: Null Reference Error

Input: Error: TypeError: Cannot read property 'name' of undefined

Output:

## Debugging Analysis

### Error Information
- **Type**: TypeError
- **Location**: `src/services/user.js:45`
- **Message**: Cannot read property 'name' of undefined

### Root Cause
The `getUser()` function returns `undefined` when a user is not found, but the code assumes it always returns a user object.

### Code Location

// src/services/user.js:45 const user = getUser(userId); console.log(user.name); // ❌ Error: user is undefined


### Fix

// Add null check const user = getUser(userId); if (!user) { throw new Error(User ${userId} not found); } console.log(user.name); // ✅ Safe


### Prevention

- Always validate return values from functions that might return null/undefined
- Use optional chaining: `user?.name`
- Add TypeScript types to catch these issues at compile time

Example 2: Database Connection Errors (Log Analysis)

Input: Error logs showing database connection failures

Output:

## Error Analysis: Database Connection Failures

### Pattern Detected

**Error**: `ECONNREFUSED` errors from PostgreSQL
**Frequency**: 15 errors/minute, started 2 hours ago
**Timeline**: Errors began after deployment at 14:30

### Root Cause Analysis

**Hypothesis**: Connection pool exhaustion

**Evidence**:
- Errors correlate with high traffic period (14:30-16:30)
- Connection pool size: 10, concurrent requests: 50+
- No connection cleanup in error handlers
- Errors spike during peak usage

**Code Location**: `src/db/connection.js:45`

**Fix**:

// Add connection cleanup try { const result = await query(sql); return result; } catch (error) { // Ensure connection is released await releaseConnection(); throw error; }


**Monitoring Query**:

SELECT count(*) FROM pg_stat_activity WHERE state = 'active';

Reference Files

For detailed debugging workflows, error patterns, and techniques, load reference files as needed:

  • references/debugging_workflows.md - Common debugging workflows by issue type, language-specific debugging, debugging techniques, debugging checklists, and common error patterns (database errors, memory leaks, race conditions, timeouts, authentication errors, network errors, application errors, performance errors)
  • references/INCIDENT_POSTMORTEM.template.md - Incident postmortem template with timeline, root cause analysis, and action items

When debugging specific types of issues or analyzing error patterns, load references/debugging_workflows.md and refer to the relevant section.

Best Practices

Debugging Approach

  1. Start with Symptoms: Understand what's wrong before jumping to solutions
  2. Work Backward: Trace from error to cause
  3. Test Hypotheses: Don't assume, verify
  4. Minimal Changes: Fix only what's necessary
  5. Verify Fixes: Always test that the fix works

Log Analysis Techniques

  1. Use Structured Logging: JSON logs are easier to parse and analyze
  2. Include Context: Add request IDs, user IDs, timestamps to all logs
  3. Log Levels: Use appropriate levels (error, warn, info, debug)
  4. Correlation IDs: Use request IDs to trace errors across services
  5. Error Grouping: Group similar errors to identify patterns

Error Pattern Recognition

Time-Based Patterns:

  • Errors at specific times (deployment windows, peak hours)
  • Errors after specific duration (timeouts, memory leaks)
  • Errors during specific events (database migrations, cache clears)

Frequency Patterns:

  • Sudden spikes (deployment issues, traffic spikes)
  • Gradual increases (memory leaks, resource exhaustion)
  • Intermittent (race conditions, timing issues)

Correlation Patterns:

  • Errors in multiple services simultaneously (infrastructure issues)
  • Errors after specific user actions (application bugs)
  • Errors correlated with external services (dependency issues)

Common Debugging Patterns

Null/Undefined Checks:

// Always check for null/undefined
if (!value) {
  // Handle missing value
}

Error Handling:

try {
  // Risky operation
} catch (error) {
  // Log error with context
  console.error('Operation failed:', error);
  // Handle gracefully
}

Logging:

// Strategic logging
console.log('Before operation:', { userId, data });
const result = await operation();
console.log('After operation:', { result });

Type Checking:

// Verify types
if (typeof value !== 'string') {
  throw new TypeError('Expected string');
}

Monitoring Setup

Error Rate Monitoring:

// Track error rate over time
const errorRate = errors.length / totalRequests;
if (errorRate > 0.01) { // 1% error rate threshold
  alert('High error rate detected');
}

Error Alerting:

  • Alert on error rate spikes (> 5% increase)
  • Alert on new error types
  • Alert on critical error patterns
  • Alert on error correlation across services

Prevention Strategies

  1. Input Validation: Validate all inputs at boundaries
  2. Type Safety: Use TypeScript or type checking
  3. Error Boundaries: Catch errors at appropriate levels
  4. Testing: Write tests for edge cases
  5. Code Review: Review code for common pitfalls

Related Use Cases

  • Fixing production bugs
  • Debugging test failures
  • Investigating user-reported issues
  • Analyzing error logs
  • Root cause analysis
  • Performance debugging
  • Production incident investigation
  • System reliability analysis
  • Error monitoring setup
  • Post-mortem analysis
  • Debugging distributed systems

平台分布

Antigravity

27.84%
按下载量换算34

Claude Code

23.82%
按下载量换算29

OpenCode

19.45%
按下载量换算24

Codex

11.53%
按下载量换算14

windsurf

7.59%
按下载量换算9

Gemini CLI

3.37%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills