Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. Skills have become a core building block for AI agents, packaging expertise and workflows into reusable instructions. But despite their growing importance, most teams still create them through trial and error: write a skill, test it, revise it, and hope it performs better. In this episode, we explore SkillOpt, a framework that treats skills not as static prompts but as trainable artifacts. Instead of manually rewriting instructions, SkillOpt uses evaluation, feedback, and optimization loops to systematically improve a skill over time. You’ll learn: * How SkillOpt reframes prompt engineering as skill training: why skills can be treated as trainable external state and how optimization happens without changing model weights. * What the experiments reveal about skill optimization: where the largest gains appear, why skill transfer works across models, and the practical limits of optimizing instructions instead of model parameters. * How to apply SkillOpt yourself: reproducing the workflow on SearchQA, training skills on your own datasets, and evaluating whether optimization delivers measurable improvements over baseline prompting. By the end, you’ll understand when skill optimization is worth the additional compute, where it outperforms traditional prompt engineering, and why training instructions may become as important as training models in future agent systems. If you’d rather read than listen, the full article (with diagrams, code examples, and implementation details) is available on Substack: 👉 Enjoyed this episode? Subscribe to The AI Practitioner to get future articles and podcasts delivered straight to your inbox. Get full access to The AI Practitioner at aipractitioner.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_02Welcome back to the AI Practitioner. I'm Lina Faik, ML Engineer, Consultant and Lecturer in Advanced Machine Learning at Sorbonne University. I help companies turn their data into real outcomes with AI, and this is where I share what I learn from actual projects. The deep technical write-ups live on Substack at AIPractitioner.substack.com, and these conversations are the audio companions. With me today is Theo. He builds agent systems and has written plenty of instructions for them.
What he hasn't done is treat those instructions as something you can actually
SPEAKER_02train, which is exactly where we're going.
SPEAKER_01So what's on the table today?
SPEAKER_02Picture this. A few weeks ago, I'm tuning a skill for an agent. A skill is just a document of instructions you hand the model. I rewrite a paragraph, I run the eval, The score moves. I rewrite it again. The score moves the other way. By the fourth round, I honestly could not tell you if I was making it better or just making it different.
SPEAKER_01Ouch.
SPEAKER_02Right. And that's basically the whole state of the art for building these things. Write, test, rewrite, repeat. There's no real science to it. You stop when the results are good enough, not when you understand what helped.
SPEAKER_01Okay, back up one step. When you say skill, what's actually in this document?
SPEAKER_02It's compact. It tells the agent how to gather evidence, how to use its tools, how to verify what it found, and how to format the final answer. That's it. And the key thing is the model itself never changes. The weights are frozen. The plumbing around it is frozen. The only thing that moves is the text of that document.
SPEAKER_01So it's the part you can edit without retraining anything.
SPEAKER_02Exactly. Cloth Skills really popularized this idea, and now most agent frameworks have some version of it. The problem is how people write them.
SPEAKER_01Which is the write-test-rewrite loop you just described?
SPEAKER_02That's one of three ways, and they all hit a wall. One, you write it by hand, or have a model write it, and you lean on intuition. Two, you have a model generate the whole thing in one shot. Looks polished, reads great, but it's never been tested against a real outcome. Three, you let the agent rewrite its own instructions after each run.
SPEAKER_01Hold on, though. That third one already sounds like learning. The agent sees what went wrong and fixes its own instructions. Isn't that the thing you want?
SPEAKER_02You'd think so. But here's the failure mode. With no check, the agent throws out a rule that was actually working and replaces it with something worse. It doesn't improve. It drifts. It's change without discipline.
SPEAKER_01So motion, not progress.
SPEAKER_02That's it exactly. And that gap is the whole reason this paper exists. It's called Skillopt. The idea is, we already solved this problem once. Deep learning had the same chaos in the early days, and we tamed it with a few simple disciplines. Controlled updates, a validation step, actually using your failures as signal.
SPEAKER_01So they're porting the training playbook onto a text document.
SPEAKER_02Yes. Instead of updating hidden weights, you update sentences. Instead of gradients, you use evidence from real runs. The result is a way of improving a scale that you can measure, reproduce, and audit. There's a cleaner formal version of why this mirrors gradient descent, and I'll leave that part to the article.
SPEAKER_01Fair. So make the loop concrete. What does one round actually look like?
SPEAKER_02Let me use the example from the paper, because it's perfect. The question is, which 1851 novel features the Wailing Ship Pequod? Gold answer, Moby Dick. The model runs and says, the novel is Moby Dick by Herman Melville.
SPEAKER_01Which is correct.
SPEAKER_02Completely correct. And it scores zero.
SPEAKER_01Zero? Why? Because the grader wants an exact match, and the gold answer is just Moby Dick.
SPEAKER_02All that extra by Herman Melville makes it not match. So the model knew the answer and still failed. That's the failure the system captures.
SPEAKER_01So the model isn't dumb, it's just verbose.
SPEAKER_02Right. And that distinction is the whole point. Phase 1 is the rollout. The frozen model answers a batch of questions, and a verifier scores every one. Phase 2 is Reflection. A separate, stronger model reads the wins and the losses side by side and looks for a pattern.
SPEAKER_01And the pattern here is what?
SPEAKER_02The wrong answers keep burying the right span inside an explanation. The right answers are short and clean. That contrast becomes the signal. It plays the role a backward pass plays in normal training. It turns outcomes into a direction.
SPEAKER_01Okay, then what? It just edits the document?
SPEAKER_02Phase 3, yes, but very constrained. Three moves only, add a sentence, remove a sentence, replace a sentence. Here it might add something like, answer using the shortest exact span, no extra explanation. And then phase 4, which is the one that matters most.
SPEAKER_01Validation Validation.
SPEAKER_02That new instruction is only a hypothesis. Before it's allowed into the skill, the system tests the edited version on a held-out set it never looked at during reflection. The model now answers just Moby Dick. If the score on that held out set goes up, the edit stays. If it's flat or worse, it gets thrown out and you keep the old version.
SPEAKER_01So a sentence has to earn its way in.
SPEAKER_02That's the line I'd underline. A sentence only enters the skill after it proves a measurable benefit. That single gate is what separates this from the agent rewrites itself mess we talked about earlier.
SPEAKER_01I want to push on that, because to me this still sounds like a model editing a prompt in a loop, and we both know loops like that go off the rails. What actually stops it from drifting?
SPEAKER_02Fair, and that's the right question. There are four guardrails, and they're all borrowed straight from how optimizers work. First, a budget on how much you can change in one step. The paper calls it a textual learning rate. By default you get four edits, and that's it. Take the cap off, and it rewrites too aggressively, and performance drops.
SPEAKER_01So small steps.
SPEAKER_02Small steps. Second is the validation gate we just covered. Third is memory. When an edit gets rejected, it doesn't vanish, it goes into a buffer of things we tried that didn't work, and that buffer gets shown to the optimizer next time so it stops making the same bad suggestion.
SPEAKER_01It remembers its own mistakes.
SPEAKER_02It does. There's also a slow update piece, because one batch can be noisy and reject a genuinely good edit just by bad luck. The slow update steps back periodically and takes a wider view, so good ideas don't get lost to noise.
SPEAKER_01You said four, that's three.
SPEAKER_02The fourth is my favorite. There's a second document called the Meta Skill. Think of it this way. The skill is the player's playbook. The Meta Skill is the coach's notebook. The player runs the plays, the coach keeps private notes on what tends to win and what keeps backfiring. The player never reads the notebook, but it shapes every future decision. So the system isn't just improving the skill, it's improving how it improves the skill. Exactly. It gets better at editing over time, and it costs nothing extra at runtime. I'll skip the ablation tables on mic,
but the paper measures what each guardrail is worth.
SPEAKER_02And when you pull out the meta skill and the slow update together, one benchmark collapses from the mid-70s down to the mid-50s. The rest of the numbers are in the write-up.
SPEAKER_01That's a big drop. So does it actually work across the board, or just on that one trivia setup?
SPEAKER_02Six benchmarks, seven different target models, and it's best or tied for best in every single evaluation cell. On the strongest model, the average gain over having no skill is about 23 points.
SPEAKER_01Best compared to what, though? Beating no skill is a low bar.
SPEAKER_02It's not just no skill. They put it up against handwritten skills, against other prompt optimizers like TextGrad and JIPA, and against earlier skill evolution methods that also rewrite the skill over time. It came out on top or tied across every one. So the discipline is doing real work, not just clearing an empty baseline.
SPEAKER_01Okay, that's a fairer fight. So where does it fall down?
SPEAKER_02A few places. It's expensive, all those rollouts and validation runs burn compute where writing a skill by hand is basically free. And it leans on the optimizer. A strong optimizer finds good edits, a weak one just floods the gate with proposals that fail. But the deepest limit is where the gains land.
SPEAKER_01Which is?
SPEAKER_02Procedural work. Spreadsheets, office tasks, step-by-step math, that's where the big jumps are. Knowledge questions, like our Moby Dick example, improve much less.
SPEAKER_01Which makes sense. A skill can't tell the model a fact it doesn't already know. That's the ceiling, and it's the most important caveat in the whole paper.
SPEAKER_02A skill changes how a model uses what it has. It can't add capability the model is missing. If the knowledge isn't in there, no instruction document conjures it up.
SPEAKER_01So it's a multiplier on existing ability, not new ability.
SPEAKER_02Perfect way to put it. Two other things practitioners care about. The trained skills transfer. You can train one and use it on a different model or a different setup and it still helps. And they stay tiny. A few hundred to a couple thousand tokens. Often after just one to four accepted edits. And they're not cryptic prompt hacks, they read like plain operational rules.
SPEAKER_01Honestly, the small and readable part surprises me more than the scores.
SPEAKER_02Me too. And that's actually why I didn't just take the paper's word for it. I ran my own slice.
SPEAKER_01You reproduced it?
SPEAKER_02A small piece. One benchmark, search QA, the same trivia style setup. And I deliberately used a tiny target model, GPT-5 nano, with a stronger model, GPT-5, doing the optimizing. That mirrors the realistic case. A capable optimizer training a skill for a cheaper model you'd actually deploy.
SPEAKER_01And?
SPEAKER_02Three arms. No skill at all. The skill the paper's authors trained, and a skill I trained myself in the loop. Both skill versions beat no skill. The one I trained came out very slightly ahead, but the margin is small, so I wouldn't make a big claim there.
SPEAKER_01So the headline holds, even small.
SPEAKER_02It holds. But the part I found most useful was the second metric. I scored every run two ways. A strict exact match score and a softer one that gives partial credit when the right answer is in there but the wording is off.
SPEAKER_01Oh, that's the Moby Dick problem again.
SPEAKER_02It's exactly that. And the numbers proved it. The no-skill baseline already had a high soft score. The model was finding the right answer most of the time. It was just losing points on formatting and phrasing. The skills closed that gap. Cleaner extraction, stricter formatting, better matching of clue to answer. They weren't teaching the model anything. They were getting out of its way.
SPEAKER_01Can I see the actual numbers?
SPEAKER_02They're in the article, with the notebook, so I'll spare you a results table read aloud, but the shape is what matters. The win is mostly about cleaning up the output, not making the model smarter.
SPEAKER_01And that's the honest version of the result?
SPEAKER_02It is. It's not magic, it's discipline applied to something we used to do by gut feel.
SPEAKER_01Alright, practical question. If I'm at my desk Monday morning and I want to try this on my own data, where do I actually start?
SPEAKER_02Start by separating two things you've probably got tangled together. First, do you even have a held out set to score against? If you can't measure it, none of this works, because the whole method runs on that validation gate. Second, ask whether your task is procedural or knowledge-bound. If it's procedural, a workflow with steps and tools, you'll likely see real gains. If your model simply doesn't know the thing, manage your expectations.
SPEAKER_01Measure first, then check if it's even the right kind of problem.
SPEAKER_02That's the order. The full write-up is on Substack at AIPractitioner.substack.com. It walks through the four-phase loop in detail, the guardrail ablations with the actual numbers, and my reproduction notebook so you can run the slice yourself. And here's the thing I keep coming back to. We spent years writing these instruction documents by feel and calling it prompt engineering. SkillOps' real contribution isn't a clever trick. It's the boring discipline. Make every change earn its place. That's what turned deep learning from alchemy into engineering, and it's quietly doing the same thing for skilled.
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could learn from every interaction...
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could continuously improve their...
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could improve their own prompts...
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if the key to better AI agents isn’t writing...
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if improving an AI agent’s performance had less...