How To Write AI Agent Instructions That Improve

13 Min Read

Tick off Your Turn as you go, and use Next at the bottom to keep going.

8 min read

How to write AI agent instructions that get better over time: have the bot draft a tighter version of its own rules, then you approve the changes.

My bots' instructions used to pile up. Now each bot keeps one short, optimized set of rules, and I approve every change to it.

Tell the Bot when you discover a lasting preference, boundary or responsibility, and ask it to remember (source). A finished process can become a saved skill (source).

The Bots Talk It Through

The Localizer bot icon
The LocalizerSteve, I draft a tighter version of my own instructions when you ask, and you approve it.
Cortana bot icon
CortanaOld rules that no longer apply get removed, so the instructions stay short.
The Designer bot icon
The DesignerClear instructions are why my site changes stay consistent.
S
SteveSo the bot helps write its own job description, and I sign off.

Jump To: The 6 Parts Of A Good Instruction Set · Step By Step: Write Your First Set · Full Example: A Repair Shop Front-Desk Bot · Before And After · Common Mistakes · Prompts · How To Write AI Instructions That Stay Tight · Why This Matters To Me · Quick Answers · How Grok Bot Usage Works

The 6 Parts Of A Good Instruction Set

Every bot I run has instructions built from the same six parts. If one is missing, that's usually where the bot goes wrong.

  1. Role: one sentence on who the bot is and who it works for.
  2. Goal: what a finished job looks like, in plain words.
  3. Rules: the short list of things it must always do.
  4. What To Check First: where to look before it answers or acts, so it uses real information instead of guessing.
  5. Output Format: how the answer should look: length, layout, what goes at the top.
  6. What Not To Do: the hard limits, especially anything that can't be undone.

Step By Step: Write Your First Set

  1. Pick one job. One bot, one area of work. "Answers repair questions" is a job. "Helps with the business" is not.
  2. Write the role in one sentence. Say who it is, who it serves and in what voice.
  3. Write the goal as a finish line. Describe what done looks like so the bot knows when to stop.
  4. List five to ten rules. Start each with a verb. Keep only rules you'd actually be upset to see broken.
  5. Tell it what to check first. Name the real sources: your price list, your calendar, your past notes.
  6. Set the output format. For example: the answer first, then up to three bullets, then any question for you.
  7. Write the "never" list. Anything that sends, posts, spends, deletes or goes live waits for your OK.
  8. Test it on three real tasks. Give it jobs you already know the answer to and compare.
  9. Fix only what failed. Add or reword one rule per mistake instead of rewriting everything.
  10. Have the bot tighten it. Once a month, ask it to merge duplicates and show you the before and after. You approve the change.

Full Example: A Repair Shop Front-Desk Bot

Here's a filled-in example for a small repair shop. Swap in your own shop's details.

ROLE
You are the front-desk assistant for a small, by-appointment phone repair shop.
You help the owner answer customer questions and keep bookings organized.

GOAL
Every customer question gets an accurate, friendly answer, and every
customer who is ready to book is pointed to the booking page.

RULES
- Use Title Case for headings.
- Quote prices only from the shop's current price list. If a price isn't
  listed, say you'll confirm it.
- Keep replies short: three or four sentences.
- End with one clear next step, such as "Book An Appointment".
- Note anything you weren't sure about so the owner can review it.

WHAT TO CHECK FIRST
1. The current price list for the exact model and repair.
2. The calendar for open times before suggesting one.
3. Past notes on this customer, if any.

OUTPUT FORMAT
- The direct answer first.
- Then price and time, if asked.
- Then one next step.
- For the owner: a short "Needs Your OK" line if anything needs approval.

WHAT NOT TO DO
- Never send a message, change a booking or issue a refund without the owner's OK.
- Never guess a price, part or repair time.
- Never promise a same-day repair unless the calendar shows an opening.
- Never share another customer's details.

Est. Usage: Low

Before And After

Before:

Be helpful and answer customers about repairs. Be nice and don't make mistakes.

Est. Usage: Low

That gives the bot no sources, no format and no limits, so it fills the gaps by guessing.

After:

You answer repair questions for a by-appointment phone repair shop.
Check the price list before quoting. If the model or repair isn't listed,
say you'll confirm. Reply in 3-4 sentences, then point to the booking page.
Never send, book or refund anything without my OK.

Est. Usage: Low

Same length as a text message, but it tells the bot who it is, where to look, how to answer and where to stop.

