evilgenius.id
Notes

Write a prompt in 4 parts, and ask before you write

4 Dec 20263 min readLLM OpsPrompting

A good prompt has 4 parts: a role, the inputs, the output format and the rules. Most prompt tools are the same template with different words filled in. If you write the 4 parts yourself, you don’t need the tool. If you’d rather not, the free prompt generator writes them for you and asks about the gaps first.

I found this by reading how Prompt Cowboy works. Its public page and shipped JavaScript show about 440 templates in one fixed shape. A cheap model fills them in.

The 4 parts

  1. Role. Who the model acts as. “You are a social media copywriter for a small coffee shop.”
  2. Inputs. The facts it needs, with the required ones marked. Product, platform, offer, deadline.
  3. Output format. What you want back: how many versions, what length, what layout.
  4. Rules. A word limit and a list of phrases to avoid.

An example

Rough ask: “caption IG promo diskon akhir tahun kopi susu 20% sampai 31 Desember”.

The 4 parts for it:

  • Role: copywriter for a coffee shop’s Instagram.
  • Inputs (required): product is kopi susu, offer is 20% off, deadline is 31 December, platform is Instagram.
  • Output format: 3 captions, each with 1 call to action.
  • Rules: under 40 words each, no “terbatas” filler, no more than 2 emoji.

The rough ask already holds the product, the offer, the deadline and the platform. The role, the format and the rules are missing, and those are the parts people forget.

Ask before you write

Almost no tool asks you anything. In a comparison of 10 prompt tools, only Prompt Cowboy asked clarifying questions. That is the cheapest fix for a weak prompt: spot the blank required slot and fill it before the model writes.

The check is simple. For each required slot, ask yes or no: is it already in the ask? Ask the user only about the slots that are missing. My first version asked for the product, platform and date that the user had just typed, and that was the most annoying bug I found.

Two traps

  • Language. I picked Indonesian and got an English prompt back. The English template text outweighed the language instruction. Write the template in the language you want out, then check the output.
  • Wrong job. The writer once produced the grading rubric itself instead of a prompt for writing one. A model can pass its own check on that. Read the first line of any generated prompt before you use it.

Try it

The prompt generator covers 5 outputs: grading rubric, meeting minutes, PRD and user stories, code review, and caption and copywriting. It asks up to 3 questions, which you can skip, and gives you a prompt to paste into ChatGPT, Gemini or Claude. It is free and needs no login. Nothing is saved. Indonesian is the default, with an EN switch.

It is not perfect. Optional details stay as blank [SLOT] placeholders for you to fill, and the banned-phrase list is still in English inside Indonesian prompts. The build log is in the Lab entry.