Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 3.39 KB

File metadata and controls

43 lines (34 loc) · 3.39 KB
name validate-bug
description Bug report validation that investigates whether a reported bug is real and produces findings for the issue. Use when triaging a bug report from any issue tracker (Jira, Linear, GitHub Issues, etc.) — correlating symptoms with recent changes, checking prior history, and verifying against code. Presents findings to the user. Does not fix the bug.

Bug Report Validation

Investigate whether a reported bug is real, what likely caused it, and whether it has happened before. Apply this to the bug report in the user's prompt. Presents structured findings. Does not implement a fix.

Gotchas

  • Jumping to a fix. This validates and enriches. If confirmed, the findings give the next person everything they need.
  • Trusting the report at face value. Bug reports can be inaccurate — wrong component, misleading reproduction steps, symptoms mistaken for root cause. Verify against code.
  • Skipping the timeline. Most bugs start because something changed. Build the timeline before hypothesizing.
  • One research query for everything. Split the investigation: one call for what changed, one for whether it happened before.

How This Works

  1. Parse the bug report via context_get_urls (URL), context_search_issues or context_research (ticket ID), or from the prompt. Extract: reported symptom, expected behavior, affected component, reproduction steps, error messages, when it started, severity.
  2. Investigate via context_research:
    • Recent changes (effort: medium): "What changed in [affected component]? PRs merged around when [symptom] started, deployments, config changes, dependency updates."
    • Prior history (effort: medium): "Has [this bug or similar symptoms] been reported before? How was it resolved? Known failure modes or edge cases matching [symptom]?"
    • If there's an error message, run a targeted context_research (effort: low) anchored on the error text. If specific code is named, run a focused context_research (effort: low) to understand its expected behavior.
  3. Build a timeline — correlate findings chronologically: last known good state → what changed → first symptom. What changed between "working" and "broken"?
  4. Hypothesize and verify — 2-3 candidate root causes. For each: state it, assess likelihood from timeline and history, verify against code. Outcomes: Confirmed / Likely / Not Reproducible / Insufficient Information.
  5. Report findings using references/findings-template.md. Present to the user.

Tool Selection

Question Preferred tool Fallback
Broad investigation of changes and history context_research (effort: medium)
Focused question about specific code context_research (effort: low), or context_search_code (CLI) context_research with "Prefer code and implementation results" instruction
Debug an error message context_research (effort: low) anchored on the error text
Fetch ticket by URL context_get_urls
Fetch ticket by ID or query context_search_issues (CLI) context_research with "Prefer issue tracker results" instruction

Fine-grained tools (context_search_issues, context_search_code, context_search_prs, etc.) are available in the Unblocked CLI. On MCP, fall back to context_research with a steering instruction — see the unblocked-tools-guide skill for the full mapping.