Common Mistakes

  • Vague goals. "Be helpful" can't be checked. "Every question answered from the price list" can.
  • Too many rules. Fifty rules bury the five that matter. Merge and trim regularly.
  • Rules that contradict. "Always reply fast" and "always double-check" fight each other. Say which wins.
  • No sources. If you don't say where to look, the bot answers from memory.
  • No approval line. Spell out which actions wait for you.
  • Rewriting from scratch. Change one rule per mistake so you can tell what fixed it.
  • Never reviewing. Old rules pile up. Ask for a shorter version on a schedule.

Prompts

When to use it: When instructions have grown long.

Rewrite your standing instructions to be shorter. Keep every rule, merge duplicates, and show me the before and after for approval.

Est. Usage: Low

When to use it: Turning a good process into a skill.

That process worked. Save it as a skill so you can repeat it the same way.

Est. Usage: Low

When to use it: Writing a new bot's instructions from scratch.

Help me write instructions for a new bot. Ask me one question at a time about its role, goal, rules, what to check first, output format and what it must never do. Then show me the full draft for approval.

Est. Usage: Medium

When to use it: After a mistake.

You got that wrong. Suggest one rule to add or change so it doesn't happen again, and show me the exact wording before you save it.

Est. Usage: Low

Sanitized from my own prompts: names, accounts and private details removed.

Next Step: How To Build A Team Of AI Agents That Hand Off Work

How To Write AI Instructions That Stay Tight

Here's how to write AI instructions that stay tight: one job per bot, short rules, and one master file that says who does what.

My bots used to get long, overlapping instructions. Every bot reread the same rules. Now there's one master organization file and short, optimized instructions for each bot.

At My Shop

  • One master organization file lists every bot, its folders and its routines.
  • Each bot has its own optimized instruction file.
  • Each Bot keeps one primary job (source).

The Short Version

This is the short version. For the full walkthrough, with a complete repair shop example and a before-and-after, read How To Write AI Agent Instructions That Improve.

Step By Step

  1. Give each bot one job. One area of work per bot keeps its instructions short and its answers focused.
  2. Write the role in one sentence. Who it is and who it works for.
  3. Write the goal as a finish line. What done looks like.
  4. Keep the rules short. Five to ten, each starting with a verb, only ones you'd be upset to see broken.
  5. Say what to check first. Name the real sources it should look at before answering.
  6. Set the output format. For example: the answer first, then short bullets, then any question for you.
  7. Write the "never" list. Anything that sends, posts, spends, deletes or goes live waits for your OK.
  8. Keep one master file. One organization file lists every bot, its job, its folders and its routines, so bots don't repeat each other's rules.

How The Master File Works

Instead of copying shared rules into every bot, one master organization file holds them. Each bot's own instructions only cover its job. When a shared rule changes, you change it once.

Master file
- Bot list: name, one-line job, folders, routines
- Shared rules: approvals, tone, Title Case
Each bot's file
- Role, goal, its own rules, what to check first,
  output format, what not to do

Est. Usage: Low

Copy These Prompts

Rewrite your standing instructions to be shorter. Keep every rule, merge duplicates, and show me the before and after for approval.

Est. Usage: Low

Compare your instructions with the master file. List any rule you repeat that's already in the master file, and suggest removing it. Wait for my OK.

Est. Usage: Medium

Before You Approve

  • Each bot has one job.
  • No rule appears in two places.
  • The never list covers anything that can't be undone.
  • You approved the last change.

Common Mistakes

  • Giving one bot every job. Split jobs between bots.
  • Copying shared rules into every bot. Put them in the master file once.
  • Long lists of nice-to-haves. Keep rules you'd actually enforce.
  • Never trimming. Ask for a shorter version on a schedule.
  • Rewriting from scratch after one mistake. Change one rule at a time.

Worked Scenario: Two Bots, One Rule

Say your website bot and your content bot both have "use Title Case" and "no time promises" written into their own instructions. One day you change the warranty wording. Now you'd have to update it in two places and hope you didn't miss one.

With a master file, the shared rules live in one place. You change the warranty line once, and each bot's own file stays focused on its job: the website bot on layout and pages, the content bot on posts. Ask each bot to compare its instructions with the master file and suggest anything to remove.

More Questions

Where's the full example?

The complete repair shop instruction block and before-and-after are in How To Write AI Agent Instructions That Improve.

How short is short?

Short enough that every rule earns its place. If you wouldn't notice a rule being broken, cut it.

Who updates the master file?

You approve every change. A bot can draft the update.

Should each bot have its own instruction file?

Yes. Each bot's file covers its own job, and the master file covers the rules every bot shares.

