Release notes: building a Claude skill

Sticky notes covering a wall, with a shadow of a hand reaching toward them

“why on earth would you not read the whole skill?”

That’s what a colleague typed into Claude this week. He was test-driving a skill I’d built, and the report Claude produced didn’t look anything like what the skill defined.

Claude’s answer was infuriating: “There’s no good reason. The file view truncated the middle, and I saw that it had been cut off… Instead I assumed I knew the structure and built from my own outline.” It had read the first 138 lines and the last 140, out of 520, and then filled in the middle with its best guess.

I spent some time this week building a skill for our corporate go-to-market teams, and I learned more than I expected. Some of it came from mistakes, mine and Claude’s. Some of it was more “huh, should this work like this?” Here are some highlights.

Triage, round one

The first thing I asked (my) Claude about my colleague’s trial of the skill was what to do about the skill being cut off. I was inclined towards ALL CAPS instructions. Claude’s ideas seemed more measured: add an execution checklist at the top, or restructure the whole thing so the query steps come first and the section specs move to an appendix.

I suggested something simpler. What if we included one line at the very top of the skill that says how long it is, and that it must be read in full. Even if Claude only reads the beginning, it reads that. Claude called it “clean and low-cost,” and so we went with it.

Then we fixed the other items on his feedback list. There were a whole bunch of errors, and we started adding protection against each one: what to do if this connection failed, what to do if that file wasn’t there. Then we realized most of them traced back to one thing. The initialization step, which is supposed to run at the start of every session and connect it to a shared data repository, had never run. That turned out to be a problem with his Claude setup, so we removed all those guardrails in favor of just checking that the connection is there before doing anything else, and saying so if it isn’t.

Skill length and the context budget

Even with the first line mandating a full read, I was worried that the skill was getting long, clocking in at a beefy 756 lines. I opened a separate chat and asked Claude directly: what’s a reasonable size for a skill? It said 50 to 300 lines is typical, 250 to 400 is “pushing it,” and past 400 you should ask whether it’s really two skills. Anthropic’s official guidance lands in the same neighborhood, under 500 lines for the main skill file.

My first intuition was to break the skill into microservice-like entities. This skill queried several data sources and provided a comprehensive view of win/loss. Maybe I should (e.g.) have one skill that synthesized entries from open-text fields into a list of win/loss reasons, then another that knew how to do the calculations for different deal types.

But Claude’s recommendation was different. It suggested that thinking of skills as services wasn’t a good model, because each one loads into context when it runs, so chaining them means paying that cost repeatedly. It offered a better model: “a well-written runbook with appendices,” not “a distributed system.” It suggested I keep the logic in the main file, and move the lookup tables and reference material into separate files that only get read when they’re needed.

Some examples it gave me were:

  • 90 lines describing the report outline
  • 20 lines of font and hex colors
  • 25 lines of instructions for sending a feedback email

So refactoring this is on our backlog now. I still don’t understand what happens when the skill gets even longer as the logic gets more complex. Like, generating a win/loss report is hardly the most complicated thing people are asking Claude to do these days. But this will work for now.

Version control without version control

Speaking of backlog, somewhere along the way, I started running this skill like a product. Now I’ve never been part of a software development team, so my style of development is a finely honed mishmash of (a) theoretical things I learned in grad school, (b) what I know about product development through the lens of product marketing, (c) my experience doing agile marketing for a few quarters, and (d) a vague notion of how Jira works.

This has resulted in my creating a backlog with high priority, regular, and parked items, plus a category I named “Nips and Tucks.” Then, because I don’t know how to think about classifying major vs minor versions, every time I change a few things, I move up a dot release. It’s basic.

What I didn’t have was git; I was waiting on approval to be added to our corporate instance, since this was a project for work. Claude didn’t have any suggestions on how to manage changes, so I just asked it to save each version as a separate file, and create an accompanying changelog of what was new in each version. The other piece Claude built me was a backlog tracker whose highlight is drag-and-drop capabilities (aka poor woman’s Jira).

Staying the human in the loop

In my science fair post, I wrote about how I’d stopped needing to do the technical parts myself. That’s still true. But I’m learning enough to occasionally (and proudly) notice when something is off.

My first catch was when we went to implement a classification system, Claude drifted back toward a colleague’s sample approach that we’d decided against earlier. I asked whether it had changed its mind. It hadn’t: “I got pulled toward [those] rules because they’re right there and concrete.” I redirected it to our more sophisticated and thorough approach.

I was also proud when Claude was trying to find a reliable way for the skill to fetch a relative data path. It gave me two options, preferring the one where it loaded a whole other skill just to borrow its folder path. I pushed back: wouldn’t that clog the context window? Yes, reader, it would. We found a simpler way, but only because I knew to ask.

Known issues

The backlog is still full. There are real features on it, like a PowerPoint version of the report, sitting right next to the housekeeping: the refactoring, and figuring out what a major version is. Stay tuned.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.