An Agent Skill is a prompt. Prompts regress. skill-lens turns "I think this
SKILL.md got better" into a score, a report, and an exit code your pipeline can gate on.
📖 Full documentation: https://emadmokhtar.github.io/skill-evaluator/
Why
You edit a SKILL.md, read the new answer once, and it looks better. Two weeks later a
teammate edits the same file, and nobody can say whether the agent still looks an order up
before refunding it — or whether it now refunds orders it should refuse.
skill-lens gives that question a real answer. You write eval cases next to your skill. It
runs them, scores what came back, and reports one verdict for the whole run.
Your skills stay yours. Skills and their eval cases are inputs to the tool — nothing
about a skill under test is vendored here, so any skill repository can adopt skill-lens
without embedding it.
What it measures
- What the agent said — substring, regex and exact-match assertions on the output.
- What the agent did — which mock tools it called, in what order, and which ones it must never touch. A refund granted without a lookup is invisible to an output assertion.
- What it cost — per-case ceilings on tokens, dollars and latency.
- How well it said it — a rubric-based LLM judge (large language model grading the output) returns one verdict per rubric line, with the evidence for each. "Explains it plainly" is not a substring.
- Whether the agent reached for the skill at all —
mode: offeredregisters the skill as a tool instead of force-loading it, so triggering becomes an observable choice. Ship the negative control and a skill that fires on everything stops scoring 100%. - Whether your edit actually helped — run every case twice, once with the skill and once against a baseline (no skill, or its previous version resolved from git), and gate on the delta.
Works with
The same cases and the same evaluators score two kinds of agent, so you can compare them in one report.
| Kind | Runner | What you need |
|---|---|---|
| Agent framework — you call a model API, the framework runs the loop | pydantic-ai |
The pydantic-ai extra and a provider API key |
langchain |
The langchain extra and a provider API key |
|
| Harness — an installed agent product that runs its own loop and tools | copilot |
GitHub Copilot CLI installed; it uses its own login, so no API key |
claude-code |
Claude Code installed; it uses its own login, so no API key |
- Offline by default. The
fakerunner is scripted, so a first run costs nothing. - Mock tools everywhere. Tools you declare in a case reach a framework directly and a
harness through an MCP (Model Context Protocol) bridge that
skill-lensships. - Several at once.
--runner pydantic-ai --runner claude-coderuns every case through both and puts them in one report. - Any other command-line agent can be scored through the
clirunner, for output only.
What an eval looks like
# an eval file, beside the SKILL.md it tests
cases:
- name: refuses a refund outside the return window
task: I want a refund for order 1234
tools:
- name: lookup_order
description: Look up an order by its id
parameters:
order_id: string
returns: '{"id": "1234", "delivered_days_ago": 61}'
- name: issue_refund
description: Issue a refund for an order
parameters:
order_id: string
returns: '{"ok": true}'
trajectory:
called: [lookup_order] # it must look the order up
forbidden: [issue_refund] # and must not refund this one
assertions:
- kind: contains
value: "30-day" # and cite the policy
uv tool install "skill-lens[pydantic-ai]" # drop the extra for the offline runner alone
skill-lens run ./skills # exit 0 passed, 1 failed, 2 your setup is wrong
That first run is free: the default runner is scripted and offline, so nothing is sent
anywhere and no API key is read. Name a real agent with --runner instead — see
Works with and
Runners.
Start at Getting started, which takes one skill from nothing to a CI gate.
Documentation
| Topic | Page |
|---|---|
| First eval, end to end | Getting started |
| The vocabulary, with a glossary | Concepts |
| Deciding what to test, and the plugin that helps | Writing evals |
| Eval YAML reference | Eval files |
| Commands and flags | CLI |
skill-lens.toml |
Configuration |
| Real agents, tools, budgets | Runners |
Baselines, deltas, --min-delta |
Comparative evals |
| Exit codes and reports | Gating |
| The action and example workflows | CI integration |
| The message on your screen | Troubleshooting |
| How it is built | ARCHITECTURE.md |
| Why a green run means something | Invariants |
| What is checked for vulnerabilities, and where | Security |
| How a release is cut and published | Releasing |
| What's shipped, what's next | Roadmap |
Contributing
Contributions are welcome, and the project is set up so that helping is cheap:
uv sync
uv run pytest # the whole suite: offline, no API key, no spend
uv run ruff check .
Every test passes with no network access. Tests that would hit a real provider are opt-in
(-m integration) or replay recorded traffic, so you can work on any part of this without an
API key or a bill.
Three conventions to know before your first pull request — all three are explained in Contributing:
- Test-driven. Write the failing test first.
- Conventional Commits for commit messages and pull-request titles. Releases are derived from history, and pull requests are squash-merged, so the title becomes the commit.
- Documentation ships with the change, not as a follow-up. Continuous integration checks it.
Good places to start: a new example skill with its eval suite, an adapter for another agent framework, or anything on the roadmap. Not sure whether an idea fits? Open an issue and ask — that is a perfectly good first contribution.
Status
Discovery, scoring, judging, comparison, real-file workspaces, reporting, gating and the
automated release pipeline all ship and are tested. Versions are derived from the commit
history and published to PyPI on merge. This is 0.x: a minor release may still change
behaviour, so pin what you depend on. See the
roadmap for what is shipped and
what is planned.
License
MIT — see LICENSE.
Metadata
Release files for skill-lens 0.22.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| skill_lens-0.22.0.tar.gz | 1.4 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skill_lens-0.22.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.5 MB
Release files / skill_lens-0.22.0.tar.gz
| Download URL | skill_lens-0.22.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
528f3925c067b3f82bb0a6f6e22d4645a737f60710739cfe682205f0bcde42e0
|
|
BLAKE2b-256 checksum How to use checksums |
38782966de31d580bac2db2481f547a01346c9e43d7be541d34c67334ca175c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / skill_lens-0.22.0-py3-none-any.whl
| Download URL | skill_lens-0.22.0-py3-none-any.whl |
|---|---|
| Size | 183.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
accaa1f4e7e87f024bcba450a20da47bd0916b48bba010cdaf0dec1a125e17ed
|
|
BLAKE2b-256 checksum How to use checksums |
cb4a511da626dcc241eb228e4e9403e8cc2bf013b80c4bfd93f17de36998b61c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logSecurity for skill-lens 0.22.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for skill_lens-0.22.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.