debug-issues

SKILL开发
开发 未标注权限 许可证不明确

Debug bugs and errors using intel-first approach with systematic root cause analysis. Use proactively when errors occur, tests fail, or unexpected behavior appears. MUST trace from symptom to root cause with CoD^Σ reasoning.

一句话选型结论

按资料字段整理

debug-issues是开发类的 Agent Skill,安装方式:GitHub 仓库,权限级别未标注,许可证不明确,没有现成安装命令,需按说明手动放置 SKILL.md。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式GitHub 仓库 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 0 仓库 nextjs-intelligence-toolkit
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

GitHub 仓库
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    按安装说明或仓库 README,把 SKILL.md 放到客户端的 skills 目录(一般一个技能一个文件夹)。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方yangsi7仓库 nextjs-intelligence-toolkit · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式GitHub 仓库安装包 yangsi7/nextjs-intelligence-toolkit
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 未标注
正文体量13.8 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按说明装一个试试。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有现成安装命令,要按安装说明或仓库 README 手动放置。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
debug-issues当前 未标注权限 GitHub 仓库 未标注 未标注 无
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

13.8 KB
模型实际读到的说明书原文,来自技能仓库

Debugging Skill

Overview

This skill performs systematic bug diagnosis using intelligence-first approach to trace from symptom to root cause with complete CoD^Σ reasoning chain.

Core principle: Capture symptom → Parse error → Intel trace → Root cause → Propose fix

Announce at start: "I'm using the debug-issues skill to diagnose this problem."

Quick Reference

Phase Key Activities Output
1. Capture Symptom Reproduction steps, error message, environment Symptom description
2. Parse Error Extract error type, file:line, stack trace Parsed error object
3. Intel Trace project-intel.mjs queries from error to cause Intel evidence chain
4. Root Cause Identify specific file:line with CoD^Σ trace Root cause
5. Report Generate bug report with fix proposal bug-report.md

Templates You Will Use

  • @.claude/templates/bug-report.md - Complete bug report with fix (Phase 5)
  • @.claude/templates/mcp-query.md - For verifying library behavior (Phase 4)

Intelligence Tool Guide

  • @.claude/shared-imports/project-intel-mjs-guide.md - For systematic intel queries

The Process

Copy this checklist to track progress:

Debugging Progress:
- [ ] Phase 1: Symptom Captured (reproduction steps documented)
- [ ] Phase 2: Error Parsed (file:line extracted)
- [ ] Phase 3: Intel Trace Complete (queries executed)
- [ ] Phase 4: Root Cause Identified (specific file:line)
- [ ] Phase 5: Bug Report Generated (with fix proposal)

Phase 1: Capture Symptom

Document the complete symptom:

  1. Error Message:
    TypeError: Cannot read property 'discount' of undefined at calculateTotal (src/pricing/calculator.ts:67) at processCheckout (src/checkout/checkout.ts:123)

  2. Reproduction Steps:
    ```

  3. Add items to cart
  4. Apply discount code "SAVE20"
  5. Click "Checkout"
  6. ERROR: 500 response
    ```

  7. Frequency & Environment:
    - Frequency: 15% of checkout attempts - Environment: Production - User impact: High (blocks checkout)

Enforcement:
- [ ] Complete error message captured
- [ ] Reproduction steps documented
- [ ] Frequency and environment noted

Phase 2: Parse Error

Extract structured information from error:

Parse Stack Trace

ERROR: TypeError: Cannot read property 'discount' of undefined
  at calculateTotal (src/pricing/calculator.ts:67)  ← ROOT ERROR
  at processCheckout (src/checkout/checkout.ts:123)
  at POST /api/checkout (src/api/routes.ts:45)

Parsed:
{
  error_type: "TypeError",
  message: "Cannot read property 'discount' of undefined",
  root_location: "src/pricing/calculator.ts:67",
  root_function: "calculateTotal",
  call_chain: [
    "src/api/routes.ts:45",
    "src/checkout/checkout.ts:123",
    "src/pricing/calculator.ts:67"
  ]
}

Identify Entry Point

Entry point: src/pricing/calculator.ts:67
Function: calculateTotal
Issue: Accessing .discount on undefined object

Enforcement:
- [ ] Error type identified
- [ ] Root file:line extracted
- [ ] Function name identified
- [ ] Call chain documented

Phase 3: Intel Trace

See: @.claude/skills/debug-issues/workflows/intel-trace.md

Summary:

Systematic 4-query workflow using project-intel.mjs to trace from error to root cause.

Query Workflow:
1. Locate Function: Find file containing the error-causing function
2. Analyze Symbols: Get exact line numbers for functions
3. Trace Dependencies: Check what the function imports
4. Check Dependency: Analyze suspicious imports for return types

Token Efficiency:
- Intel queries: ~350 tokens
- Targeted reads: ~400 tokens
- Total: ~750 tokens vs 8600 (91% savings)

