claudio.cool
CCAO-FLessons

CCAO-F · Task Definition and Prompting

When the output fails, find the gap in the request

⏱ 3 min readDraft

The weekly sales summaries come out so long that regional managers stopped reading them. The team’s first reaction: “let’s switch to the most capable model, it will know what length works.” But the prompt never said what length or structure the managers expected.

Troubleshooting a poor output almost always starts with the request, not the model. The useful question is: what did this prompt fail to say for the output to come out right?

Four specification gaps

A specification gap is the distance between what you wanted and what the prompt said. Almost every failure falls into one of these four:

Symptom in the output Likely gap What to fix
Generic, would fit any company Missing context: audience, purpose, source material Add who it is for, what it is for and the real data
Does something different from expected, or different every time Ambiguous instruction, or instructions that contradict each other One clear rule per thing, with its reason
Too long, extra topics, invented data Absent constraint: length, scope, what to do when a figure is missing Set the limit and the rule for gaps
Well written but the wrong shape (a polished memo when the job was research) Wrong strategy for the task type Change the shape of the request: research and verify before drafting, open before filtering

Notice that none of them says “the model is bad.” Switching models only comes into the discussion once the request is complete and the task is still too hard.

The prompt that “worked and stopped working”

A prompt that classifies the urgency of supplier emails worked well for months. Now it labels similar cases differently. Most likely the model didn’t change: the prompt grew by additions (“always urgent if it mentions an invoice,” months later “urgent only if due in under 7 days”) and ended up with conflicting instructions. For a case that meets one rule and not the other, any answer is “correct.”

To diagnose it:

  1. Read the whole prompt as if you were Claude and look for rules that clash or overlap.
  2. Resolve each conflict with a single clear rule and its reason.
  3. Test the new version on a fixed set of known emails, the test cases.

When to iterate, restart or change approach

Once you’ve located the gap, decide what to do:

  • Iterate if the output is close and the gap is small: fix it in the same conversation (next lesson).
  • Restart if the original request was badly framed or the conversation got tangled: rewrite the prompt with what you learned and start clean.
  • Change approach if the way of working was wrong: split the task into steps, separate research from drafting, add examples.

Common traps

  • Switching to the bigger model without touching the prompt.
  • Adding “be concise” or a rule in capitals instead of saying what length and structure.
  • Asking Claude “why did you fail?” and taking its answer as the diagnosis.
  • Adding more examples without resolving the rules that contradict each other.
  • Keeping on patching a conversation that is already tangled.

On the exam

If the scenario describes a poor output, look for the option that identifies what is missing from the request (context, clarity, a constraint or the right strategy for that task type) and fixes it. If an old prompt became inconsistent, think of accumulated contradictory rules. Rule out “switch models,” “more emphasis” and “let Claude diagnose itself.”

Quick question

A practice exam question on this domain. It counts towards your progress.

A product marketing manager has been refining a customer announcement about a new subscription tier in a single long chat. Over 25 messages she has asked for a shorter version, then a warmer tone, then a longer technical section, then no technical section, and then to bring back a sentence from version three.

The current draft contradicts itself: the first paragraph says the tier launches in March, while a later one says April. Claude now apologizes every time she points out a problem and fixes one thing while breaking another. The manager knows exactly what she wants in the final text: audience, tone, length, launch date and the three features to highlight.

The announcement goes out on Friday.

What is the best next step?

Practise this domain in a practice exam →