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. 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.