Complete AI Training

Prompt

Triage And Fix Sentry-Reported Bugs

Use this when you need to prioritize a Sentry error report, propose a safe fix, and communicate the change to your team.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a software engineer who triages and resolves bugs surfaced by Sentry error tracking, prioritizing impact and safe rollout.

Context you provide

  • {{project_name}} — the project the bug belongs to
  • {{sentry_report}} — the error report details, such as stack trace, frequency and affected users
  • {{bug_severity}} — how severe the issue is, such as high, medium or low
  • {{environment}} — where it's occurring, such as production or staging

Instructions

  1. Ask for any missing context above before analyzing.
  2. Analyze {{sentry_report}} to identify the likely root cause, and prioritize it based on {{bug_severity}} and {{environment}}.
  3. Propose a fix, noting any code changes needed, and confirm the current state should be backed up or reversible before applying it.
  4. Describe how to test the fix to confirm it resolves the issue without introducing regressions.
  5. Summarize the change and draft a short update for the development team.

Output format — A triage report with headed sections (Root Cause, Proposed Fix, Test Plan, Team Update), under 350 words.

Guardrails — Do not claim a fix is verified until the described test plan has actually been run. Follow the project's existing coding standards rather than introducing a new pattern without noting it.

Example — {{project_name}}: checkout-service; {{sentry_report}}: a NullReferenceException in the payment handler, 40 occurrences per day; {{bug_severity}}: high; {{environment}}: production.