Hello, my name is Nikolai Petrov and we will be talking about skills and agents' knowledge of those skills.
We'll start with simple prompts where we've been playing with new work being done by agents, repeating those prompts over and over again. And then we start packing those into skills, creating repeatable, reproducible, portable functionality or capabilities that we can teach agents to work with. Some of those skills are very important, with hundreds of stars on GitHub. There are different types of skills. Some teach models something new, bringing new knowledge or capabilities to the model. But there are also types that are steering or process skills where we do not bring any additional information but just get repeatable flow of actions that we want agents to perform. Both are useful. In this session we'll be talking about new knowledge type of skills and we'll see what we can get from the models' understanding of those skills.
So we get our first skills packed and start using them, starting with the feeling of does it work or not. But there is also a more technical and more deterministic way for checking if skills are working or not and what the impacts of those skills are. There are different formats where evals can be defined. But essentially this is a task definition that you want your agent to be able to solve. You put it in a place ideally more deterministic so we can validate it. And we can check two arms. One with no skill loaded and a second one where we're loading the skill and providing this additional information to the context. And we compare how they perform. There are multiple things: one is how many evals have been solved. In this case with no skill we're solving three out of five. With skill we're solving all five. Meaning we get two more tasks. There also would be implications on token usage or time that it took those tasks to be completed and other factors. But at the end we are comparing those and seeing what makes sense and what not. And this is one of the main tools for evaluating skills and saying that they are not just nice ideas but actually working pieces of instructions and context for agents.
But what's next? We get to the stage where we have a working skill. It solves some evals. But we know that there should be a better way. We have models evolving. There might be cases where we want to get the skill more efficient, meaning consuming fewer tokens. What are the options there? One is to just change line by line and try to brute force all the different combinations. Another would be to think through what makes sense. Maybe use user feedback on the skills to see where the skills perform well and where they don't. And with new models, just running the skill and seeing how it works. What are the options there? And how large should those modifications be? Just lines, sentences, or ideas?
What we found to be useful is instead of relying on luck, we can put a more deterministic process here using ideas from the FACT score. We can split the skill and instructions into those items. And for each of those we have a pair of question and answer that we expect.
We have a predefined amount of atoms per skill, and we will have, let's say, 25 or 30 atoms per skill. Then for each of the atoms we will run two arms: one without skill and one with skill. And we will have a judge or panel of judges that will be evaluating model answers. So we're asking those questions to the model that we're interested in. We're evaluating those questions with a judge, ideally from different families of models or a panel of judges. It also ensures that the questions do not leak answers. Depending on the case, we can compare with no tools or additional information to check the model's internal understanding, or provide it with some tools like access so it would be more practical. And we can get a simple four-outcome matrix.
Basically, we are checking whether the model knows or doesn't know something and how this maps to the skill's impact on this. The simplest option is where the model was able to answer this particular question even without skill or with skill. This means that skill has no impact on this and it was already part of the model's knowledge. The second one is where without skill the model was able to answer this correctly and by adding skill we saw degradation in performance and model capability to talk about or explain particular aspects.
The ideal case is where without skill the model wasn't able to answer something and with skill we start seeing things that it can answer those new types of questions and scenarios. And this is what we were aiming for: teach the model something new. But there also can be a fourth option where skills were written not ideally or in some way not cleanly, where the model wasn't able to answer it either without skill or with skill. And while this topic might be relevant and important for the model, it still misses some of those concepts.
The simplest things to fix are instructions or items that actually hurt performance. And for popular skills those are pretty rare. In the box below you see that it's just one case out of mostly 400 atoms in Anthropic skills, and others don't have those. But for smaller skills that are less popular, you probably have come across those. This is what we're seeing with some of our experiments and this is straightforward. The simplest thing to fix is to ensure that your skill does not reduce model capabilities and performance and brings only relevant context there.
And we also can actually color this. In this scenario this is done by lines, but actually going with items you might have different coloring for a single line or a single sentence. And this just gives your example of visualization where this would be helpful to see details and instructions in terms of what new stuff you bring to the model and what is something that the model already knows. Cost-wise, we are running all those questions and asking the model, but still relatively this is cheap. For 29 skills it's 14 dollars of Sonnet and Haiku calls with Sonnet used as a judge.
There are a couple of ways how we also can check the strictness of skill knowledge. The difference is large, especially with larger frontier models where we see models dropping from 70% understanding of their skill in case of general understanding to just 22% of specific details. And this matches our expectations. We see that new models are pretty well generalized to understand concepts, but it's still helpful to provide them with exact details and data that will be useful for solving those problems.
Here is an outlook of comparing those three popular skills with models across different models. So one of the interesting observations here is that smaller models have in general lower understanding of skills with larger Sonnet having better understanding, which is why we have bigger models. But we also see that overall the models already understand a lot of the details and context of those skills. And you would expect that with newer models and more advances in better training capabilities, we will have more in terms of model understanding. But we also see that this pretty significantly differs skill to skill. It's not bad. Some skills are intended to be directional, but it's also a useful piece of information to see how those skills bring new knowledge to different models and different families. And this should be run ideally in a broader set of models.
But just having this novelty piece of information is just one of the signals. It's basically the initial vector for optimization. At the end we still have to run evals and validate that all the changes that we try to make with skills actually work.
One of the simpler scenarios would be we can look on the skill and try to remove some or all of the already known pieces of information from the skill and run evaluation. It might come up with the same scoring. Basically, we will be getting the same results. The model still is capable of solving those problems. Then great, we can reduce skill size, save tokens, save context. And instead of brute forcing and guessing what we can or should add or how to fix degradations, we can have guidance.
All of those measurements and experiments have been done with Docemy, which is a framework for comparing everything related to agents and context, where it's skills, agents, MCP, tools, whatever. Normality is one of the pieces of functionality where you can get this initial vector for skill optimization and relation. But there are also evals there—assessment of context impact, routing, comparing descriptions, naming a bunch of things that are related to skills where it would be helpful to actually get more deterministic evaluations to make conscious decisions in terms of what should be done with your skills.
So thank you for your time and please go ahead and write better skills. the tokens usage or time that it took those tasks to be completed and other factors. But at the end we are comparing those and seeing what makes sense what not. And this is one of the main tools for evaluating the skills and saying that they not just nice ideas but actually working pieces of instructions and context for the agents. But what next? We get to the stage there we have their working skill. It solves some evals. But we know that there should be a better way. We have models evolving. We have some
might be cases there. We want to get skill more efficient. Meaning consuming less tokens. So what's their options there? One is just change line by line and try brute force. All the different combinations. Another would be to think through what makes sense. So maybe use something as the user feedback on the skills to see where the skills perform well. There it's not. And with new models just running skill and seeing how it works. What's the options there? And how large those modifications should be? Just lines, sentences, sentences, ideas.
So what we found to be useful is instead of relying on their luck we can put more deterministic process here ideas of their items from the fact score. We can split their skill and instructions into those items. And for each of those have a pair of question and answer that we expect.
Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer Mer
predefined amount of the atoms per skill and we will have let's say 25 or 30 atoms per skill then for each of the atoms we will again run two arms one without skill and one with skill and we will have judge or panel of judges that will be evaluating model answers so we're asking those questions to the model that we're interested in we're evaluating those questions with their judge ideally different family of the models or panel of judges it also ensures that the question do not leak answers we depending on the case can compare with no tools or additional information to check their internal model understanding or provide it with their some tools like that access so
it would be more practical and we can get their simple four outcomes matrix basically where we are checking that the model knows or don't know something and how this maps to their skill impact on this so the simplest option is where model was able to answer this particular questions even without skill or with skill this means that skill have no impact on this and this was already part of the model's knowledge the second one is where without skill actual model was able to answer this correctly and by adding skill we saw degradation in performance and model capability to talk or explain particular aspects
the ideal case is where without skill model wasn't able to answer something and with skill we start seeing things that it can answer those new type of the questions and scenarios and this is what we were aiming for teach model something new but there also can be there fourth option where skills were written not ideally or in some maybe not clean way where model wasn't able to answer it either without skill or with skill and while this topic might be relevant and important for the model it still sort of misses some of those concepts the simplest thing to fix are instructions or items that actually hurts performance and for popular skills those are pretty rare so in the
the box below you see that it's just one case out of the mostly 400 atoms in antropic skills and others don't have those but for their smaller skills that are less popular you probably haven't come off those this is what we're seeing with some of our experiments and this is just straightforward the simplest thing to fix to ensure that your skill do not produce model capabilities and performance and bring only prevalent context there and we also can actually color this in this scenario this is done by lines but actually going with items you might have their different coloring for a single line or a single sentence
and this just gives your example of their visualization where this would be helpful details and instructions in terms what new stuff you bring to the model and what is something that model already knows cost wise we are running all those questions and asking model but still relatively this is a cheap for 29 skills 14 bucks of their sonnet and haiku calls with their sonnet used as a judge and there are a couple ways how we also can check their strictness of their some knowledge
we have language we have language we have language we have language we have language we have language we have the difference is large especially with their larger frontier models where we see OPPOS dropping from 70% understanding of their skill in case of the general understanding to just 22% of the specific details and this is much our expectations we see that new models are pretty well generalized to understand concepts but it's still helpful to provide them with exact details and data that will be useful for their solving those problems
here is outlook of their comparing those three popular Rappers with their skills across different models so one of their interesting observations here is that smaller model have in general lower understanding of their skill with their larger sonnet having better understanding which is why we have bigger models but also we see that overall the models already understand a lot of their details and context of those skills and you would expect that with the newer models and more advances in their better training capabilities we will have more and more in terms of the models understanding
but also we see that this pretty significantly differs skill to skill and it's not bad some skills are intended to be directional but it's also useful piece of information to see how those skills bring new knowledge uh to the different model and different families and this should be run ideally in the broader set of the models but just having their this novelty piece of information is just one of the signals it's basically the initial vector for optimization at the end we still have to run evals and validate that all the changes that we try make with their skill actually works so the one of their simpler scenarios
would be we can look on their skill and try to remove some or all of the already known pieces of information from the skill and run evaluation it might come up with their same scoring basically we will be getting their same results model still capable of solving those problems then great we can reduce skill size save tokens save context and instead of their brute forcing and guessing what we can or should dream of or add or how to fix their uh degradations we can have a guidance so all of those measurements experiments been done with the docemy which is a framework for the comparing
everything related to the agents and context where it's is skill agents md mcp tools whatever and normalty is one of their pieces of the functionality where you can get this initial vector for their skill optimization and relation but they're also uh evals there is assessment of the context impact routing comparing their descriptions naming a bunch of things that related to their skills where it would be helpful to actually get the more deterministic evaluations to make conscious decisions in terms of what should be done with your skills so thank you for your time and please go ahead and write better skills