Skip to content

Paper Compute Concept

Patch What Broke: How Agent Skills Get Better Without Bloating

You saved a small first draft. Now run it. Watch what actually happens, make the smallest change that fixes it, rerun the failed case, and make sure what worked before still works.

Published September 24, 2026· Updated September 30, 2026
FoundationsSkillsAgent Skills

Definition

Skills get better through real failures, not imagined ones. When your agent does the wrong thing, look at what happened, find the smallest likely cause, and make the smallest change that fixes it. Then rerun the case that failed, plus one that already worked. If an instruction was misread: split vague categories, say what the agent should do, and say who makes the decision.

You saved a small first draft in step 2. Now run it. Your goal is not to imagine every way the skill could fail; it’s to watch what actually happens when an agent uses it. When the agent does the wrong thing:

  1. Look at what happened.
  2. Find the smallest likely cause.
  3. Make the smallest change that fixes it.
  4. Run the failed case again.
  5. Make sure something that worked before still works.

That loop is how a one-sentence draft becomes a skill you can trust without turning into a giant instruction manual.

Improve the skill from real failures

Suppose your first skill says:

Pressure-test every assumption, one at a time, until the plan holds up.

You run it and the agent asks six questions in one message. Now you have a real problem to fix. You could add an entire section called “Conversation pacing” — or you could make the smallest change that addresses what actually happened:

Pressure-test every assumption, one question at a time, waiting for my answer before continuing, until the plan holds up.

The failure earned those extra words. That is the basic rule for improving a skill:

Add instructions because something happened, not because something might happen.

If you have a recorded session, use it as evidence. Look at what the agent saw, what it did, and where its behavior stopped matching your intention. You still have to decide why the failure happened, but you are making that decision from a real example instead of guessing. (The safety exception from step 2 still applies: do not wait for a real accident before adding a boundary around destructive or irreversible actions.)

✦Go deeperRevision as a writing workshopopen +

This is the oldest editing discipline there is, pointed at a new reader. In a writing workshop, the unit of evidence is the reader’s experience, not the writer’s intention. Here the reader’s experience arrives as a session record, and the running list of what your readers taught you — each failure, each small fix — is sometimes called the misreading journal. Keep it wherever you like; the point is that every important line in the skill can answer the question “what happened that put you here?”

Make the smallest fix that works

When something goes wrong, resist the urge to rewrite the whole skill. Fix the specific problem you observed — the failure picks the fix:

The failure picks the fix
Asked six questions at onceAdd a pacing instruction.
Started work before you approved the planAdd a confirmation step.
Made a decision that belongs to the userSay who makes that decision.

Small changes are easier to understand and easier to test. They also make it easier to answer an important question later: why is this sentence here? Ideally, every important line in the skill has an answer — it exists because the agent once did something you wanted to prevent, or because it protects an important safety boundary.

If you use version control

If the skill lives in Git, it can help to keep one behavior change per commit.

−Update skill
+Wait for confirmation before executing the plan

The second message tells you, months later, which behavior this change earned.

This is useful history, but it is not required for the method. The important part is being able to connect a change in the skill to the behavior that caused it.

Watch how a small skill grows

Imagine the same skill being used over several months. The first version says:

Pressure-test every assumption, one at a time, until the plan holds up.

Then real use teaches you more. The agent asks several questions at once, so you clarify: “Ask one question at a time and wait for my answer.” Later it keeps asking questions without giving any useful opinion of its own, so you tell it to offer its current view. Later still, it starts carrying out the plan while the user is still evaluating it, so you add: “Do not execute the plan until I confirm it.”

Each change answers something that actually happened, and nothing gets added between failures. Here’s that whole history as a timeline — click each failure to reveal its fix:

Specimenan invented five-skill library
Timeline · the growth history of pushback

Five patches, five months

Skill length1 line

Nothing was added between failures.

PLAY — click each failure to reveal its patchstep 3 of 5

That is how a short skill can become more reliable without becoming unnecessarily long.

✦Go deeperOne incident, one lineopen +

Cockpit checklists grow exactly this way: an incident happens, investigators read the flight recorder, and the checklist gains a line that answers what actually happened. Nothing gets added between incidents, which is how a document can stay one page long and still carry decades of lessons. Your session records are the flight recorder; the skill is the checklist.

