Prove a skill works using evaluation
Takeaway Generate scenarios from a skill, run an evaluation, and read the score difference to see whether the skill actually changes what an agent produces. Scenarios are saved with the skill, so they become a regression test you re-run after every change.
Prerequisites
- Authentication, either a logged-in session, confirmed with
tessl whoamiand started withtessl login, or aTESSL_TOKENAPI key in the environment. - Workspace access at Publisher level or above.
- A Tessl project, so Tessl knows which repository an evaluation belongs to and your results stay tied to your codebase over time. Create one with
tessl project create <name> --workspace engteam, link an existing one withtessl project link, and repair a broken link withtessl project repair. If you belong to more than one Organization, add--org <name>or setTESSL_ORG; a non-interactive shell cannot prompt you to pick one. See Projects overview.
By default, an evaluation runs an agent on real tasks twice, once without the skill and once with it, then scores the difference. You can also declare your own variants to compare several configurations on the same tasks. That difference is the skill's value: proof it changes what the agent does, not just that it reads well. Where a review checks the skill itself, an evaluation measures its effect.
Evaluation is more rigorous than review and takes longer to set up and run. Reach for it when you need confidence a skill works, for example before you publish it or share it into a repository where you will not see how others' agents use it.
You can evaluate a single skill against generated scenarios, or evaluate context files against real tasks taken from your codebase's commit history. Both run through the same tessl eval commands.
All the steps on this page are also available through your agent. Install Tessl's Skill Optimizer to generate scenarios, run evaluations, and improve skills without leaving your editor: tessl install tessl/skill-optimizer
Skills are evaluated inside Tessl plugins
A Tessl plugin is a structure that bundles the skills, rules, and documentation an agent needs for an area of context, packaged so it can be versioned and shared. An evaluation generates scenarios and produces results, and a plugin is the natural place to keep them with the skill they belong to.
For this reason tessl eval run expects the generated scenarios to live inside the plugin, and the shorthand tessl eval run ./my-plugin expects the plugin root: the directory that contains .tessl-plugin/plugin.json. The examples on this page use ./my-plugin for that directory.
A plugin has one evals/ directory, at the plugin root. Do not put an evals/ directory under each skill, even when the plugin has several skills. See Plugin layout for a tree.
If you have a single standalone skill, import it into a plugin first:
skill import makes the skill folder itself the plugin root. If your repository has several skills, do not run skill import for each one. Create one plugin at the repository root instead. See Import an existing skill.
Generate scenarios
An eval needs scenarios. Generate them first.
Scenarios are the tasks an agent is assessed against. Generate them from the plugin:
Each generated scenario is put through a feasibility check on the server. Only scenarios that pass are saved, so the generator gives you tests that actually exercise the skill rather than filler.
--count sets how many scenarios to target, and defaults to 3. Pass a higher number to cover more of what the skill claims to do. For a narrowly scoped skill the generator may return fewer than requested, because it will not save scenarios that fail the feasibility check.
Generation runs server-side. Check progress with tessl scenario list --mine, then download the scenarios once it completes:
Run the download from inside the plugin directory (or any subdirectory of it). tessl scenario download then writes the scenarios into that plugin's evals/ directory, so tessl eval run picks them up. The download does not know which plugin the scenarios were generated from: it decides by your current directory alone. Outside a plugin, for example from the repository root, it writes to ./evals, and tessl eval run ./my-plugin then fails with "No valid scenarios found". To download from somewhere else, pass --output ./my-plugin/evals.
--last downloads your most recent generation, from any plugin or directory. If you started another generation since, pass the generation ID that tessl scenario generate printed instead: tessl scenario download <generation-id>. Override the location with --output, and choose whether new scenarios merge with or replace existing ones with --strategy merge (the default) or --strategy replace. The command always prints where the files landed.
The default destination is the plugin's evals/, wherever you run from inside the plugin. Two consequences follow from this:
--strategy replaceclears the plugin'sevals/directory before writing, even when you run from a subdirectory such assrc/. It does not targetsrc/evals. Pass--output <dir>to replace a different directory.--strategy merge(the default) keeps existing scenario folders and adds the new ones. Scenario folders are namedscenario-0/,scenario-1/, and so on. In recent CLI versions,tessl scenario generatesends the plugin's existingevals/with it, and the new scenarios are numbered from the next free index. With an older CLI, a second generation starts again atscenario-0/, somergeoverwrites the earlier folders. A folder that does have the same name as a downloaded one is overwritten, including any hand-edits in it. This happens, for example, when you download the same generation twice, or when you generated before the existing scenarios were inevals/. Copy edited scenarios you want to keep to a directory the download will not touch, or download with--outputto a separate directory.
The scenarios are saved with the skill, so anyone who changes it later can re-run the same scenarios and confirm it still behaves as expected.
You do not have to generate scenarios. You or your agent can write them by hand instead, as long as they sit in the plugin's evals/ directory, one scenario per subdirectory. See File formats for the structure.
Generate scenarios from your codebase
Instead of generating scenarios from a skill, you can build them from real changes in your repository, so the tasks reflect work your team actually does. Point tessl scenario generate at a repository with commit hashes or PR numbers:
Tessl analyses each diff and reconstructs the intent of the change as a task brief and a scoring rubric. The starting state has your context files stripped out, so the agent solves the task without them.
--context tells Tessl which files are context files. The patterns are saved in each scenario as the codebase fixture's exclude list. When omitted, Tessl excludes *.mdc, *.md, tile.json, .tessl-plugin/plugin.json, tessl.json, and .tessl/ by default.
To browse recent commits and choose which to turn into scenarios, use tessl repo select-commits org/repo. It accepts --keyword, --author, --since / --until, and --count, and prints a table of commit hashes to pass to generate.
Your GitHub or GitLab account must be connected in workspace settings.
Because these scenarios start from a state with your context files stripped out, pass --context again at run time with a glob matching those files. This adds a with-context variant on top of the baseline so you can measure the delta:
Match the --context glob to the files each scenario excludes. With no --context, only the baseline runs.
Write commit-fixture scenarios by hand
When you write a scenario with a commit fixture yourself, keep three things in mind:
- Set
includeglobs that cover only the paths the task needs, especially in large repositories and monorepos. Withoutinclude, each commit is packed as the whole repository tree, which can make archives of hundreds of megabytes.excludedoes not shrink the upload. - Use as few distinct commits as you can, and write each one as the same
refstring everywhere. Each distinctrefvalue is a separate archive, so a full SHA and an abbreviated SHA of the same commit upload twice. One fixture withoutinclude, or with an empty one, makes thatref's archive the whole tree. - Do not depend on git history. The fixture is installed as a fresh repository with one commit, and no branches or tags from the source repository. Do not write tasks or rubric checks that rely on
git log,git blame, or earlier commits. If a scenario needs history, build it in asetupscript, or put the relevant facts intask.md.
See the configuration reference for the fixture fields.
Run an evaluation
Point tessl eval run at the plugin root:
This is shorthand for tessl eval run ./my-plugin/evals --context ./my-plugin: the plugin's evals/ are the scenarios, and the plugin is the context.
Do not point tessl eval run at the evals/ directory of a plugin. Without --context, the CLI refuses tessl eval run ./my-plugin/evals and tells you to run on the plugin root, because the run would leave out the plugin and not test your skills. A scenarios directory that is not inside a plugin's evals/ still runs with no --context, as a baseline-only ("without context") run.
By default, the agent solves each scenario twice, without the skill and with it, and a judge scores both against a per-scenario rubric. A run with explicit variants solves the same scenarios for each configuration instead. The run reports each score and any applicable difference. Runs can take a while; pressing Ctrl+C detaches and the run continues server-side.
Label a run to find it again later:
Read the result
A run produces output like this:
The score difference tells you what the skill is worth:
- A large positive difference means the skill reliably moves the agent toward the right behaviour.
- Little or no difference means the agent already did the task well without the skill, or the skill is not landing.
- A small negative difference is usually normal model variance, not evidence the skill is harmful.
- A large or consistent negative difference is a real sign the skill is confusing the agent or pushing it toward unhelpful behaviour, and the content needs work.
Read the per-scenario breakdown rather than just the headline average, since a strong result on one scenario can hide a weak one on another.
Outcome and activation
A standard evaluation measures outcome: with the context forced on, does the agent produce better work against the rubric. It does not test whether the agent would have loaded the skill on its own.
To measure activation, whether the agent picks up the skill itself without being told to, add --skip-forced-context-activation. A skill can score well on outcome but fail to activate, which means it would not help in practice because the agent never reaches for it.
The two flags are independent: --skip-forced-context-activation stops forcing the context so activation can be observed, and --skip-scoring skips rubric scoring. Used together they give a pure activation check.
Example activation output:
— in the Activated skills column means the skill was not selected by the agent on its own. A skill that does not activate is a description problem, best fixed with a review. A skill that activates but does not improve the outcome is a content problem to fix in the skill body.
Multi-skill plugins
A plugin can hold several skills. The commands are the same as for a single skill, and you always run them against the plugin root:
tessl scenario generate ./my-plugingenerates scenarios for the whole plugin. Download them into the oneevals/directory at the plugin root: runtessl scenario download --lastfrom insidemy-plugin/, or pass--output ./my-plugin/evalsfrom elsewhere. If you started another generation since, pass the generation ID thatscenario generateprinted instead of--last. See Generate scenarios.tessl eval run ./my-pluginuses the whole plugin, with all its skills, as the context.--skill <name>narrows the context to the named skills. Repeat the flag to keep more than one. The other skills are left out of the with-context variant. Use the skill's name, as declared in itsSKILL.md.
--skill works only with a local plugin context. It is not valid with a published --context workspace/plugin@version.
Comparing test variants
A test variant is one configuration in an evaluation. Every variant solves the same scenarios and is scored against the same rubric, so you can compare models, agents, fixture combinations, or revisions of a plugin.
Declare variants with --variant-json. Give the flag a JSON array or the path to a JSON file:
The run solves only the variants you list. It does not add a baseline for you, so include one in the list when you want to compare against it (see Compare a plugin with no plugin). --variant-json cannot be combined with --skip-baseline or --arms-json. A JSON file can be up to 1 MiB.
--arms-json is deprecated but still works. Use --variant-json for new runs.
Each variant needs a unique label. A label uses lowercase letters, digits, hyphens, and underscores, starts with a letter or digit, and is at most 64 characters, so a model name such as kimi-k2.6 needs a label without the dot. Fields you omit use the run-level agent, model, and fixture setup. The bare string "baseline" is the exception: it removes the run-level subject fixture. An object variant, including { "label": "baseline" }, uses the ordinary object rules and includes that fixture.
Variant spec reference
Common errors:
- Duplicate labels return
Variant labels must be unique within a run. - A label with a dot returns an error that includes
label must match pattern "^[a-z0-9][a-z0-9_-]{0,63}$". - Combining
--skip-baselinewith--variant-jsonreturns--variant-json and --skip-baseline are mutually exclusive. Use --variant-json for explicit variants, or --skip-baseline for a classic eval run.
agentMustRead contains fixture names, not paths or file content. For a commit or directory fixture, the agent is told that fixture's installPath. For a plugin fixture, the agent is told the locations of the installed skills. A name must identify a fixture available to that variant after its overlay has been applied.
For example, this scenario supplies a commit fixture at the repository root and excludes draft instructions:
The variant adds a directory fixture named guidance and names both fixtures in agentMustRead. The agent is told where the repository and guidance fixtures were installed.
The CLI packages the contents of a localPath fixture and uploads them for the evaluation. The evaluation agent can access that uploaded content, so point localPath only at files you intend to share.
Fixture values in a variant
A fixture value in a variant takes one of two forms:
{ "localPath": "./path" }for content on your disk. The path is relative to the directory you run the command from. A plugin directory is installed as a plugin. Any other directory is copied into the solution at its path relative to your repository root.localPathmust be the only key in the object. The CLI uploads each distinct path once.- A published plugin, declared by name and version. The run resolves it from the registry, so nothing is uploaded:
Other fixture types need uploaded content, so declare them with localPath and let the CLI upload them. A localPath that resolves outside your Git repository (or outside the source directory, when it is not in a repository) is refused unless you pass --allow-unsafe-fixture-paths.
Compare a plugin with no plugin
Passing ./my-plugin already supplies the run-level subject fixture. The bare string "baseline" is a special case that removes that fixture. Every object variant, including { "label": "baseline" }, inherits it, so use an object with no fixtures to run the plugin once.
Repeats and limits
Repeat each variant with --runs (or -n) when a decision depends on a small score difference. One attempt per variant cannot show how much agent behavior varies between runs. If two variants' score spreads overlap heavily, the run does not show a real difference between them. It does not show that they are equivalent either. Add repeats before you decide.
--runsaccepts 1 to 10.- A run can plan at most 2,000 solves. The count is scenarios × variants × runs. Reduce one of them if the product is higher.
- A run can contain at most 100 fixture overlay entries across all object variants.
- The variant list can contain at most 50
localPathreferences, which resolve to at most 20 different local directories.
Choose how rigorous to be
Evaluation is a toolkit, not a single fixed test. Scale the rigour to how much confidence you need.
- More scenarios. Generate a higher
--countto cover more of what the skill claims to do. - Repeated runs. An evaluation runs a real agent, and agents are non-deterministic, so a single run can mislead. Pass
--runs(or-n) to run each scenario several times and average out the variance. Worth doing before you publish. - Different agents. Run the evaluation against more than one agent with
--agentto check the skill holds up across the models your team uses. - Quality filter. Pass
--quality-checkto exclude scenarios the platform judges low-feasibility, rubric-leaking, or low-signal at run time, a stricter filter than the one applied at generation. - Skip the baseline. Pass
--skip-baselineto run only the with-context variant when you do not need the comparison. - Override the scorer. Pass
--scorer-agentto score with a different agent from the one solving the tasks.
Passing secrets to an evaluation
Some scenarios need external credentials, for example an API key or a database URL. The --env-file flag encrypts a local .env file client-side and injects the variables into the eval sandbox, where setup scripts and the agent inherit them:
The file uses standard KEY=VALUE lines; blank lines and # comments are ignored. The CLI rejects reserved keys at submit time, including LITELLM_ADMIN_KEY, LITELLM_MASTER_KEY, UPLOAD_WORKSPACE, DOWNLOAD_WORKSPACE, and any key prefixed AWS_, S3_, DAYTONA_, or RECIPE_RUN_. Rename conflicting keys before running.
Choosing an agent
By default an evaluation runs against agent claude, and in the US region model deepseek-v4.1-flash. Choose a different agent and model with --agent and --model. To compare models or agents in one run, set model or agent on explicit test variants.
The default model and the available models both depend on the region you are connected to: the open-weight models below (DeepSeek, GLM, Kimi, Qwen, MiniMax, GPT OSS, and Nemotron) are not offered in the EU region, which defaults to a Claude model instead. Run tessl eval run --list-agents to print the models and the default for your region.
--agent values: claude, codex, tessl. Pair each with a --model value from its tab below.
Claude
Other hosted models
Also served through --agent claude.
Codex
Tessl
Evaluations when you publish
Publishing a plugin to the registry runs an evaluation as part of publishing, and the results appear on the registry. The evaluation is optional: pass --skip-evals to publish without it, or --with-scenario-quality-check to apply the quality filter to the publish-time run. See Distributing via registry.
Plugin layout
A plugin that holds evaluations looks like this on disk. evals/ sits at the plugin root, next to skills/, and holds the scenarios for every skill in the plugin:
File formats
task.md
Free-form markdown, and the only file the agent sees. Typically structured with problem, expected behaviour, and acceptance criteria sections. Edit it freely before running.
criteria.json
Defines how a solution is scored, as a weighted checklist:
Each checklist item carries a category: INTENT, DESIGN, MUST_NOT, MINIMALITY, REUSE, INTEGRATION, or EDGE_CASE. The score is the sum of awarded scores over the sum of maximum scores, as a percentage, and the grader can award partial credit.
scenario.json
Optional. Declares fixtures, included files, and setup scripts. A skill scenario can simply list include paths to copy into the working directory. A codebase scenario carries a commit fixture with the repository URL, the starting commit, and the context exclude patterns. See the configuration reference for the full schema.
Next
- Codifying and enforcing your skill standards - set an organisation-wide quality bar and enforce it.
- Troubleshooting reviews and evaluations - what to do when a run fails or scores look wrong.