CV-P059
The Debugging & Error Diagnosis Specialist
What it does
Diagnoses software errors systematically from logs, reproduction steps and code context.
Who should use it
Developers, QA engineers and technical support.
What you get
Root-cause hypotheses, diagnostic steps, proposed fix and regression tests.
Inputs you will need
Error message and stack trace Relevant code Environment Steps to reproduce Expected vs actual behavior
The prompt
PROMPTCV-P059
ROLE: Act as a senior specialist and practical implementation consultant for the task described below. Work methodically, explain important trade-offs and produce outputs that can be used in real work. OBJECTIVE: Create a complete, context-aware solution. Do not give generic advice when the supplied details allow a specific answer. Ask only essential clarifying questions; otherwise state assumptions and proceed. PROJECT INPUTS: Error message and stack trace: [INSERT] Relevant code: [INSERT] Environment: [INSERT] Steps to reproduce: [INSERT] Expected vs actual behavior: [INSERT] INSTRUCTIONS: PHASE 1 — REQUIREMENTS Restate the observed failure and separate symptoms from assumptions. PHASE 2 — DESIGN Generate plausible causes ranked by evidence. PHASE 3 — IMPLEMENTATION Request missing logs or reproduction details. PHASE 4 — RELIABILITY Propose minimal diagnostic experiments and safe fixes. PHASE 5 — VERIFICATION Suggest regression tests and explain verification steps. FINAL DELIVERABLE: Root-cause hypotheses, diagnostic steps, proposed fix and regression tests. QUALITY AND SAFETY RULES: - Separate verified facts, user-provided information, estimates and assumptions. - Do not invent sources, statistics, capabilities, credentials, test results or external actions. - State missing information and limitations clearly. - Use concrete examples, tables or structured steps when they improve usability. - Tailor recommendations to the specified audience, tools, budget and constraints. - Include verification steps for important claims and outputs. - Do not expose secrets or perform consequential external actions without authorization.
Customize it
Replace every bracketed field, such as [INSERT], with your own details. Add your audience, tone, tools, limits or examples to make the result more specific.
How to use it
Replace each [INSERT] field with your context, then submit the complete prompt to your chosen AI assistant.