Checking how many agents are working

How this works
Contact
← Blog
A cinematic photograph of a brass robot taking one slim labelled folder from a tidy shelf of identical folders and opening it on a workbench, in teal and steel with a warm amber light, the AMARBARO mark and wordmark centred over it.
✎article de blog

Skill files: teaching an agent a job once

The short version

Grouping 60 linked skills into 12 hubs cut one skill listing from 18.6 KB per turn to 5.5 KB (minus 70 percent), with 219 rules distilled from 387 ledger entries, and model routing from the listing alone scored 22 of 22 on a dev set and 8 of 8 held-out.

What this is about

Every time you give an agent a job, you may need to explain how you like it done. Which tool to use first. Which mistakes to avoid. What "done" means. If you explain it by hand each time, you will forget parts, and the agent will not remember.

A skill file fixes that. It is a short written guide that the agent loads before a task. You write the guide once. This article shows what a skill looks like, why many skills become a problem of their own, and how we keep ours small and current.

Why it matters

The previous articles in this series showed two facts. An agent starts each session blank. And a rule in a text file is only a wish unless something enforces it.

A skill sits between the two. It does not enforce, but it puts the right guidance in front of the agent at the moment of the job. Done well, it saves you from repeating yourself and spares the agent from rediscovering old mistakes.

How it works

What is in a skill

A skill is a folder with one main file, usually called SKILL.md. At the top are two short things: a name, and a one-line description of when to use it. Below is the guide itself: steps, warnings and pointers to deeper files.

The agent sees only the names and descriptions at first, as a list. When a task matches one, the agent loads the full guide. That way a hundred skills do not all sit in its head at once.

A good skill is small

Write a skill like a checklist for a colleague who is skilled but new to your project.

  • Start with what the job is and when to use the skill.
  • List the steps in order.
  • Put the most repeated mistakes at the top.
  • Point to longer material instead of copying it in.

Long skills fail for the same reason long instructions fail. The agent reads the first part well, and the rest less well.

The list itself costs tokens

Here is the part beginners miss. The list of names and descriptions is part of the fixed start of every request. The more skills you have, the bigger the list, and you pay for it on every turn.

This happened to us. One of our projects had 60 linked skills, and its listing cost 18.6 KB per turn. We grouped them into 12 hubs. Each hub covers one area and points to its member skills by their real path. The listing fell to 5.5 KB, a cut of 70 percent.

Cutting is only good if the agent can still pick the right one. We tested that by asking a small model to choose from the listing alone. Before the change it picked right on 27 of 30 tasks. After, it got 22 of 22 on one set and 8 of 8 on a held-out set.

The hub also carries the lessons

Each hub holds rules distilled from our mistake ledger: 219 rules from 387 entries across 14 ledgers. The most repeated mistakes became one rule at the top of the matching hub. Three of the repeats were: a process search that matched itself (10 times), text typed into a pane but never submitted (12 times), and a commit that swept in other lanes' files (8 times).

This is how a skill stays current. When a mistake repeats, the fix goes into the skill, and if it can be a check, into a check as well.

A trap with links

One finding surprised us. Skills that pointed to deeper files through symbolic links looked like dead paths to an agent that searches with a file finder. The fix was to name real paths in the hub's router. If your agent can't find a file your skill mentions, check how the path is written.

Suggesting skills

After an agent loads a skill, one of our hooks suggests three companion skills, using links between skills in our memory network. A second hook runs on each prompt and records which skill the network would pick, but it injects nothing. We have not measured whether those picks are right, so it only watches.

How to write your first skill

  1. Pick a job you explain more than twice.
  2. Write the steps as you would tell a new colleague, in plain words.
  3. Add the three mistakes you see most.
  4. Give it a one-line description that says when to use it.
  5. Use it. When the agent gets something wrong, fix the skill, not just the answer.

Glossary

  • Skill: a short written guide an agent loads before a job.
  • SKILL.md: the main file in a skill folder.
  • Hub: a skill that groups several related skills and points to them.
  • Listing: the list of skill names and descriptions the agent sees at the start.
  • Router: the part of a hub that says which member skill fits which task.
  • Ledger: our dated file of mistakes, each with a rule.
  • Held-out: test cases not used while tuning.

Try it

  • Browse the skills. The skills page on amarbaro.com is where our skills are shown. Look for how one is laid out.
  • Write one. Take a job you explain often, such as how you want commit messages written. Put it in a file of ten lines and tell your assistant to read it first.
  • Count your listing. If you have many skills, add up the length of the names and descriptions. Is that start larger than it needs to be?

Commentaires

Pas encore de commentaires.

Se connecter pour commenter.