Skip to the content.

Good Prompt Example: Decomposed Tasks with Clear Constraints

The Context

This came after the bad prompt in bad/example1.md where vague instructions led to unwanted file edits. The user had manually created the bad example file, and now wanted it improved.

The Prompt

Ok, so now first I want you to:
1. Make what is already in there, better readable in markdown.
   So think about perhaps ``` blocks. Don't fancy it up, keep it simple.

2. Explain how being vague, 'see if they still match' actually motivated
   you to update them, while that was not what I asked. I might have wanted
   only a report. But I did not specify.

So I should have probably added, no updating/editing, just analysis.

What the LLM Did

Step 1: Attempted to use Edit tool (failed due to formatting issues)

Tried to edit the existing file but ran into string matching problems with the raw execution output.

Step 2: Rewrote the entire file with Write tool

Created clean markdown structure:

Step 3: Added the requested explanation

Added sections explaining:

Result

Exactly what was requested: better readable markdown + explanation of the vagueness problem.


What Went Right

1. Decomposed Into Clear Tasks

1. Make what is already in there, better readable in markdown
2. Explain how being vague [...] motivated you to update them

Why this works:

2. Specific Instructions

Task 1: “better readable in markdown” + “think about ``` blocks”

Task 2: “Explain how being vague ‘see if they still match’ actually motivated you to update”

3. Explicit Constraints

"Don't fancy it up, keep it simple"

Why this matters:

4. User Provided Context/Reflection

"I might have wanted only a report. But I did not specify.
So I should have probably added, no updating/editing, just analysis."

Why this helps:


The Pattern

Good decomposed prompt structure:

[Context if needed]

[Numbered list of specific tasks]
1. [Task 1 with specific details]
2. [Task 2 with specific details]

[Constraints about how to do it]
[Optional: reflection/context about why]

Why This Works

Decomposition prevents conflation:

Specificity prevents guessing:

Constraints guide behavior:

Context provides direction:


Comparison: Bad → Good → Good

Original Bad Prompt

Go over each readme, and see if they still follow the purpose of their subdir.

Good Prompt (minimal action)

Read it don't do anything else.

This Good Prompt (complex action)

1. Make it readable in markdown (use code blocks, keep it simple)
2. Explain how vagueness caused the problem

The Lesson

For complex requests, decompose into numbered tasks with specific instructions and constraints.

Each task should:

The structure:

  1. Task 1: [specific action] [specific details] [constraints]
  2. Task 2: [specific action] [specific details] [constraints]

This prevents:

The key: Break down what you want, be specific about each piece, add constraints to guide behavior.

When tasks are clear and decomposed, the LLM completes each one correctly without guessing or over-helping.