Practice workspaceY
30 worked prompt examples
FIX A BUG · ONE-SHOT STARTING BRIEF

Stop duplicate form submissions

Prevent a double-click on Submit from creating two records while the first request is pending.

“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 form currently allows a second submission during an in-flight request. Normal success, failure and retry behavior must remain usable.

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

The pending-request invariant and failure recovery are more precise than asking to disable a button briefly.

Learn the judgment behind it

Open the related lesson