Phase 4: Root Cause Analysis

See: @.claude/skills/debug-issues/workflows/root-cause-analysis.md

Summary:

Use targeted reads (ONLY lines identified by intel) to identify root cause with complete CoD^Σ trace.

CoD^Σ Trace Pattern:

Step 1: → ParseError (from Phase 2)
Step 2: ⇄ IntelQuery (locate function)
Step 3: ⇄ IntelQuery (analyze symbols)
Step 4: → TargetedRead (error location)
Step 5: ⇄ IntelQuery (check dependency)
Step 6: → TargetedRead (dependency function)
Step 7: ⊕ MCPVerify (best practices)
Step 8: ∘ Conclusion (root cause + fix)

Requirements:
- Specific file:line for root cause
- Complete evidence chain
- MCP verification for library behavior
- Token efficiency analysis

Phase 5: Bug Report Generation

See: @.claude/skills/debug-issues/workflows/bug-report-generation.md

Summary:

Generate comprehensive bug report using @.claude/templates/bug-report.md with:

Required Sections:
1. Symptom - From Phase 1
2. CoD^Σ Trace - From Phase 4
3. Root Cause - Specific file:line + explanation
4. Fix Specification - Exact code changes (before/after)
5. Verification - Test plan + acceptance criteria

File Naming: YYYYMMDD-HHMM-bug-<id>.md

Common Error Patterns

See: @.claude/skills/debug-issues/examples/error-patterns.md

Summary:

Three frequently encountered patterns with systematic debugging approaches:

  1. React Infinite Re-render - useEffect dependency on mutated value
  2. N+1 Query Problem - Database queries inside loops
  3. Memory Leak - Missing cleanup in useEffect

Each pattern includes:
- Symptom identification
- Step-by-step debugging process
- Common root causes
- Fix approaches with code examples
- Verification steps

Enforcement Rules

See: @.claude/skills/debug-issues/references/debugging-rules.md

Summary:

Three mandatory rules for all bug diagnosis:

Rule 1: Complete CoD^Σ Trace
- Every step must have evidence source
- File:line references required
- MCP queries documented
- Conclusion follows logically

Rule 2: Intel Before Reading
- ALWAYS query project-intel.mjs first
- Use targeted reads (sed -n 'X,Yp')
- Document token savings
- Never read full files

Rule 3: Fix with Verification
- Propose specific code changes
- Include test plan
- Define acceptance criteria
- Verify fix addresses root cause

Common Pitfalls:
- Assumptions without MCP verification
- Skipping intel queries (91% token waste)
- Incomplete reproduction steps
- No fix proposal

When to Use This Skill

Use debug-issues when:
- User reports an error or bug
- Tests are failing
- Unexpected behavior occurs
- Performance is degraded
- Memory issues detected

Don't use when:
- User wants general code analysis (use analyze-code skill)
- User wants to plan implementation (use create-plan skill)
- No specific error (use analyze-code for investigation)

Related Skills & Commands

  • Analyze-code skill - For general code analysis (not bug-specific)
  • Implement-and-verify skill - For implementing the fix after debugging
  • /bug command - User-invoked debugging (can invoke this skill)

Success Metrics

Accuracy:
- Root cause identified: 95%+
- Fix proposal validated: 100%

Efficiency:
- Token usage: 80%+ savings vs direct reading
- Time to diagnosis: 5-15 minutes

Completeness:
- CoD^Σ trace: 100% complete
- MCP verification: 100% for library issues

Prerequisites

Before using this skill:
- ✅ Error or bug has been reported/detected
- ✅ Error message, logs, or reproduction steps available
- ✅ project-intel.mjs exists and is executable
- ✅ PROJECT_INDEX.json exists (run /index if missing)
- ⚠️ Optional: MCP tools configured (Ref for library behavior verification)
- ⚠️ Optional: Test framework set up (for verification tests)

Dependencies

Depends On:
- None (this skill is standalone and can be used at any point)

Integrates With:
- analyze-code skill - Use before this skill for general code understanding
- implement-and-verify skill - Use after this skill to implement the fix
- create-implementation-plan skill - Use after this skill if fix requires multiple changes

Tool Dependencies:
- project-intel.mjs (intelligence queries)
- MCP Ref tool (library documentation, optional)
- Read, Grep tools (targeted code reading)
- Bash tool (running sed for targeted reads, running tests)

Next Steps

After debugging completes, typical progression:

For simple fixes (1 file, <10 lines):

debug-issues (identifies root cause + proposes fix)
    ↓
User approves fix OR implement-and-verify skill implements it
    ↓
Run tests to verify fix works

For complex fixes (multiple files, refactoring needed):

debug-issues (identifies root cause)
    ↓
create-implementation-plan (plan multi-file fix)
    ↓
generate-tasks (break down fix tasks)
    ↓
implement-and-verify (implement fix with TDD)