When the agent misreads a line, fix the ambiguity

Sometimes the agent is not missing an instruction — it is following one in a way you did not expect. When that happens, try these three moves.

1. Split vague categories

−If something can be answered without me, don't ask me.
+If a fact can be found by reading the code, look it up instead of asking me. Decisions about the plan are mine.

What counts as "something"? The sentence is doing too much work. Split it, and "facts" and "decisions" get different rules.

2. Say what the agent should do

Negative instructions can leave a hole: the agent still has to decide what to do instead.

−Don't ask unnecessary questions.
+Look up facts you can determine from the code. Ask me only when you need a decision from me.

Now the replacement behavior is explicit.

3. Say who makes the decision

−Resolve questions before continuing.
+Put each decision to me and wait for my answer before continuing.

Resolved by whom — the agent, the user, another tool? Say it.

This matters especially when a skill is eventually used somewhere you did not originally imagine: another session, another teammate’s workflow, or even another skill. Write the rule so it still makes sense when you are not there to explain what you meant.

Press each move to light up the words it touched in a real fix:

Anatomy · the month-five fix

Three moves, each reusable on any misread line

If a fact can be found by reading the code, look it up rather than asking me. The decisions, though, are mine. Put each one to me and wait for my answer.

The broken line ran in a context its author never imagined. Write for the furthest context the sentence will ever reach.

PLAY — press each move to light up the words it touchedstep 3 of 5

Give important rules a short reason

Sometimes a short explanation helps the agent apply a rule correctly in situations you did not explicitly list:

Ask questions one at a time and wait for my answer before continuing. Several questions at once are easy to miss.

The second sentence explains why the rule exists, which can help the agent preserve the intent even when the exact situation changes. Keep the explanation short. If it needs a paragraph or a lot of background, put that in a separate reference file and link to it instead.

Name repeated failure patterns

Sometimes several failures are really the same mistake in different forms. When that happens, it can help to name the pattern and explain why it fails.

Imagine an agent verifying a database migration. It repeatedly compares the newly migrated data against another value produced from the same migrated data. The two sides agree, but the check proves almost nothing, because both values came from the same source. You might describe the pattern like this:

Avoid self-agreeing checks: a test where both sides come from the same transformed data can agree even when the transformation is wrong. Compare against an independent source such as the original data, a fixture, or a hand-computed value.

That instruction covers more than one exact example — it teaches the agent what kind of mistake to recognize. Do this when you see a repeated pattern, not because every possible mistake needs a name.

Always rerun after a fix

Changing the skill does not prove that you fixed the problem. The change is still a hypothesis, so close the loop every time:

  1. Observe the failure. Look at the run where the agent behaved incorrectly.
  2. Find the likely cause. Which instruction was missing, vague, or misleading?
  3. Make the smallest useful change.
  4. Rerun the failed case. Does the new version fix the problem?
  5. Rerun something that already worked. Did your fix accidentally break another behavior?

That last step matters: a fix that solves one problem and creates another is not finished. And keep the failed cases you collect. Later, they become regression tests: old problems you rerun to make sure future versions of the skill do not bring them back.

Your turn: run, observe, fix, rerun

Take the draft you made in step 2 and use it on real work at least a few times. When the agent does something you did not want, write down what happened, then ask:

  1. What is the smallest instruction that would have prevented this?
  2. Is any word or category too vague?
  3. Have I said what the agent should do instead?
  4. Is it clear who makes the decision?
  5. Would a short reason help the rule make sense in other situations?

Make the smallest useful change, then rerun the case that failed and one case that already worked. Do not try to make the skill complete. Let real use decide what it needs next.

In step 4, you’ll take the version that survived these runs and remove anything that still is not earning its place.

Next: cut the skill down to the instructions that matter.

Frequently asked questions

How do I improve an agent skill?+
Run it on real work and watch what actually happens. When the agent does the wrong thing, find the smallest likely cause and make the smallest change that fixes it. Then rerun the case that failed, and one case that already worked, so your fix solves the problem without quietly breaking something else.
What do I do when the agent misreads a line in my skill?+
Three moves: split vague categories into clearer ones, each with its own rule; say what the agent should do instead of only what to avoid; and say who makes the decision, so the instruction still makes sense when you are not there to explain it.

Where to go next