cd /news/ai-agents/don-t-write-skills-write-scripts-blo… · home › topics › ai-agents › article
[ARTICLE · art-177269] src=verbosemode.dev ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Don't write skills, write scripts (blogpost written by me)

A developer argues that repetitive tasks should be captured as deterministic shell scripts rather than LLM skills, describing a personal `toolbox` CLI that runs namespaced commands such as `toolbox ios simulator --branch=...` and `toolbox photos thumbnail cover.jpg cover-small.jpg`. Two skills support the setup: one instructs Codex where to place new scripts and to write two short descriptions (one for the human, one for the LLM, e.g. `thumbnail.LLM.md`), and the other tells Codex to search those descriptions to find the right command. The author says scripts are "deterministic, tractable and traceable" and that the work is ultimately done by a single shell command, so the toolbox still works if OpenAI or Anthropic is unavailable.

recommendation

When a task has been done manually three times, have the agent write a deterministic script plus a short LLM-facing description, then let the agent locate and run it instead of re-deriving the steps each time.

more in playbook: Designing agent systems
by read4 min views1 publishedNov 27, 2026
Don't write skills, write scripts (blogpost written by me)
Image: source

Or rather, write skills that write scripts, and then write skills that use them.

It’s 2019, and you notice that you’ve just done the same task manually for the 3rd time. What does this mean? It’s time to write a script, of course!

Fast-forward to today, and apparently, it’s time to write a skill.

For a few weeks now, I’ve been facing the repetitive task of starting an iOS simulator with an app built from a branch. Multiple times a day. And of course, I have skills for that, written not by me, but by other engineers in the company. And they work. However, if OpenAI or Anthropic has a hiccup (again), I wouldn’t know jack shit about how to start the simulator.

So my first idea was to tell Codex to write me a README explaining how to do it. But then I realized that, well, all you need is some shell commands. So why not let Codex write a script that both of us can use? Codex saves some tokens by running the script, and I can read it to understand what’s needed to spin up the simulator and run it on my own.

It’s quite ridiculous to be rediscovering how useful scripts are, but the LLM craze made me forget about them for a while. Somewhere along the way, I started treating instructions for an LLM as a replacement for executable code.

But scripts have one big advantage over skills: they are deterministic, tractable and traceable. If I already know exactly what needs to happen, why am I asking an LLM to figure it out every single time?

Of course, I still take the shortcut and let Codex write the scripts for me. And, somewhat ironically, I created a skill for this.

I now have a toolbox command in my CLI that lets me run namespaced commands, e.g. toolbox ios simulator --branch=....

And I have two skills: one that tells Codex how to add commands to my toolbox, and another that tells it how to find and use them.

So say I’ve resized a photo for a blog post for the 3rd time. I could ask Codex to do it again, and it would probably work. But at this point, I already know what I want it to do.

So I tell Codex to add a command to my toolbox. The first skill tells it where to put the script and to write two short descriptions: one for me and one for the LLM. Now I can just type toolbox photos thumbnail cover.jpg cover-small.jpg.

And of course, two weeks later I’ll have no idea what I called the command. So I tell Codex “make me a thumbnail of cover.jpg” and the second skill tells it to look in the toolbox. It reads the descriptions and finds the right script. Which is kind of funny, because what I need an LLM for now is remembering the name of a thing I made.

That’s it. The actual work is done by a single shell command.

A thumbnail.LLM.md is just the stuff I’d otherwise have to tell Codex every time.


Use this when I say things like “make a thumbnail of cover.jpg”
or “resize this photo for the blog.” The command fits the image
within 640 pixels and keeps its aspect ratio.

Run `toolbox photos thumbnail INPUT OUTPUT`. For example,
`toolbox photos thumbnail cover.jpg cover-small.jpg`.

The first argument is the source image. The second is where to save
the thumbnail. Ask for a path if you can't infer it. The script uses
`sips` on macOS and prints the output path when it's done.

The nice thing about this is that I can still be as lazy as before and just ask Codex to do things for me. Except now it doesn’t have to figure out how to do something we’ve already figured out. And if Codex isn’t available, I still have my toolbox.

So basically, use skills to write scripts that can be used by skills. And you.

I know this is no fundamental discovery, but maybe a small reminder helps you as it helped me.

── more in #ai-agents 4 stories · sorted by recency
── more on @codex 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/don-t-write-skills-w…] indexed:0 read:4min 2026-11-27 · —