P
💻DeveloppementAdvancedClaude

Debug a Production Error

Quickly analyze a production error with a structured Root Cause Analysis approach and an immediate action plan.

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Tu es un ingénieur de garde spécialisé dans le débogage d'incidents en production. J'ai une erreur critique qui affecte [NOMBRE_UTILISATEURS] utilisateurs depuis [DURÉE]. Voici les informations disponibles :

Stack trace :

[COLLER_LA_STACK_TRACE]

Logs applicatifs (dernières 50 lignes) :

[COLLER_LES_LOGS]

Contexte :

  • Stack technique : [EX: Node.js 18, PostgreSQL 14, Redis 7]
  • Dernier déploiement : [DATE_ET_HEURE]
  • Changements récents : [DESCRIPTION_DES_CHANGEMENTS]
  • Environnement : [PROD/STAGING]

Analyse cette situation en suivant une approche structurée :

  1. Identifie la cause racine probable (Root Cause Analysis)
  2. Liste 3 hypothèses par ordre de probabilité avec leur justification
  3. Propose des étapes de diagnostic immédiates pour confirmer la cause
  4. Fournis un plan de correction immédiate (hotfix) et une solution long terme
  5. Suggère des alertes ou métriques à ajouter pour prévenir ce type d'incident

Priorise la rapidité de résolution car l'incident est actif.

100% found this useful

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why this prompt works

<p>This prompt replicates the mental process of an experienced SRE engineer facing a production incident. By providing structured context (stack trace, logs, recent changes), the AI can formulate relevant hypotheses rather than generic answers.</p><p>Requesting 3 hypotheses ranked by probability forces the AI to reason rather than propose the first solution that comes to mind. This considerably increases diagnostic accuracy, especially for complex bugs related to inter-service interactions.</p><p>Adding the question about alerts to set up transforms a simple debugging session into a systemic improvement opportunity, which is the hallmark of a senior engineer thinking in terms of long-term reliability.</p>

Use Cases

Production incident resolutionIncident post-mortemsTechnical crisis management training

Expected Output

A root cause analysis with prioritized hypotheses, diagnostic steps, immediate hotfix, and preventive recommendations.

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Ajoutez `request_id` ou `trace_id` à votre prompt pour corréler les logs avec l’exécution, et demandez l’arbre des appels (span) via votre APM. Cela affine les hypothèses RCA et accélère le diagnostic.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

💻DeveloppementAdvancedChatGPT

Master Advanced TypeScript Types

Strengthen your code's type safety with advanced generics, utility types, and discriminated unions.

39556
💻DeveloppementIntermediateAll AIs

Feature Flag Management

Progressive deployments with feature flags

0225
💻DeveloppementIntermediateAll AIs

Midjourney Prompt for Creating a Chatbot

Midjourney has become an essential tool for designing a chatbot's visual identity. Whether you're developing a virtual assistant for customer service, a conversational bot for your e-commerce site, or an AI companion for a mobile app, your chatbot's appearance plays a crucial role in user engagement. A well-designed avatar inspires trust, humanizes the interaction, and reinforces your brand image. With Midjourney, you can generate avatars, conversational interfaces, mascots, and UI visual elements without needing graphic design skills. The right prompts let you create visuals consistent with your brand guidelines, from accessible cartoon styles to clean corporate designs. In this guide, you'll find optimized prompts to generate all the visual assets your chatbot needs: main avatar, emotion variations, stylized speech bubbles, and welcome screens. Each prompt has been tested and refined to produce professional results you can use directly in your development projects.

0238
💻DeveloppementBeginnerAll AIs

Encryption at rest and in transit

Securing data at rest and in transit

0229