Dev.to AI 🤖 Ai 👁 0 📖 2 min read

Prompt engineering didn't die, it got specific

Every few months someone declares prompt engineering dead. What they usually mean is that "act as a world-class expert and think step by step" stopped producing anything better than a plain request. That part is true. T

Every few months someone declares prompt engineering dead. What they usually mean is that
"act as a world-class expert and think step by step" stopped producing anything better than a plain
request.

That part is true. The generic prompt is dead. What replaced it is narrower and much less exciting.

What actually changed

A prompt that works today is not a personality instruction. It is three constraints:

  1. The exact input format you will give it, described before you give it anything.
  2. The exact output format you want back, including what to write when it cannot answer.
  3. The failure mode you already know about, named explicitly so it does not repeat it.

That is it. No roleplay, no "think hard", no chain-of-thought ritual.

A worked example

Bad prompt:

Act as an expert data analyst and analyze this CSV.

This produces a summary you could have written yourself from the column headers.

The prompt that actually worked on a real support-tickets export:

You will get a CSV with columns: id, created_at, channel, category, resolution_hours, reopened.

Return exactly this JSON:
{"median_hours": number, "p90_hours": number, "reopened_rate": number,
 "worst_category": string, "caveat": string}

Rules:
- compute from the rows only, do not estimate
- if a column is missing, set the value to null and say which column in "caveat"
- if resolution_hours contains non-numeric values, drop those rows and report how many in "caveat"
- do not round p90 to fewer than 2 decimals

Two things made the difference. The output schema removed the model's freedom to write prose, and
the third rule addressed a failure I had already seen twice.

The part nobody writes about

I ran both prompts on the same file. The "act as an expert" version gave me a confident paragraph that
mentioned a 4.2 day average. The real median was 1.8 days, skewed by eleven rows where
resolution_hours was blank and the model silently treated them as zero.

The structured prompt returned median_hours: 1.8 and a caveat saying eleven rows were dropped.

Same model. Same file. One prompt had the failure named in advance.

What to do with this

Before you write a prompt, answer one question: what will this get wrong, and how would I notice?

If you cannot answer that, the prompt is not ready. You will get output, it will look fine, and the
error will be in the number you did not check.

That is the whole discipline now. Not clever phrasing — an inventory of failure modes, one line each,
written into the instructions.

I write these up as they happen, prompt and failure both included, in a small Telegram channel:
AI Frame.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.