From a bug report: create a minimal reproduction (steps + expected + actual), a failing test that captures the bug, then fix code to make the test pass.
Discovered on Twitter via @eng_khairallah1