Notre avis
Analyse en profondeur le code source pour identifier des bugs, comprendre des motifs ou explorer l'architecture.
Points forts
- Permet une investigation systématique en plusieurs étapes (hypothèses, validation, synthèse).
- Produit des rapports structurés (reports/analysis/) avec preuves et recommandations.
- Utilise des outils puissants (grep, git, tests) pour tracer le flux de données.
Limites
- Nécessite un accès aux outils Bash et Grep, ce qui limite la portée hors d'environnements en ligne de commande.
- La qualité de l'analyse dépend de la précision des arguments fournis par l'utilisateur.
- Peut être lent sur de très grandes bases de code sans indexation préalable.
Lorsque vous avez besoin d'une investigation structurée d'un bug complexe, d'une analyse de motifs de code ou d'une compréhension approfondie d'une partie du codebase.
Pour des questions triviales ou des corrections simples qui ne nécessitent pas une recherche multi-étapes.
Analyse de sécurité
SûrThe skill uses investigative bash commands (grep, find, git log) and does not include destructive or exfiltrating actions. Allowed tools are appropriate for analysis.
Aucun point d'attention détecté
Exemples
/analyse The login form fails silently with no error message. Check the authentication flow and recent changes./analyse Identify all places where we make external API calls and trace the data flow from request to response./analyse The home page loads 2x slower than last week. Investigate recent commits and find the bottleneck.name: analyse description: Investigate codebase, debug issues, or analyze patterns argument-hint: <issue or area to investigate> user-invocable: true allowed-tools:
- Read
- Grep
- Glob
- Bash
- WebSearch
/analyse - Code Investigation
Investigate codebase issues, debug problems, or analyze patterns.
Purpose
Provide deep analysis by:
- Investigating bugs and issues
- Analyzing code patterns
- Tracing data flow
- Identifying root causes
Inputs
$ARGUMENTS: Issue description or area to investigate${PROJECT_NAME}: Current project context- Error messages or symptoms if debugging
Outputs
Analysis report at reports/analysis/YYYY-MM-DD-topic.md
Workflow
1. Understand the Question
From $ARGUMENTS:
- Is this debugging an issue?
- Is this understanding a pattern?
- Is this exploring code structure?
2. Gather Context
- Read relevant code
- Search for patterns
- Check logs if available
- Review recent changes
3. Form Hypotheses
Based on initial investigation:
- What might cause this?
- What patterns are involved?
- What dependencies matter?
4. Investigate
For each hypothesis:
- Search for evidence
- Trace code paths
- Check data flow
- Test assumptions
5. Analyze Findings
Synthesize discoveries:
- What is the root cause?
- What patterns were found?
- What are the implications?
6. Document
Create analysis report:
# Analysis: [Topic]
**Date**: YYYY-MM-DD
**Scope**: [What was investigated]
**Conclusion**: [Key finding]
---
## Context
[What prompted this investigation]
## Investigation
### Approach
[How the investigation was conducted]
### Findings
#### Finding 1: [Title]
[Description of finding]
**Evidence**:
- [File:line - what was found]
- [Pattern observed]
#### Finding 2: [Title]
[Description]
## Root Cause
[If applicable, the underlying issue]
## Impact
[What this affects]
## Recommendations
1. [Recommendation 1]
2. [Recommendation 2]
## Related
- [Links to related code]
- [Links to docs]
Investigation Patterns
Bug Investigation
- Reproduce the issue
- Identify symptoms
- Trace to source
- Identify root cause
- Propose fix
Pattern Analysis
- Identify pattern instances
- Analyze commonalities
- Note variations
- Document implications
Code Structure Analysis
- Map components
- Trace dependencies
- Identify boundaries
- Document architecture
Performance Analysis
- Identify slow operations
- Profile if possible
- Analyze bottlenecks
- Propose optimizations
Tools for Investigation
# Search for patterns
grep -r "pattern" src/
# Find file types
find . -name "*.ts" -type f
# Git history
git log --oneline --all -- file.ts
git blame file.ts
# Test in isolation
npm test -- --grep "specific test"
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.