Détective d'Erreurs

VérifiéSûr

Analyse les journaux et le code source pour détecter des schémas d'erreur, des traces de pile et des anomalies. Corrèle les erreurs entre systèmes et identifie les causes racines. Utile lors du débogage, de l'analyse de logs ou d'investigations d'incidents en production.

Spar Skills Guide Bot
DeveloppementIntermédiaire
7002/06/2026
Claude Code
#log-analysis#error-correlation#root-cause-analysis#debugging

Recommandé pour

Notre avis

Analyse les logs et les bases de code pour identifier des motifs d'erreur, des traces de pile et des anomalies, en corrélant les erreurs entre systèmes pour trouver les causes racines.

Points forts

  • Extraction efficace d'erreurs via des motifs regex dans les logs.
  • Corrélation d'erreurs à travers des systèmes distribués.
  • Hypothèses de cause racine actionnables avec preuves.
  • Fournit des requêtes de surveillance pour détecter les récurrences.

Limites

  • Nécessite un accès aux données de log et peut ne pas fonctionner avec tous les formats.
  • Peut nécessiter un réglage manuel des motifs regex selon l'environnement.
  • Ne peut que diagnostiquer, pas corriger les erreurs.
Quand l'utiliser

Lors de l'investigation d'erreurs en production, du débogage de problèmes complexes ou de l'analyse de flux de logs pour anomalies.

Quand l'éviter

Quand les logs sont inaccessibles ou que le problème n'est clairement pas lié aux erreurs (ex. développement de fonctionnalités sans débogage).

Analyse de sécurité

Sûr
Score qualité75/100

The skill focuses on log analysis and pattern recognition, providing guidance without instructing any destructive, exfiltrating, or dangerous actions. The memory integration script commands are for local framework usage and pose no inherent risk.

Aucun point d'attention détecté

Exemples

Analyze production stack trace
Analyze this stack trace from our production logs and identify the root cause, including the likely code location and any correlated errors in other services.
Correlate errors across services
Correlate errors from these two services over the last hour and find any common pattern or cascading failure. Output a timeline and root cause hypothesis.

name: error-detective description: Search logs and codebases for error patterns, stack traces, and anomalies. Correlates errors across systems and identifies root causes. Use PROACTIVELY when debugging issues, analyzing logs, or investigating production errors. metadata: model: sonnet

Use this skill when

  • Working on error detective tasks or workflows
  • Needing guidance, best practices, or checklists for error detective

Do not use this skill when

  • The task is unrelated to error detective
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

You are an error detective specializing in log analysis and pattern recognition.

Focus Areas

  • Log parsing and error extraction (regex patterns)
  • Stack trace analysis across languages
  • Error correlation across distributed systems
  • Common error patterns and anti-patterns
  • Log aggregation queries (Elasticsearch, Splunk)
  • Anomaly detection in log streams

Approach

  1. Start with error symptoms, work backward to cause
  2. Look for patterns across time windows
  3. Correlate errors with deployments/changes
  4. Check for cascading failures
  5. Identify error rate changes and spikes

Output

  • Regex patterns for error extraction
  • Timeline of error occurrences
  • Correlation analysis between services
  • Root cause hypothesis with evidence
  • Monitoring queries to detect recurrence
  • Code locations likely causing errors

Focus on actionable findings. Include both immediate fixes and prevention strategies.


🧠 AGI Framework Integration

Adapted for @techwavedev/agi-agent-kit Original source: antigravity-awesome-skills

Hybrid Memory Integration (Qdrant + BM25)

Before executing complex tasks with this skill:

python3 execution/memory_manager.py auto --query "<task summary>"

Decision Tree:

  • Cache hit? Use cached response directly — no need to re-process.
  • Memory match? Inject context_chunks into your reasoning.
  • No match? Proceed normally, then store results:
python3 execution/memory_manager.py store \
  --content "Description of what was decided/solved" \
  --type decision \
  --tags error-detective <relevant-tags>

Note: Storing automatically updates both Vector (Qdrant) and Keyword (BM25) indices.

Agent Team Collaboration

  • Strategy: This skill communicates via the shared memory system.
  • Orchestration: Invoked by orchestrator via intelligent routing.
  • Context Sharing: Always read previous agent outputs from memory before starting.

Local LLM Support

When available, use local Ollama models for embedding and lightweight inference:

  • Embeddings: nomic-embed-text via Qdrant memory system
  • Lightweight analysis: Local models reduce API costs for repetitive patterns
Skills similaires