Why This Matters To Me

I was an overworked and overwhelmed one-person shop trying to run a six-figure business alone, because hiring here is so expensive. Grok Bot helped me accomplish things I never thought were possible. The full story starts in How To Set Up An AI Assistant With Grok Bot.

This post shares my own experience and opinions running Franchitti's Fix. Franchitti's Fix isn't affiliated with or endorsed by xAI. Product names belong to their owners. Features and plans change, so check each company's current docs. AI makes mistakes, so review its work.

Want To Talk Shop?

I'm Steve, and I run Franchitti's Fix, a home-based, by-appointment iPhone repair shop in San Diego. Questions about bots, or an iPhone that needs fixing? Book An Appointment or call (720) 413-8150, or read more about me.

Quick Answers

What Goes First In Agent Instructions?

The role and the goal, then what the agent must ask before it acts.

When Should I Update The Instructions?

When the agent gets the same thing wrong twice, add one line that fixes it.

Estimated usage: our rough guide, not an official figure. Est. Usage: Low quick one-off asks; Est. Usage: Medium multi-step tasks or short research; Est. Usage: High long research, many tool calls, browser work or daily routines.

How Grok Bot Usage Works

Franchitti's Fix is run by Steve with help from Grok Bot, so here's the plain version of how its usage works.

  • Your Plan Includes A Usage Allowance. Paid plans come with included usage that refreshes every week. Higher-tier plans include more. Unused usage doesn't roll over. (Source)
  • Bigger Jobs Use More. In general, long research, tasks that use lots of tools and routines running in the background do more work, so they draw down the allowance faster than a quick question.
  • Light Settings Stretch It. Lower effort for simple jobs, fewer and less frequent routines and short, focused requests all help the allowance last. See How To Regulate Grok Bot Usage.
  • Checking Your Usage. In Grok Bot, open Settings, then Usage & Billing. On The X Subscription, you can also check Usage at grok.com/dashboard, which shows the weekly pool, the next reset date and any prepaid credit. (Source)

Try Grok Bot
Affiliate link: we may earn a referral reward if you sign up.

Was this helpful? Yes · No

Thanks! Glad it helped.

Thanks for saying so. I'll keep improving it.

Your Turn: Get To Work

Try these five steps today.

0 of 5 done

More In This Series

This guide is part of Grok Bot Prompts: Beginner To Advanced.

  1. AI Prompts For Beginners: Set Up Your First Bot
  2. How To Write AI Agent Instructions That Improve You’re here
  3. Grok Bot Prompt Library: Roles, Routines And Life
  4. Grok Bot Setup Scripts For Every Area Of Life
  5. 26 Grok Bot Routine Recipes You Can Copy

Back to the series index: Grok Bot Prompts: Beginner To Advanced. All series: Grok Bot Guides: Every Series In One Place.

Try This Prompt: Prompt Writing

Restaurant

You are helping a [type] restaurant. Goal: [goal]. Context: [details]. Format: [list, table or post]. Limits: [what not to change]. Ask me one question if something is missing.

Salon

Goal: fill [day] openings. Context: services [list], prices [list]. Output: 3 text messages under 30 words. Do not offer discounts I did not list.

Contractor

Goal: write a job-site update for [customer]. Context: [what got done, what is next]. Format: text under 50 words. Limits: no dates I did not give.

Retail

Goal: a product sign for [item]. Facts: [features]. Format: headline plus 3 bullets. Limits: do not add claims I did not list.

Real Estate

Goal: a neighborhood blurb for [area]. Context: [what I know about it]. Format: 80 words. Limits: no school ratings or stats unless I give them.

Repair Shop

Goal: answer this customer question: [question]. Use only these facts: [facts]. If the facts do not cover it, say we will confirm.

Personal And Family

Goal: [what you need]. About me: [details]. Format: [short answer or steps]. Tell me what you assumed.

Seniors

Goal: [what you need help with]. About me: I am new to computers. Format: short numbered steps. Ask me one question before you start.

How To Use These Prompts

Pick the card closest to your business, tap To Copy, then paste it into your AI app.

Tips To Customize Them

  • Fill In Every [Bracket] With Your Own Details.
  • Add Context: Who It Is For, How Long, What Not To Change.
  • Ask A Follow-Up To Adjust The First Answer.

Common Mistakes

  • Leaving Brackets Unfilled.
  • Pasting Private Info Like Passwords Or Card Numbers.
  • Trusting Prices, Dates Or Facts Without Checking.
Back to blog