Workflow file (JSON / 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
- Copy or download the file.
- Give it to your AI assistant with your inputs, or follow the steps yourself.
- 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.