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

> Source: <https://verbosemode.dev/p/dont-write-skills-write-scripts>
> Published: 2026-11-27 12:12:05+00:00

**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 the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

# Don’t write skills, write scripts!

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.

```
# When to use `toolbox photos thumbnail`

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.
