dev:debug
Analyser et résoudre une erreur (message simple ou stack trace)
Best use case
dev:debug is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Analyser et résoudre une erreur (message simple ou stack trace)
Teams using dev:debug should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/debug/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How dev:debug Compares
| Feature / Agent | dev:debug | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Analyser et résoudre une erreur (message simple ou stack trace)
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
SKILL.md Source
# Debug - Analyse et Résolution d'Erreurs ## Instructions à Exécuter **IMPORTANT : Exécute ce workflow étape par étape :** Analyser une erreur (message ou stack trace) et proposer/appliquer résolution. ## Variables - ERROR_INPUT: $ARGUMENTS - ERROR_TYPE: Type détecté (simple message vs stack trace) - CONTEXT_FILES: Fichiers pertinents - RESOLUTION_PLAN: Plan structuré si résolution demandée ## Détection Automatique Le système détecte automatiquement : - **Stack trace** : Parsing + formatage + analyse approfondie - **Message simple** : Analyse directe + diagnostic Patterns stack trace : - `Fatal error:`, `Uncaught`, `Exception`, `Error:` - Présence de `at <file>:<line>` - Multiple lignes avec indentation/numéros ## Workflow ### 1. Identification Type **Si stack trace détectée** : - Parser trace (type, message, fichier:ligne, call stack) - Formater hiérarchiquement - Lire code source ligne incriminée - Générer rapport `/tmp/stack-trace-analysis-[timestamp].md` **Si message simple** : - Catégoriser (syntaxe, runtime, logique, config) - Extraire infos contextuelles ### 2. Analyse Contexte - Examiner fichiers mentionnés - Analyser logs récents corrélés - Vérifier environnement (deps, config) - Identifier changements récents (git) ### 3. Diagnostic - Cause racine vs symptômes - Impact et criticité - Solutions possibles + trade-offs - Priorisation ### 4. Solutions **Stack trace** : 3 niveaux 1. **Quick Fix ⚡** : Rapide, symptôme 2. **Recommandée ✅** : Équilibrée, cause 3. **Long-terme 🎯** : Robuste, prévention **Message simple** : Plan résolution - Étapes séquencées - Tests validation - Rollbacks prévus - Risques estimés ### 5. Exécution (optionnel) Si utilisateur demande résolution : - Appliquer corrections pas à pas - Valider chaque modif - Vérifier résolution complète - Documenter changements ## Exemples ```bash # Stack trace PHP /dev:debug "Fatal error: Call to undefined method User::getName()" # Fichier log /dev:debug /var/log/app.log # Message NPM /dev:debug "npm ERR! missing script: build" ``` ## Best Practices - Détecter type avant traiter - Parser intelligemment selon langage - Lire code source pour contexte - Solutions testables avec exemples - Corrections incrémentales si exécution - Validation systématique après chaque change
Related Skills
fix-grammar
Fix grammar and spelling errors in one or multiple files while preserving formatting
symfony-framework
Comprehensive Symfony 6.4 development skill for web applications, APIs, and microservices.
symfony:make
Cherche si il existe un maker Symfony pour faire la tache demandée et l'utilise si il existe. Si aucun maker n'existe alors utilise la slash command "/prepare"
phpstan-resolver
Résout automatiquement les erreurs PHPStan en analysant et corrigeant les problèmes de types. Boucle jusqu'à zéro erreur ou stagnation.
elegant-objects
Vérifie la conformité du code PHP aux principes Elegant Objects de Yegor Bugayenko. Analyse un fichier spécifique ou tous les fichiers modifiés dans la branche.
prompt:validate
Vérifie la checklist avant exécution et liste les oublis
prompt:transform
Transforme un prompt en prompt exécutable compatible avec le Task Management System (TaskCreate/TaskUpdate/TaskList)
prompt:team
Orchestre une équipe d'agents spécialisés pour les tâches complexes. Auto-détecte le type, compose l'équipe, coordonne les phases analyse → challenge → implémentation → QA.
prompt:start
Démarre un développement avec un starter léger puis active le mode plan
apex
Systematic implementation using APEX methodology (Analyze-Plan-Execute-eXamine) with parallel agents, self-validation, and optional adversarial review. Use when implementing features, fixing bugs, or making code changes that benefit from structured workflow.
fix-errors
Fix all ESLint and TypeScript errors with parallel processing using snipper agents
prompt-creator
Expert prompt engineering for creating effective prompts for Claude, GPT, and other LLMs. Use when writing system prompts, user prompts, few-shot examples, or optimizing existing prompts for better performance.