Time to Deskill
Tools like claude are popular for their ability to turn natural language into code and carry out tasks. But LLMs are stochastic tools. There is no guarantee the output will be "good" or even consistent. Anthropic seeks to address this problem with claude skills: Saved off instructions can be invoked with a slash command (e.g. /my-skill) to send the instruction text to the LLM. The same text every time. Skills are an attempt to achieve reliability and repeatability with LLMs.
Because of this skills are starting to replace scripts as tools for repeating tasks. Things like gathering and reporting on metrics, and generating tasks to update dependencies with known vulnerabilities. The problem with using skills for these predictable tasks is that skills are still run through the LLM. And LLMS are stochastic tools that are inherently not reliable and repeatable.
Some Examples of Stochastic Skills
Let's consider a couple of examples that demonstrate this. Code releases should come with change logs that document major or breaking changes. This lets consumers of that code know what steps they might need to take when updating. I was pointed to an LLM tool for updating changelog entries. The tool would install necessary dependencies, collect a list of changes with accompanying commit messages, select a category for the feature, and generate the text. This last part is a good fit. LLMs are good at generating text (although I rewrote it 100% of the time), but it struggled on the other steps.
For selecting a category it would invent an illegal category, erroring out. It would reinstall dependencies every run, usually generating a script to do the install. And the script was frequently in a language not supported by my machine. So it also had to translate the script after writing it. Then iterate on it several times to fix all the bugs. It was a major headache. After enough complaining, and once spending an hour on a 5 minute task, I was pointed to the script which the skill essentially wrapped.
This was much simpler and faster. I installed the dependencies once. After that they were ready for the next changelog. Then I ran the script, was constrained to only legal options in the menu, presented with a list of changes and commit messages, then left on my own to type in the message. The script was reliable and faster. It did the same thing every time. There was no waiting on communicating back to the LLM server. No cycling while the LLM fixed a bad option. No fresh reinstall of the dependencies. And no iterating on a fresh script every time until it was bug free. With the fixed script any bugs could be fixed once, then be gone every run thereafter.
In the next example I was using a skill that was developed to do deep research on a subject before presenting an answer. There were many steps of generating common solutions, crawling the web for backing sources, then running all that information through additional agents to provide adversarial assessment. It was a lot and could take hours to run. And hundreds of hours were spent developing the script to follow a very strict process. The problem is, though encapsulated in a fixed skill, skills are run through the LLM.
I had done a few sessions with this skill. Then one day it got really fast. Somehow the process was taking a few minutes instead of hours. What appears to have happened was the LLM ingested the skill text and then generated output that would fit such a process. All the instructions in the skill and effort spent in developing it were thrown way. The skill was entirely sidestepped. Nothing about a skill binds the LLM to following it, just like any other prompt.
What is even worse, is that providing a slash command doesn't even guarantee the skill text will be sent as a prompt. The slash command goes through the LLM just like any other prompt, and given the stochastic nature of LLMs, it could then send the skill as a prompt, but might not. There are no guarantees on what an LLM will do with a skill.
This unpredictability is frustrating. But it can also have subtler impacts. If you're using a skill to generate a report will the data be trustworthy? Will the LLM choose a different method of rolling up numbers every time giving inconsistent data? Will the data be presented in a different layout each time leading to misreading it? Or will it take a shortcut and never pull the data, filling in the blanks with random, plausible numbers?
From Unpredictable to Predictable
Returning back to the first example, you may have noticed using skills for repeatable tasks are wasteful. Invoking the skill ended up writing a script, and rewriting it every time. Every rewrite spent tokens (i.e money) when the script could have been saved off and reused every time. That's a good bit of waste on its own, even without the time spent generating the script in the wrong language or fixing fresh bugs every invocation.
The reality is tools like claude use scripts for a lot of their work. If you watch claude as it runs you'll see little bash one-liners and whole python scripts generated to answer a prompt. If you saved of these scripts you could save the tokens and do these tasks yourself. In fact, that is what scripting and programming languages are: languages for describing repeatable tasks and reliably repeating them. If you find them too hard to write you could at least have the LLM write the script and use that as a more efficient tool in the future. If the script commands are too hard to remember and you prefer natural language just make a menu that clearly presents your regular tasks.
It is time to deskill. Start scripting and stop burning time and money for an unreliable result.