HaiAI123

Curated Global AI Tools Directory

Industry update
25
heat index
Flat

Using Gherkin’s Given/When/Then structure for AI coding prompts

12/02/2026 — 12/02, 20:20·1 sources (all)·1 reports (all)

Key takeaways

  • A community post argues that most advice to “be specific” with prompts does not explain what specificity looks like. Borrowing Gherkin’s Giv…

Background & analysis

On December 2, 2026, a DEV Community post argued that most advice on prompting AI coding tools stops at "be specific" without explaining what specific actually looks like. The author's answer is to borrow the shape of a Gherkin scenario: a Given clause states the preconditions, a When clause states the action to be taken, and a Then clause states the expected result, so that a request cannot leave out the details that matter.

The author is explicit about the boundaries. This is not about writing test scenarios, and it is not about setting up a BDD framework; the point is only to reuse the shape of a Gherkin scenario when writing the request handed to an AI tool. The post also discusses why vague prompts go wrong, though the available summary does not go into that section. As of the material available, the matter rests at a community post proposing the method, with no reported follow-up.

AI-generated from 1 reports · updated 3 days ago

updream
24-hour heatHeat index 25
Just charted — trend is building up
24 hours agonow

Reports on this story headlines open the original

Dec 2
  1. Most prompting advice for AI coding tools stops at "be specific," which doesn't say what specific looks like. This post suggests borrowing the Given/When/Then shape of a Gherkin scenario so the request can't omit preconditions, actions, or expected outcomes — not writing tests, and not setting up a BDD framework.

    DEV Community · AIAI score 53

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →