How to write a clear prompt for Claude

Write a Claude prompt with a goal, source material, constraints, and output format. Test it on a support handoff with missing information.

Begin with the decision or deliverable

Write the task in the first sentence. Give the reader, input, and result a name. For example, ask Claude to produce a support handoff for the evening shift using the notes from the day shift. That is specific enough to tell whether Claude delivered the right artifact.

For a handoff, the next reader needs to know what happened, whether a customer is blocked, and who should take the next action. These details belong in the prompt because Claude cannot reliably infer what your team considers a complete handoff.

Give it the input and rules for missing details

In the example below, the missing owner is deliberate. Provide rules for gaps you expect to encounter. This prevents a fluent sentence from hiding an unresolved assignment.

Code
Draft an evening-shift handoff from the notes below.
Return three lines: Status, Customer impact, Next action.
If the notes do not name an owner, write “Owner unassigned.”
Use only facts in the notes.

Notes
Ticket 481. Export stalls at step 2 for one test account.
Retrying on the same account has the same result.
A second account completed the export at 16:40.
No one has claimed the follow-up.

Check the output against the notes

A useful status line mentions the repeatable stall for one test account. The impact line should say that the scope is still unknown. The successful run on another account is evidence that at least one path works. It gives you no estimate of affected customers.

The next-action line should preserve the missing owner. A reasonable draft asks the shift lead to assign someone to compare the two accounts. If the handoff says the incident is resolved or gives a developer’s name, mark the response as incorrect and tighten the evidence rule.

Reuse the prompt on a different case

Try a completed ticket that names its owner. The new response should name the owner, and it should drop the unassigned label. Then try a ticket with no customer details and make sure the impact line reports the gap.

Save the prompt with those two test inputs. When the ticket format changes, rerun the known cases before asking the team to use the new version.

Claude prompting best practices

Related reading

The Reason Your Prompts Aren't Working

System Prompts Are the Real Leverage