debug
できること
このスキルは、ソフトウェアのバグを順を追って調べる手順を案内します。期待と違う動作やエラーに直面する開発者やサポート担当者向けです。
使う場面
- ✓エラーメッセージやスタックトレースがあるが、原因が分からないとき。
- ✓ステージングでは動くのに、本番で失敗するとき。
- ✓デプロイの直後に何かが壊れ、理由を知る必要があるとき。
スキルのリンク
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/debug/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私たちのアプリはステージングでは動きますが、本番でこのエラーメッセージのとおりにクラッシュします。原因を見つける手伝いをしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、期待される動作と実際の動作を確認し、コンポーネントやコードの経路を絞り込み、検証するための仮説を立てます。原因をたどってから、修正を提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
/debug
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Run a structured debugging session to find and fix issues systematically.
Usage
/debug $ARGUMENTS
How It Works
┌─────────────────────────────────────────────────────────────────┐
│ DEBUG │
├─────────────────────────────────────────────────────────────────┤
│ Step 1: REPRODUCE │
│ ✓ Understand the expected vs. actual behavior │
│ ✓ Identify exact reproduction steps │
│ ✓ Determine scope (when did it start? who is affected?) │
│ │
│ Step 2: ISOLATE │
│ ✓ Narrow down the component, service, or code path │
│ ✓ Check recent changes (deploys, config changes, dependencies) │
│ ✓ Review logs and error messages │
│ │
│ Step 3: DIAGNOSE │
│ ✓ Form hypotheses and test them │
│ ✓ Trace the code path │
│ ✓ Identify root cause (not just symptoms) │
│ │
│ Step 4: FIX │
│ ✓ Propose a fix with explanation │
│ ✓ Consider side effects and edge cases │
│ ✓ Suggest tests to prevent regression │
└─────────────────────────────────────────────────────────────────┘
What I Need From You
Tell me about the problem. Any of these help:
- Error message or stack trace
- Steps to reproduce
- What changed recently
- Logs or screenshots
- Expected vs. actual behavior
Output
## Debug Report: [Issue Summary]
### Reproduction
- **Expected**: [What should happen]
- **Actual**: [What happens instead]
- **Steps**: [How to reproduce]
### Root Cause
[Explanation of why the bug occurs]
### Fix
[Code changes or configuration fixes needed]
### Prevention
- [Test to add]
- [Guard to put in place]
If Connectors Available
If ~~monitoring is connected:
- Pull logs, error rates, and metrics around the time of the issue
- Show recent deploys and config changes that may correlate
If ~~source control is connected:
- Identify recent commits and PRs that touched affected code paths
- Check if the issue correlates with a specific change
If ~~project tracker is connected:
- Search for related bug reports or known issues
- Create a ticket for the fix once identified
Tips
- Share error messages exactly — Don't paraphrase. The exact text matters.
- Mention what changed — Recent deploys, dependency updates, and config changes are top suspects.
- Include context — "This works in staging but not prod" or "Only affects large payloads" narrows things fast.
よくある質問
エージェントはまず何を確認しますか?
問題を再現し、デプロイ、設定の変更、依存関係の更新などの最近の変更を確認します。
コードだけを見ますか?
いいえ。ログやエラーメッセージも見て、問題を絞り込みます。
原因の特定で終わりますか?
いいえ。このスキルは、診断だけでなく修正も扱います。
詳細
作者による元の説明
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
repo: TencentCloud/Octop
人気
- GitHubのスター
- 11k
- ランキング
- #11644
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
polite-greeting
11kエージェントが、短く親しみやすく丁寧な挨拶で会話を始め、その後すぐに必要なことに移れるよう支援します。
medical-source-failover
11kエージェントが、主要な情報源がブロックされている、遅い、または読みにくいときに、信頼できる中国の医療ガイドライン、医薬品の情報、公衆衛生の文書を見つけられるよう支援します。
cowork-plugin-customizer
11kエージェントが、既存のClaudeプラグインを組織のツールとワークフローに合わせて調整し、プレースホルダーを置き換え、スキルや設定を変えられるよう支援します。
create-cowork-plugin
11kエージェントが、ガイド付きの質問を通じて、スキル、エージェント、フック、インストール可能なパッケージを含む、新しいClaudeプラグインをゼロから作れるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。