LLM Skills
~/catalogue/debugging et maintenance//smart-debug

Approche de débogage

/smart-debug

Déboguez les problèmes complexes à l'aide d'agents de débogage spécialisées :

wshobsonwshobson
2.6k
12 octobre 2025
// contenu du skill

model: claude-sonnet-4-0


Debug complex issues using specialized debugging agents:

[Extended thinking: This tool command leverages the debugger agent with additional support from performance-engineer when performance issues are involved. It provides deep debugging capabilities with root cause analysis.]

Debugging Approach

1. Primary Debug Analysis

Use Task tool with subagent_type="debugger" to:

  • Analyze error messages and stack traces
  • Identify code paths leading to the issue
  • Reproduce the problem systematically
  • Isolate the root cause
  • Suggest multiple fix approaches

Prompt: "Debug issue: $ARGUMENTS. Provide detailed analysis including:

  1. Error reproduction steps
  2. Root cause identification
  3. Code flow analysis leading to the error
  4. Multiple solution approaches with trade-offs
  5. Recommended fix with implementation details"

2. Performance Debugging (if performance-related)

If the issue involves performance problems, also use Task tool with subagent_type="performance-engineer" to:

  • Profile code execution
  • Identify bottlenecks
  • Analyze resource usage
  • Suggest optimization strategies

Prompt: "Profile and debug performance issue: $ARGUMENTS. Include:

  1. Performance metrics and profiling data
  2. Bottleneck identification
  3. Resource usage analysis
  4. Optimization recommendations
  5. Before/after performance projections"

Debug Output Structure

Root Cause Analysis

  • Precise identification of the bug source
  • Explanation of why the issue occurs
  • Impact analysis on other components

Reproduction Guide

  • Step-by-step reproduction instructions
  • Required environment setup
  • Test data or conditions needed

Solution Options

  1. Quick Fix - Minimal change to resolve issue
  • Implementation details
  • Risk assessment
  1. Proper Fix - Best long-term solution
  • Refactoring requirements
  • Testing needs
  1. Preventive Measures - Avoid similar issues
  • Code patterns to adopt
  • Tests to add

Implementation Guide

  • Specific code changes needed
  • Order of operations for the fix
  • Validation steps

Issue to debug: $ARGUMENTS

// source originale publique
wshobson/commands
/tools/smart-debug.md
Licence : Licence non indiquée. Consultez le dépôt avant toute réutilisation.
Projet indépendant, non affilié à Anthropic. Ce skill reste la propriété de son auteur original.
// installer ce skill
Collez cette commande dans votre terminal à la racine de votre projet :
mkdir -p .claude/commands && curl -o ".claude/commands/smart-debug.md" "https://raw.githubusercontent.com/wshobson/commands/main/tools/smart-debug.md"
Ensuite dans Claude Code, tapez /smart-debug pour l'activer.
open_in_newVoir la source originale
// sauvegarder
Sauvegarde disponible après connexion.
loginSe connecter pour sauvegarder
// informations
Créateurwshobson
Étoiles 2.6k
Mis à jour12 octobre 2025
Format.md
AccèsGratuit
// similaires

Skills Debugging et maintenance

Voir toutarrow_forward