Skip to content

Development & Engineering

Repro Debugging

Free

Reproduce a bug with the smallest input, then change one thing and show the before and after.

Difficulty foundational
Version v1.1

Purpose

Stop speculative rewrites when something is broken.

Procedure

--- name: repro-debugging description: Reproduce a bug with the smallest input, then change one thing and show the before and after. ---

Repro Debugging

Purpose

Stop speculative rewrites when something is broken.

Procedure

Do not rewrite the feature to "see if it fixes it".

Steps:

  1. Restate the bug as: input, what happened, what should happen.
  2. Find the smallest input that still fails. Remove unrelated styling and data until the failure remains.
  3. Locate the first wrong value (log it once, or read it). Note the file and the condition.
  4. Form one hypothesis. Change one thing. Re-run the same input.
  5. If it still fails, revert that change unless it fixed a separate, real defect you can explain. Try the next hypothesis.
  6. When it passes, look for the same pattern nearby (the other branch, the other button) and fix that too if it is the same mistake.

Report: cause, change, and the check you ran. If you could not reproduce it, say what you tried and stop. Do not ship a guess.

Do not "fix" a bug by catching the error and returning an empty success.

Example requests

1. A filter returns nothing

Request: Search says there are no skills when the box is empty. Use Repro Debugging. Expected: A cause, a small fix, and how you confirmed it.

Dependencies

None. Work in the repository that is already open. Do not add packages unless the procedure names one.

Compatibility

This document follows the Agent Skills layout (a folder named repro-debugging containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it.

Example prompts

A filter returns nothing

Search says there are no skills when the box is empty. Use Repro Debugging.

Expected: A cause, a small fix, and how you confirmed it.

Choose the agent

This skill is installed for one agent at a time. Pick the section you are using.

Related

  • Test Plan

    Add the smallest test that would have caught the bug, or a checklist if the change is visual.

  • Web Performance

    Remove accidental work: extra queries, giant client payloads, and layout-thrashing effects.

  • Incident Review

    Write a short incident note: impact, timeline, cause, and the fix that prevents the same class.

Reviews

No reviews yet.

    Sign in to review.

    Report a problem

    Inaccurate steps, an unsafe instruction, or a licensing concern.

    Sign in to report.