本文へスキップ
Skillpedia
一般的なプログラミング8.2k · #12541

systematic-debugging

できること

このスキルは、推測ではなく体系的にバグを追跡する方法をAIに与えます。原因が明らかでない複雑な問題に直面している開発者向けです。

使う場面

  • ✓素早い修正で解決せず、バグが何度も戻ってくるとき。
  • ✓コードを変える前に、問題の根本原因を理解する必要があるとき。
  • ✓問題が一部の環境でだけ起き、範囲を絞り込む必要があるとき。

スキルのリンク

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/systematic-debugging/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/vudovn/ag-kit/blob/main/.agents/skills/systematic-debugging/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このログインエラーは時々しか起きません。何も変える前に、段階を追ってデバッグし、本当の原因を見つけてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、AIにまず問題を確実に再現させ、その発生源を絞り込み、なぜを五回繰り返す方法で根本原因をたどり、その後で修正が機能することを確認させます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Systematic Debugging

Source: obra/superpowers

Overview

This skill provides a structured approach to debugging that prevents random guessing and ensures problems are properly understood before solving.

4-Phase Debugging Process

Phase 1: Reproduce

Before fixing, reliably reproduce the issue.

## Reproduction Steps
1. [Exact step to reproduce]
2. [Next step]
3. [Expected vs actual result]

## Reproduction Rate
- [ ] Always (100%)
- [ ] Often (50-90%)
- [ ] Sometimes (10-50%)
- [ ] Rare (<10%)

Phase 2: Isolate

Narrow down the source.

## Isolation Questions
- When did this start happening?
- What changed recently?
- Does it happen in all environments?
- Can we reproduce with minimal code?
- What's the smallest change that triggers it?

Phase 3: Understand

Find the root cause, not just symptoms.

## Root Cause Analysis
### The 5 Whys
1. Why: [First observation]
2. Why: [Deeper reason]
3. Why: [Still deeper]
4. Why: [Getting closer]
5. Why: [Root cause]

Phase 4: Fix & Verify

Fix and verify it's truly fixed.

## Fix Verification
- [ ] Bug no longer reproduces
- [ ] Related functionality still works
- [ ] No new issues introduced
- [ ] Test added to prevent regression

Debugging Checklist

## Before Starting
- [ ] Can reproduce consistently
- [ ] Have minimal reproduction case
- [ ] Understand expected behavior

## During Investigation
- [ ] Check recent changes (git log)
- [ ] Check logs for errors
- [ ] Add logging if needed
- [ ] Use debugger/breakpoints

## After Fix
- [ ] Root cause documented
- [ ] Fix verified
- [ ] Regression test added
- [ ] Similar code checked

Common Debugging Commands

# Recent changes
git log --oneline -20
git diff HEAD~5

# Search for pattern
grep -r "errorPattern" --include="*.ts"

# Check logs
pm2 logs app-name --err --lines 100

Anti-Patterns

❌ Random changes - "Maybe if I change this..." ❌ Ignoring evidence - "That can't be the cause" ❌ Assuming - "It must be X" without proof ❌ Not reproducing first - Fixing blindly ❌ Stopping at symptoms - Not finding root cause

よくある質問

四つの段階は何ですか?

再現、切り分け、根本原因の理解、修正と検証です。

なぜ修正の前にバグを再現するのですか?

スキルによると、問題は確実に再現されている必要があり、AIが推測で修正しないようにするためです。

回帰テストが必要ですか?

はい。修正の検証チェックリストには、バグが戻らないようにするテストの追加が含まれています。

詳細

作者による元の説明

4-phase systematic debugging methodology with root cause analysis and evidence-based verification. Use when debugging complex issues.

repo: vudovn/ag-kit

人気

GitHubのスター
8.2k
ランキング
#12541
ライセンス
MIT
更新日
2026/10/18

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル