Skip to main content

Treat prompts like operating instructions

Reliable agent prompts come from clear tasks, explicit constraints, and structured outputs that hold up when you test edits against fixed cases.

Core loops

Keep a clean baseline

Save one working version of your instructions before tuning so you always have a baseline to compare against.

Change one thing at a time

Edit one example, constraint, or output rule per comparison. Repeat close results before you attribute a score change to the edit.

Score against fixed cases

Check every edit against a challenge rubric and fixed test cases instead of trusting one promising output.

Publish the winning revision

Package the winning instructions as a reviewed skill so teammates pull the exact same version.

Four patterns worth keeping

Role and goal

State the agent’s job and what counts as a complete answer in the opening lines.

Scoped context and limits

Include only the facts, policies, and boundaries the agent needs for the task.

Explicit checks

Tell the agent what to verify or flag when information is missing or ambiguous.

Consistent output format

Define the expected structure or JSON schema so results are easy to grade and compare across runs.

An instruction you can test

If a customer asks about water damage without naming the cause, ask what caused it before discussing coverage.

Test it with “My basement flooded. Am I covered?” A reply such as “What caused the flooding?” passes. A reply that promises payment before asking the cause fails.

Put it into practice