Skip to content
Search prompts, tools, agents…

Bug triage to fix

A bug-fixing flow: reproduce, find the cause, write a failing test, fix, verify and summarise.

Free Intermediate 0 views 0 copies 0 downloads
Download file

Workflow file (JSON / YAML)

bug-triage-to-fix.yaml
name: bug-triage-to-fix
description: "A bug-fixing flow: reproduce, find the cause, write a failing test, fix, verify and summarise."
inputs:
  - "bug report"
  - "repository access"
steps:
  - id: 1
    name: "Reproduce"
    do: "Follow the report and reproduce the failure. Record exact steps."
  - id: 2
    name: "Locate"
    do: "Find the code responsible. Form two hypotheses."
  - id: 3
    name: "Test first"
    do: "Write a failing automated test that captures the bug."
  - id: 4
    name: "Fix"
    do: "Make the smallest change that makes the test pass."
  - id: 5
    name: "Verify"
    do: "Run the full test suite and the original steps."
  - id: 6
    name: "Summarise"
    do: "Write the cause, the fix and the test in the pull request description."
output: "A fix with a regression test and a pull request description."

How to use it

  1. Copy or download the file.
  2. Give it to your AI assistant with your inputs, or follow the steps yourself.
  3. Check the result of each step before moving to the next.

Try it

Fix the bug where discount codes apply twice.

A bug-fixing flow: reproduce, find the cause, write a failing test, fix, verify and summarise.

Join the conversation

Your email address will not be published. Required fields are marked *