ホーム
  • キャンバス
  • 画像
  • 動画
  • 音声
  • MCP / CLI
  • モデル
  • スキル
  • ツール
料金プランログイン新規登録

作成

  • AI 動画
  • AI 画像
  • 画像から動画
  • テキストから動画
  • AI 動画編集
  • 画像アップスケール
  • 画像編集

画像作成・編集

  • 画像を作成

画像モデル

  • GPT Image 2.6 Sunburst
  • GPT Image 2.6 Flare
  • GPT Image 2.5 Sunburst
  • GPT Image 2.5 Flare
  • Nano Banana 2.1

動画作成・編集

  • 動画を作成
  • エフェクト
  • 画像から動画生成
  • テキストから動画生成
  • 動画を編集
  • 動画アップスケール
  • ミックスメディア
  • 顔の入れ替え

動画モデル

  • Seedance 2.5
  • Kling 4.0
  • Kling 4.0 Flash
  • Gemini Omni Flash 1.2
  • FLUX.3 Video

オーディオ

  • テキスト読み上げ
  • ボイスチェンジ
  • 翻訳

オーディオモデル

  • Seed Audio 1.0
  • Eleven v4
  • Eleven v4 Turbo
  • Eleven v3
  • Qwen Audio 3.0

スタジオ

  • マーケティングスタジオ
  • リップシンク
  • キャンバス

プラットフォーム

  • MCP
  • CLI
  • モデル
  • モデルプロバイダー
  • スキル
  • ツール
  • ツールプロバイダー

会社情報

  • エージェントインストラクション
  • ヘルプセンター
  • 利用規約
  • プライバシー
  • 脆弱性を報告

開発者

  • ドキュメント
  • API リファレンス
  • 開発者プラットフォーム
  • AI サイトマップ
© 2026 ドットメディア株式会社 すべての権利を留保します。
すべてのスキルランキングマイリスト
業務領域
リポジトリ
スキル開発者
作業
成果物
連携サービス
呼び出し方
  1. ホーム
  2. スキル
  1. ホーム
  2. スキル
  3. SKILL.md
ファイル
wshobson
agents
.agents
.claude-plugin
.cursor
.cursor-plugin
.github
docs
evals
plugins
accessibility-compliance
agent-orchestration
agent-teams
api-scaffolding
api-testing-observability
application-performance
arm-cortex-microcontrollers
avoid-ai-writing
backend-api-security
backend-development
before-you-build
block-no-verify
blockchain-web3
brand-landingpage
business-analytics
c4-architecture
cicd-automation
cloud-infrastructure
code-documentation
code-refactoring
codebase-cleanup
comprehensive-review
conductor
content-marketing
context-management
customer-sales-automation
data-engineering
data-validation-suite
database-cloud-optimization
database-design
database-migrations
debugging-toolkit
dependency-management
deployment-strategies
ブランチタグ
c96b5f6原文を開く
Wwshobson·2026/11/24
未翻訳
265 行(空行を除く 202 行) · 6.06 KB·原文
name: debugging-strategies
description: Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.

Debugging Strategies

Transform debugging from frustrating guesswork into systematic problem-solving with proven strategies, powerful tools, and methodical approaches.

When to Use This Skill

  • Tracking down elusive bugs
  • Investigating performance issues
  • Understanding unfamiliar codebases
  • Debugging production issues
  • Analyzing crash dumps and stack traces
  • Profiling application performance
  • Investigating memory leaks
  • Debugging distributed systems

Core Principles

1. The Scientific Method

1. Observe: What's the actual behavior? 2. Hypothesize: What could be causing it? 3. Experiment: Test your hypothesis 4. Analyze: Did it prove/disprove your theory? 5. Repeat: Until you find the root cause

2. Debugging Mindset

Don't Assume:

  • "It can't be X" - Yes it can
  • "I didn't change Y" - Check anyway
  • "It works on my machine" - Find out why

Do:

  • Reproduce consistently
  • Isolate the problem
  • Keep detailed notes
  • Question everything
  • Take breaks when stuck

3. Rubber Duck Debugging

Explain your code and problem out loud (to a rubber duck, colleague, or yourself). Often reveals the issue.

Systematic Debugging Process

Phase 1: Reproduce

## Reproduction Checklist
​
1. **Can you reproduce it?**
   - Always? Sometimes? Randomly?
   - Specific conditions needed?
   - Can others reproduce it?
