ForkFree

Prompts / Coding

Audit First, Then Build One Slice

You get a ranked list of problems, then one small fix with a test written first, instead of a large rewrite you can't review. It works because the audit stops the AI changing things blindly, and a runnable check gives it a clear finish line.

Struggled in our testIt kept the four headings and the closing confirmation line, and it was honest that it hadn't seen the code. But it didn't do the audit (the list is unverified guesses) and it wrote no code. It also never looked in the working directory before saying it couldn't read the folder. The check is only a placeholder spec, so steps 1, 2 and 4 are largely unmet.

The prompt

Act as a careful senior developer who works in small, checkable steps.

Task: Help me improve {project_description} by auditing it first, then planning one small, testable change for this goal: {goal}.

Steps:
1. Audit only. Do not write or change any code. List the problems you find, ranked from most to least serious, with a one-line reason for each.
2. From that list, choose the single problem that best serves my goal, and describe the smallest runnable slice that fixes it.
3. Write the finish line as a check I can run, such as {success_check}. Write this check before any code.
4. Only then write the code for that slice, kept small enough for me to review as one diff.
5. Stop and tell me what to review. Do not continue to the next slice until I reply.

Output: Four headed sections: "Ranked audit", "Chosen slice", "Check", "Code". Finish with one line saying what I should confirm before we move on.

Change the parts in curly braces. Use it when you inherit a messy codebase or want to add to a working app without the AI rewriting things you didn't ask about.

What happened when we ran it

We sent

Act as a careful senior developer who works in small, checkable steps.

Task: Help me improve a small Node.js app for a bakery that takes weekly wholesale orders by email, copies them into a spreadsheet and produces an invoice PDF for each café. Invoices sometimes show the wrong totals, and duplicate orders appear when the same email is processed twice. by auditing it first, then planning one small, testable change for this goal: make the invoice totals reliable so I can send them to customers without checking each one by hand.

Steps:
1. Audit only. Do not write or change any code. List the problems you find, ranked from most to least serious, with a one-line reason for each.
2. From that list, choose the single problem that best serves my goal, and describe the smallest runnable slice that fixes it.
3. Write the finish line as a check I can run, such as a test where the invoice total for order 1042, which has 12 items and 20% VAT, equals £186.00, and the number of spreadsheet rows matches the number of unique emails processed. Write this check before any code.
4. Only then write the code for that slice, kept small enough for me to review as one diff.
5. Stop and tell me what to review. Do not continue to the next slice until I reply.

Output: Four headed sections: "Ranked audit", "Chosen slice", "Check", "Code". Finish with one line saying what I should confirm before we move on.

The model replied

## Ranked audit I haven't seen your code. No files were shared and I can't read the folder in this turn, so I can't give you a real audit. A ranked list from me now would be guesses presented as findings. These are the usual causes of your two symptoms, in the order I'd check them, and each is **unverified**: 1. **Money calculated in floating-point pounds.** Values like 0.1 + 0.2 drift, so totals can be off by a penny. 2. **VAT rounding is inconsistent.** Rounding per line versus on the total gives different answers, and the PDF and spreadsheet may do it differently. 3. **Quantities or prices parsed from email text stay as strings.** `"12" + "1"` becomes `"121"`, which gives wildly wrong totals. 4. **Totals are calculated in more than one place** (PDF code, spreadsheet code), so they can disagree. 5. **No idempotency key for emails.** Processing the same email twice creates a duplicate, and the email's `Message-ID` header is the natural key. 6. **Prices are looked up at invoice time**, so a later price change silently alters old invoices. To turn this into a real audit, please paste or point me to: - the file that parses the email into an order - the code that calculates totals and builds the PDF - the code that writes to the spreadsheet - `package.json` ## Chosen slice This is provisional until I've seen the code. The likely best fit for reliable totals is **one `calculateInvoice(order)` function that works in integer pence and rounds VAT once, on the net total.** Both the PDF and the spreadsheet would call it. The duplicate-email fix is a separate slice for later. ## Check I'm writing this as a specification now. The file and function names are placeholders until I see your layout. For order 1042 (12 items, 20% VAT, £186.00 gross), the numbers must be: | | Pence | Pounds | |---|---|---| | Net | 15500 | £155.00 | | VAT | 3100 | £31.00 | | Gross | 18600 | £186.00 | - `calculateInvoice(order1042)` returns `{ net: 15500, vat: 3100, gross: 18600 }`. - The total printed on the PDF for 1042 equals `gross`. - A quantity of `"12"` as a string gives the same result as `12`. - (Next slice) The number of spreadsheet rows equals the number of unique `Message-ID`s processed, even if the same email is run twice. I need the real line prices for order 1042 to build the test fixture. I've assumed they sum to £155.00 net. ## Code None yet. Writing it now would mean inventing your file structure, and you couldn't review that as a real diff. **Before we move on, please confirm:** can you share the four items above, and is £155.00 net the correct figure for order 1042?

Run on Claude Sonnet 5.5, 25 Nov 2026. Automatic check: 2 out of 5.

Mentioned for

Claude Code

Where it came from

Found on Web, shared by SaaSCity Team (editorial byline): Claude Code Project Ideas (November 2026): 25 Builds With Copy-Paste Prompts, From First Weekend to Paid.

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

More coding prompts

Coding Struggled in our test
Fresh-Eyes Audit of AI-Written Code Changes

You get a blunt verdict on whether an AI agent's code change really does what it says, with problems listed by file and a clear list of what is still unproven. It works because the reviewer judges the real diff and test output rather than the agent's own account of its work.

Found on GitHub, shared by vaibhav-space
Coding Worked in our test
Make AI Challenge Your Requirements First

You get a clear review of what a feature will really cost in speed, security and design, with alternatives and a recommendation. It works because the AI is asked to question the request and ask you before it decides anything.

Found on Hacker News, shared by QueensGambit
Coding Worked in our test
Generate Strict JSON Spec From Description

You get a clean, machine-readable JSON object that matches your rules on the first try. It works because the model reads the rules first, then checks its own answer against each one before replying.

Found on GitHub, shared by DominikScholz