ForkFree

Prompts / Research and analysis

Fix Prompts With Smallest Failure-Driven Edit

You get a focused, low-risk fix for a prompt that is failing some of the time, instead of a full rewrite. It works because the edit is driven by the most common failure and checked against cases that already work.

Partly workedThe grouping, the dominant pattern (3 of 4) and the four-section format with a before/after and three bullets are correct. However, it never says which parts of the prompt are working (step 2). The edit is three sentences, not the "one or two" asked for. It also adds a "team will follow up" promise that the notes don't support. Together these make it less minimal than requested.

The prompt

Act as a careful prompt engineer who improves prompts using evidence from test results, not guesswork.

Task: Review the current prompt and its test results, find the single most common failure pattern, and propose the smallest edit that fixes it without breaking the cases that already pass.

Current prompt:
{current_prompt}

Passing examples:
{passing_cases}

Failing examples:
{failing_cases}

Steps:
1. Group the failing examples by cause, such as missing format, wrong tone, ignored constraint or invented facts. Count each group and name the largest one as the dominant pattern.
2. Read the passing examples and note which parts of the current prompt are clearly working, so you leave them untouched.
3. Write one minimal change, ideally one or two sentences added or reworded, that targets only the dominant pattern.
4. Check the change against every passing example and say whether it could cause a regression. If it could, narrow the edit.
5. State how to confirm the fix: which failing cases should now pass and which passing cases to re-run.

Output: Four headed sections: "Failure groups" (a short table with counts), "Dominant pattern", "Proposed edit" (a before and after of only the changed lines), and "Risk and retest" (three bullet points maximum). No rewriting of the whole prompt.

Change the parts in curly braces. Use it after you have run a prompt on at least 10 to 20 real cases and have a mix of passes and failures to show.

What happened when we ran it

We sent

Act as a careful prompt engineer who improves prompts using evidence from test results, not guesswork.

Task: Review the current prompt and its test results, find the single most common failure pattern, and propose the smallest edit that fixes it without breaking the cases that already pass.

Current prompt:
You are a support assistant for Brightleaf Plants, an online plant shop. Reply to the customer's email in a friendly tone. Answer their question using the policy notes provided. Keep the reply under 120 words and sign off as the Brightleaf team.

Passing examples:
Case 1: Customer asked how often to water a fern. Reply was friendly, 85 words, accurate and signed off correctly. Case 2: Customer asked about delivery times to Scotland. Reply gave 3 to 5 working days from the policy notes, 70 words, signed correctly. Case 3: Customer thanked us for a quick delivery. Reply was warm, short and signed correctly.

Failing examples:
Case 4: Customer asked for a refund on a dead cactus. Reply promised a full refund, but the policy only allows replacement within 14 days. Case 5: Customer asked if we ship to France. Reply said yes with a 2 day delivery time, but the policy notes do not cover France. Case 6: Customer asked for a refund on a damaged pot. Reply offered a refund and a 20 percent discount, neither of which is in the policy notes. Case 7: Customer asked for a care guide PDF. Reply was 180 words, over the limit.

Steps:
1. Group the failing examples by cause, such as missing format, wrong tone, ignored constraint or invented facts. Count each group and name the largest one as the dominant pattern.
2. Read the passing examples and note which parts of the current prompt are clearly working, so you leave them untouched.
3. Write one minimal change, ideally one or two sentences added or reworded, that targets only the dominant pattern.
4. Check the change against every passing example and say whether it could cause a regression. If it could, narrow the edit.
5. State how to confirm the fix: which failing cases should now pass and which passing cases to re-run.

Output: Four headed sections: "Failure groups" (a short table with counts), "Dominant pattern", "Proposed edit" (a before and after of only the changed lines), and "Risk and retest" (three bullet points maximum). No rewriting of the whole prompt.

The model replied

## Failure groups | Group | Cases | Count | |---|---|---| | Invented or unsupported facts/policy (refund promised against policy, France shipping not in notes, refund and discount not in notes) | 4, 5, 6 | 3 | | Ignored constraint (length over 120 words) | 7 | 1 | | Missing format / wrong tone | none | 0 | ## Dominant pattern Invented or unsupported claims: in 3 of 4 failures the reply states commitments or facts that are absent from, or contradict, the policy notes. The prompt says to "answer using the policy notes" but never says what to do when the notes don't cover the question or when the customer asks for something the notes don't allow. The model fills the gap by being agreeable. ## Proposed edit **Before:** > Answer their question using the policy notes provided. **After:** > Answer their question using only the policy notes provided. Do not promise refunds, discounts, delivery times or anything else the notes don't state. If the notes don't cover the question or don't allow what the customer asks for, say so politely, offer only the option the notes allow (if any), and say the team will follow up. ## Risk and retest - **Regression risk is low.** Cases 1 and 2 are answered directly from the notes, and Case 3 needs no policy lookup, so "only the notes" shouldn't change them. The one watch-out is Case 1: if watering advice came from general knowledge rather than the notes, the stricter wording could make the reply refuse or hedge. If so, change to "only the policy notes for policies, prices and delivery" so general plant care is unaffected. - **Expected fixes:** Case 4 (offers replacement within 14 days, not a refund), Case 5 (says France isn't covered and the team will follow up), Case 6 (no invented refund or discount). Case 7 (length) is not targeted and will likely still fail, which is a separate one-line fix for later. The added text may push replies closer to 120 words, so check word counts. - **Retest:** Re-run Cases 1-3 and confirm they stay friendly, under 120 words, accurate, and signed "the Brightleaf team". Then re-run 4-6, and 7 to confirm it is unchanged. Ideally add one or two new cases where the notes don't cover the question to check the fallback wording isn't over-triggered.

Run on Claude Sonnet 5.5, 24 Nov 2026. Automatic check: 3 out of 5.

Mentioned for

Claude, ChatGPT, Gemini

Where it came from

Found on GitHub, shared by awslabs: awslabs/ai-eval-studio.

This is our own version of the idea, written and tested by us. The original may differ.

More research and analysis prompts

Research and analysis Worked in our test
Build a Portable Project Brief

You get a short, four-part markdown brief that you can paste into any assistant, so you do not have to explain the project again. It works because it fixes the structure, keeps the reasons next to the decisions and records failed attempts so they are not suggested again.

Found on Web, shared by Nick Woodhead (DEV Community), 23 Nov
Research and analysis Worked in our test
Fresh Eyes Review of Your Document

You get a list of gaps, unclear wording and risks in a document, found by a reviewer who has no inside knowledge. It works because the model can't fill holes with the context you already carry in your head.

Found on GitHub, shared by google
Research and analysis Worked in our test
Skeptic Review Against Pass/Fail Criteria

You get a verdict of PASS, FAIL or UNCERTAIN on each requirement, with quoted evidence, so you know exactly what to fix. It works because the criteria are agreed up front and the reviewer is told to find faults rather than be agreeable.

Found on Web, shared by The Neuron (via Don Giannatti's newsletter)