​
2. **Create minimal reproduction**
   - Simplify to smallest example
   - Remove unrelated code
   - Isolate the problem
​
3. **Document steps**
   - Write down exact steps
   - Note environment details
   - Capture error messages

Phase 2: Gather Information

## Information Collection
​
1. **Error Messages**
   - Full stack trace
   - Error codes
   - Console/log output
​
2. **Environment**
   - OS version
   - Language/runtime version
   - Dependencies versions
   - Environment variables
​
3. **Recent Changes**
   - Git history
   - Deployment timeline
   - Configuration changes
​
4. **Scope**
   - Affects all users or specific ones?
   - All browsers or specific ones?
   - Production only or also dev?

Phase 3: Form Hypothesis

## Hypothesis Formation
​
Based on gathered info, ask:
​
1. **What changed?**
   - Recent code changes
   - Dependency updates
   - Infrastructure changes
​
2. **What's different?**
   - Working vs broken environment
   - Working vs broken user
   - Before vs after
​
3. **Where could this fail?**
   - Input validation
   - Business logic
   - Data layer
   - External services

Phase 4: Test & Verify

## Testing Strategies
​
1. **Binary Search**
   - Comment out half the code
   - Narrow down problematic section
   - Repeat until found
​
2. **Add Logging**
   - Strategic console.log/print
   - Track variable values
   - Trace execution flow
​
3. **Isolate Components**
   - Test each piece separately
   - Mock dependencies
   - Remove complexity
​
4. **Compare Working vs Broken**
   - Diff configurations
   - Diff environments
   - Diff data

Before selecting debugging tools or performing bisect, differential, trace, or memory analysis, read tools-and-techniques.md.

Debugging Patterns by Issue Type

Pattern 1: Intermittent Bugs

## Strategies for Flaky Bugs
​
1. **Add extensive logging**
   - Log timing information
   - Log all state transitions
   - Log external interactions
​
2. **Look for race conditions**
   - Concurrent access to shared state
   - Async operations completing out of order
   - Missing synchronization
​
3. **Check timing dependencies**
   - setTimeout/setInterval
   - Promise resolution order
   - Animation frame timing
​
4. **Stress test**
   - Run many times
   - Vary timing
   - Simulate load

Pattern 2: Performance Issues

## Performance Debugging
​
1. **Profile first**
   - Don't optimize blindly
   - Measure before and after
   - Find bottlenecks
​
2. **Common culprits**
   - N+1 queries
   - Unnecessary re-renders
   - Large data processing
   - Synchronous I/O
​
3. **Tools**
   - Browser DevTools Performance tab
   - Lighthouse
   - Python: cProfile, line_profiler
   - Node: clinic.js, 0x

Pattern 3: Production Bugs

## Production Debugging
​
1. **Gather evidence**
   - Error tracking (Sentry, Bugsnag)
   - Application logs
   - User reports
   - Metrics/monitoring
​
2. **Reproduce locally**
   - Use production data (anonymized)
   - Match environment
   - Follow exact steps
​
3. **Safe investigation**
   - Don't change production
   - Use feature flags
   - Add monitoring/logging
   - Test fixes in staging

Best Practices

  1. Reproduce First: Can't fix what you can't reproduce
  2. Isolate the Problem: Remove complexity until minimal case
  3. Read Error Messages: They're usually helpful
  4. Check Recent Changes: Most bugs are recent
  5. Use Version Control: Git bisect, blame, history
  6. Take Breaks: Fresh eyes see better
  7. Document Findings: Help future you
  8. Fix Root Cause: Not just symptoms

Common Debugging Mistakes

  • Making Multiple Changes: Change one thing at a time
  • Not Reading Error Messages: Read the full stack trace
  • Assuming It's Complex: Often it's simple
  • Debug Logging in Prod: Remove before shipping
  • Not Using Debugger: console.log isn't always best
  • Giving Up Too Soon: Persistence pays off
  • Not Testing the Fix: Verify it actually works

Quick Debugging Checklist

## When Stuck, Check:
​
- [ ] Spelling errors (typos in variable names)
- [ ] Case sensitivity (fileName vs filename)
- [ ] Null/undefined values
- [ ] Array index off-by-one
- [ ] Async timing (race conditions)
- [ ] Scope issues (closure, hoisting)
- [ ] Type mismatches
- [ ] Missing dependencies
- [ ] Environment variables
- [ ] File paths (absolute vs relative)
- [ ] Cache issues (clear cache)
- [ ] Stale data (refresh database)