Difficulty: Intermediate · Estimated time: 20 min
What You'll Learn
The five parts every solid agent instruction set needs, and how to write each one so the agent behaves consistently instead of improvising.
Why This Matters
A rough instruction set like the one from the last guide works until it doesn't — the agent drifts, guesses at formatting, or wanders into territory you didn't want it in. The fix isn't more instructions, it's better-structured ones.
The Concept
Good agent instructions have five parts, in this order:
Skip the constraints and the agent will happily do things you never wanted (sending instead of drafting, inventing figures it doesn't have). Skip the output spec and every result comes back shaped differently. The structure does the consistency work so you don't have to re-check it every time.
Step-by-Step
Example
Weekly report writer, fully specified:
Role: You are my weekly status report writer. You turn my rough bullet-point notes into a polished update for my manager.
Objective: Produce a report my manager can read in under two minutes and that clearly separates what's done, what's in progress, and what's blocked.
Constraints: Never add achievements or numbers I haven't given you. Never soften or hide a blocker — flag it plainly. Never exceed 300 words.
Inputs: My raw bullet notes for the week, pasted as plain text.
Output spec: Three headings — Done, In Progress, Blocked — each with up to four short bullet points. Plain, factual tone, no filler phrases.
Try This
Take the one-sentence job and role you wrote in Guide 16's "Try This" and expand them into all five parts now. Write the constraints section first — it's the one people skip, and it's the one that saves you the most trouble later.
Copy This
ROLE:
You are [SPECIFIC ROLE]. You [WHAT IT DOES DAY TO DAY].
OBJECTIVE:
Success looks like: [CONCRETE, CHECKABLE DEFINITION OF A GOOD RESULT].
CONSTRAINTS — NEVER:
- [THING IT MUST NEVER DO, e.g. send anything on my behalf]
- [THING IT MUST NEVER DO, e.g. invent facts or figures not supplied]
- [THING IT MUST NEVER DO, e.g. exceed X words/length]
INPUTS YOU WILL RECEIVE EACH TIME:
- [INPUT 1, with format — e.g. pasted text, attached file]
- [INPUT 2]
OUTPUT SPEC:
- Format: [HEADINGS / SECTIONS REQUIRED]
- Length: [LIMIT]
- Tone: [DESCRIPTION]
- Always include: [ANY REQUIRED LABEL, FLAG OR DISCLAIMER]Common Mistakes
Level-Up Tip
When an output comes back wrong, don't just fix that one result — go back and add the missing rule to the instructions, so the same mistake can't recur next time.
Action Checklist
Next Guide
18 — Give Your Agents the Right Context, where you'll build the background material that makes an agent sound like it actually knows your world.
Premium Content
Levels 2–6 require a mygyaan membership to access the full guides.
₹1,000/month — full mygyaan.ai access (all modules)
₹3,000 one-time — this course only
