I make everything a skill
I view a skill as a script for an AI agent: a more general version of a Python script, but slower, more expensive and less predictable. It lives in a folder with a file describing it in markdown format. The first lines of that file provide a name for the skill and indicate when it should be used. The agent only looks at these until it gets a request that matches, at which point it reads the rest of the file.
Where I repeatedly ask an agent to do something, I have a skill for it. I have about 30 of these:
- Tagging a release of the Vulkan conformance test suite and writing associated notes; retracting a previous release.
- Code review: setting up the work for the agent, identifying relevant reviewers, rebasing work that no longer applies, moving relevant public PRs onto our review server.
- Triaging PRs and issues on two trackers, my inbox, work specifically assigned to me, checking progress against release milestones.
- General development work on the suite (moving tests to a new API, finding out if an extension has tests for it at all).
- Waiting for a build to complete and retrieving the relevant artifacts.
- Overview of my working day which governs the above.
These instructions could be provided in the chat on request, in a file the agent reads at the start of a session (CLAUDE.md), on a wiki page, in a script or via an MCP server. I find skills far better.
What I get
- The relevant skill is loaded when the task arises. A wiki page requires someone remembering to ask the agent to look at it (and that person being me). My skill for tagging a release previously sat alongside the other skills as a standalone markdown file which was never loaded until I put it in its own folder.
- There is a cost for naming and describing the skill but none for the rest until you use it. About 10,000 chars of description for all my skills compared to 235,000 for the substance of those skills. CLAUDE.md is fully paid for at the start of a session and contains two rules for the agent (everything is a dry run unless otherwise specified, all output must be reviewed).
- A fix is done once. The tagging skill checks that the version is listed as a conformance version for the suite before creating the tag. If you tag too soon, you have to remove the tag and do it again where everyone can see it.
- As a text snippet in the repo, this is reviewed like any other development
work. When the agent can't perform the tagging part of this next year, you
can see why via
git log. - The script remains. The script for the review server does a dry run unless
you specify
-f, and the skill tells the agent when it's appropriate to do so, based on a previous post. - There's no server to run. A skill provides a wrapper around other command-line tools available on the machine; see the MCP post for more on this.
- The entry point is my own custom wording, so I don't need to remember a command.
Where a script does better
- Each costs time and tokens to run; the equivalent script takes seconds and not much else.
- It's a piece of guidance for the agent (like an entry in CLAUDE.md). The agent can choose not to do it, so any 'negative' guidance should also be in a script or a permission rule.
- Sometimes it fails to load. The agent has asked for one specifically, been told it doesn't exist, read it manually and moved on. I don't understand why.
- Its description is part of a larger context the agent sees in every session, and there are often a lot of these. Many of mine could be far more concise.
- If the underlying tools it refers to change, it's broken until you spot this. A script will at least give an error message.
Skill, CLAUDE.md or script
| Skill | CLAUDE.md | Script | |
|---|---|---|---|
| Read up front | Partial, the name and description | Yes, all of it, every session | No |
| Agent can skip a step | Yes, it's advice | Yes | No |
| When its tools change | Wrong until someone notices | Wrong until someone notices | Fails with an error |
| Handles a case nobody wrote down | Yes | Yes | No |
The skill offers nothing over a script except flexibility, so I have both. The script does the unchanging parts; the skill determines when to do them. I feel that's the correct split for the time being.
I help teams set up AI-assisted engineering workflows, skills included. See services.
Subscribe to my newsletter
Receive new posts by email: occasional notes on GPU conformance, mobile performance, and AI in software engineering. Unsubscribe anytime.
Subscribe