For blocked/requires research:

debug-issues (unable to identify root cause)
    ↓
analyze-code skill (deeper investigation)
    ↓
MCP queries (verify library behavior)
    ↓
debug-issues skill (re-run with additional context)

User Action Required:
- Provide reproduction steps if not already known
- Approve fix proposal before implementation
- Run verification tests after fix applied

Outputs Created:
- YYYYMMDD-HHMM-bug-&lt;id&gt;.md - Complete bug report with CoD^Σ trace and fix
- Updated code (if implementing fix immediately)
- Test files (if verification tests created)

Commands:
- /implement plan.md - If fix requires planned implementation
- /verify plan.md - If fix needs formal verification

Failure Modes

Common Failures & Solutions

1. PROJECT_INDEX.json missing or stale
- Symptom: Intel queries fail or return outdated results
- Solution: Run /index command to regenerate index
- Prevention: Hook auto-generates index on file changes

2. Incomplete error information
- Symptom: No stack trace, vague error message, can't reproduce
- Solution: Ask user for complete error log, reproduction steps, environment details
- Requirement: Need at least error message + approximate location to start

3. Reading full files instead of intel-first
- Symptom: Token usage high (>5K for simple bug), slow diagnosis
- Solution: ALWAYS query project-intel.mjs before reading any files
- Pattern: Search → Symbols → Dependencies → Targeted Read (never full file read)

4. No CoD^Σ trace documented
- Symptom: Bug report lacks reasoning chain, can't verify logic
- Solution: Document every step from symptom to root cause
- Enforcement: Phase 4 requires complete CoD^Σ trace in bug report

5. Proposing fix without verification plan
- Symptom: Fix suggested but no way to test it
- Solution: Always include test plan with acceptance criteria
- Pattern: "Test with X (should Y), Test with Z (should not error)"

6. Assumptions without MCP verification
- Symptom: Assuming library behavior, fix doesn't work
- Solution: Use Ref MCP to verify library behavior before proposing fix
- Example: "React useEffect cleanup" → verify in React docs before proposing solution

7. Jumping to conclusions without intel trace
- Symptom: Guessing root cause, diagnosis wrong
- Solution: Systematically trace from error location through dependencies
- Enforcement: Phases 2-3 must execute before identifying root cause

8. Symptom captured incompletely
- Symptom: Missing frequency, environment, user impact details
- Solution: Phase 1 checklist enforces complete symptom capture
- Components: Error + Reproduction Steps + Frequency + Environment + Impact

9. Not using sed for targeted reads
- Symptom: Reading entire files when only need specific lines
- Solution: Use sed -n &#x27;X,Yp&#x27; file after intel identifies line range
- Benefit: Read 10-20 lines instead of 1000+ lines (99% token savings)

10. Parallel investigation instead of systematic
- Symptom: Trying multiple approaches simultaneously, getting confused
- Solution: Follow phase order: Symptom → Parse → Intel → Root Cause → Report
- Enforcement: Copy progress checklist and mark phases sequentially

Related Skills & Commands

Direct Integration:
- analyze-code skill - Use before this skill for general understanding, or when debugging blocks
- implement-and-verify skill - Use after this skill to implement fix with TDD
- create-implementation-plan skill - Use after this skill if fix is complex
- /bug command - User-facing command that invokes this skill
- code-analyzer subagent - Subagent that can route to this skill

Workflow Context:
- Position: Troubleshooting (parallel to main workflow, invoked when errors occur)
- Triggers: Error reports, test failures, unexpected behavior
- Output: bug-report.md with root cause, CoD^Σ trace, and fix proposal

Quality Gates:
- Intel-First: MUST query project-intel.mjs before reading files (Article I)
- Evidence-Based: Complete CoD^Σ trace required (Article II)
- Verification Plan: Fix must have testable acceptance criteria (Article III)

Common Entry Points:
1. User reports bug → debug-issues skill
2. Tests fail during /implement → implement-and-verify invokes debug-issues skill
3. analyze-code identifies issue → routes to debug-issues for diagnosis

Common Exit Points:
1. Simple fix → Implement immediately
2. Complex fix → create-implementation-plan skill
3. Cannot reproduce → Request more info from user
4. Requires research → analyze-code skill for deeper investigation

Version

Version: 1.1.0
Last Updated: 2025-10-23
Owner: Claude Code Intelligence Toolkit

Change Log:
- v1.1.0 (2025-10-23): Refactored to progressive disclosure pattern (<500 lines)
- v1.0.0 (2025-10-22): Initial version with systematic debugging workflow

常见问题

5 问
答案由本站依据条目字段整理
debug-issues怎么安装?

没有现成安装命令:按安装说明或仓库 README,把 SKILL.md 放进客户端的 skills 目录(一般一个技能一个文件夹)。

debug-issues支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

debug-issues权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

debug-issues收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

debug-issues用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。