Practice workspaceY
30 worked prompt examples
TESTING · ONE-SHOT STARTING BRIEF

Write a regression test before fixing

Create a focused failing test for the reported bug before changing the implementation.

“One-shot” means a complete starting request, not guaranteed success in one attempt. Confirm the scenario assumptions, adapt the brief to your repository, and inspect the resulting diff and verification evidence.

The scenario

The repository has a test framework and an existing reproduction supplied with this task.

Required context: a selected repository matching this scenario, relevant task evidence, and access to its instructions and checks. Use redacted or synthetic data where appropriate.

Adapt the complete prompt

Edits stay in this browser tab. Saving bookmarks the original example; export your edited version to keep it elsewhere.

Why this is a strong example

It demands a discriminating failure before the fix, which is stronger than adding a permanently green test afterwards.

Learn the judgment behind it

Open the related lesson