All posts

Skills, not prompts: how I get AI agents to follow a procedure

Jake

If you ask an AI coding agent to "add tests and fix the bug," you'll get something. You just won't get the same something twice.

That's the problem I kept running into. The agent was smart, but it improvised. One day it wrote tests first. The next day it skipped them. So I stopped writing better prompts and started writing skills instead.

A prompt is a request. A skill is a procedure.

A prompt says what you want. A skill says how the work gets done here, step by step, every time.

In practice, a skill is a small folder with a SKILL.md file in it. The file has a short name and description at the top, then the steps. It can also hold checklists, templates, or scripts the agent should use. Anthropic introduced Agent Skills in October 2025. That December, it released the format as an open standard, and many coding agents now support it.

The part I like most: the agent only reads the name and description up front. It loads the full steps when a task matches. So you can keep a whole library around without stuffing every rule into every conversation.

What's in my library

My skills cover the work I want done the same way every time:

  • Brainstorming and spec-writing. Ask clarifying questions, then write a short spec before any code gets written.
  • Plan execution. Turn the spec into small steps and work through them in order.
  • TDD loops. Write a failing test, make it pass, clean up, repeat.
  • Code review. Check the change against the spec and a written checklist.
  • Release and deploy runbooks. The boring, exact steps for shipping, written down once.

None of these are clever. That's the point. They're the steps a careful senior engineer follows without thinking about it.

Why it works better than a long prompt

The agent picks a procedure instead of inventing one. When I say "let's fix this bug," the agent usually reaches for the TDD skill on its own, because its description says to use it for bug fixes. I rarely have to ask for tests.

The rules live in one place. When I change how we do code review, I edit one file. Every future session picks it up.

You can review the process, not just the output. A skill is mostly plain text, and it can live in your repo. Your team can read it, argue about it in a pull request, and improve it.

It's easier to tell when something went wrong. If the agent skipped a step, you can point to the step it skipped. With a vague prompt, there's nothing to point to.

How to write your first one

Start with something your team already does the same way every time, and keep it small.

What to do:

  • Pick one workflow you've explained to a new hire more than twice.
  • Write the steps as a numbered list, in plain language. Say what "done" looks like.
  • Add the description carefully. It's how the agent decides when to use the skill.
  • Use it for a week, then fix the steps it kept getting wrong.

Your first skill will be too long. Cut it. Agents follow short, direct steps better than essays, and so do people.

The bigger idea

Skills are one piece of making agent work something you can trust. The agent still does the typing. But the procedure is yours, written down, reviewed, and the same every time.

In a future post, I'll cover the other half: checking the agent's work with evidence instead of taking its word for it.

If your team is using AI coding tools and getting uneven results, I help teams set up exactly this kind of thing. Reach out and we can talk through it.