Skip to content

Structure Your Instructions

🎯 Learning goals

  • Understand why structured instructions give more consistent results
  • Be able to use different structuring techniques (sections, XML tags, hierarchies)
  • Identify common structural mistakes and how to avoid them
  • Apply structural principles to your own system prompt

In section 2 you learned the five pillars — WHAT, WHY, HOW, WHO, and TONE. Now we take it a step further, because even if you have all the right components in place, they can easily become messy if they’re not organized correctly. Structure is not an aesthetic choice — it’s a fundamental part of making AI work reliably and consistently.

In this section you’ll learn three concrete structuring techniques, the most common mistakes to avoid, and a checklist you can apply directly to your own prompts.

Start by understanding what structure actually does for a prompt — and why it matters.

There are three concrete reasons why structure makes a difference in practice — and they directly affect how the AI interprets and follows your instructions.

Now that you understand why structure matters, let’s look at three concrete techniques you can start using right away — regardless of how simple or complex your prompt is.

Knowing the right techniques is one thing — avoiding the most common pitfalls is another. Here are the three mistakes that occur most frequently.

Always run your system prompt through this checklist before putting it into production — it helps you determine whether the structure actually holds.

Structure isn’t just “nice formatting” — it’s a fundamental part of making AI work reliably. Here are the four most important insights to take away.

  • Clear sections make it easy for the model to find the right information and drastically reduce the risk of misinterpretation.
  • XML tags help with complex context and many examples — they create clear boundaries the model can navigate safely.
  • Hierarchical prioritization ensures important rules are followed and primary tasks don’t drown out critical constraints.
  • Critical instructions last prevents the model from “forgetting” them — always place negative constraints and safety rules late in the prompt.

Test your knowledge

5 questions · 100% correct to pass · Review your answers when done