AI systems & workflowsblog 39

turn your AI's longest instructions into 5 scripts

the steps your AI repeats belong in a script

AAuny · Nov 2026 · 3 min read

send this to one person ↓

turn your AI's longest instructions into 5 scripts

if you give your AI a long set of instructions, it reads every line of them, every single time it runs.

take a closeout that runs at the end of every work session: it logs what happened, saves what it learned, and writes up anything worth turning into a post. that closeout lived in 2 instruction files, 544 lines and 135 lines. 75,448 bytes the AI had to read and follow step by step, every single time 😭

the fix: turn AI instructions into scripts. fold the 2 files into 1, and make everything in there that runs the same way each time a script. here's the order to do it in, and what you can steal from it.

show me the design before you touch anything

before your AI edits anything, have it read the instructions, map every other doc that mentions them, and show you a plan.

in the closeout example, the plan was 5 script calls around 1 file where the records live.

planning is one of the best steps you can ever take if you are a builder. you are better off editing a plan 10 times than having to edit, modify or re-build shipped code.

turn AI instructions into scripts and keep the decisions in a file

the rule to use:

  • anything that runs the same way every time becomes a script: gather what changed, check it, apply it, report it
  • anything that needs a call stays in a file for review: is this worth logging? is this a lesson or a one-off?
Infographic 1: same every time vs needs a call: a conveyor belt on the left, a desk lamp and a question block on the right
↑ same every time vs needs a call: a conveyor belt on the left, a desk lamp and a question block on the right

in the closeout example, the new instructions came out at 14,287 bytes, down from 75,448.

keep your old step numbers too. in the example, about 55 other docs pointed at those numbers, and renaming them would have meant editing all 55 for no reason.

[is keeping the old numbers smart long term, or just lazy? it's still an open question 🤔 what would you do?]

run it on the session that built it

get your code audited by a model that didn't write it. once the audit is done: fix → test → fix → ship → implement

Infographic 2: tests passed vs real run: five check marks on the left, a chibi sparking a big gear machine on the right
↑ tests passed vs real run: five check marks on the left, a chibi sparking a big gear machine on the right

delete the old stuff last

everything old goes in the trash, but only after everything works. replace and overwrite the old code to remove bloat and keep it lean and lightweight.

the less your AI has to read > the fewer tokens it uses > the better and faster your system runs. keep things fast and easy!

Infographic 3: new first, old last: an overgrown old door on the left, a glowing open door on the right
↑ new first, old last: an overgrown old door on the left, a glowing open door on the right

have your agent do this

paste this in before you let your AI rewrite a long set of instructions:

Before you edit anything, read the instructions and every doc that points at them, then show me a design. Put every step that runs the same way each time into a script, and keep only the decisions in one file. Keep existing step numbers. After it is built, have a different model audit it, then run it on a real session and list what broke. Delete the old files last, after I approve.

your turn

open the longest instruction file you give your AI. count how many lines are steps a script could run. upgrade those first ✌🏽

stuck on this?

AI Automation Consulting Call call

1 hour, your account open. $425.

Book it

liked it? tap the heart

found it useful? ↓ send it to one person

1:1 call · matches this post

AI Automation Consulting Call

I design automated AI workflows around the repeat work taking your time, and send you the outline and written instructions to run them.

60 minrecordingnotes after
last checked 2026-11-30AI systems & workflows · blog 39