Skip to main content

Skillgauge

AMD Agent Skills Python Claude Code GitHub Actions License: MIT

Skillgauge: Agent Skill Testing Harness

A test harness for AI agent skills. Install the harness, or point a workflow at your repo. Skillgauge enables four main types of tests:

  • Structural: Checks whether the skill is well structured (contains the expected files, a proper hierarchy, etc.).
  • Routing: Checks whether the skill triggers when it should and stays quiet when it shouldn't. You may also point to more than one skill here to explore how skills interfere with each other's routing.
  • Behavioral: Runs the agent end to end and uses an LLM judge to confirm the skill behaves correctly.
  • Staleness: Runs the behavioral cases a second time with the skill withheld, and compares. Tells you whether the cases still need the skill, or whether the model has caught up and the suite is passing on its own.

All four read one dataset per skill, <skill>/evals/evals.json. How to write one is in docs/authoring-evals.md.

Quick start

Run from the root of the repo you want tested.

uv tool install --system-certs skillgauge

skillgauge structural                        # no agent, no tokens
skillgauge structural --external             # the same, plus checking external URLs
skillgauge behavioral --skill my-skill       # needs an authenticated `claude` CLI
skillgauge routing --routing-room my-skill,its-neighbour  # also needs a key in the environment
skillgauge staleness --skill my-skill        # the same key: its baseline has to be an empty room

routing needs ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN set, and refuses to start without one — a claude login on its own is not enough. The key is what lets the run point the CLI at its own config directory; without that, the runner's own ~/.claude/skills join the room for every case and the scores describe a room nobody asked for. behavioral installs one skill and grades what the agent produced, so a stray skill is at worst noise there, and a plain claude login is fine.

staleness is in routing's camp, not behavioral's, and asks the same credential question on Claude Code. Its baseline half has to be a room with no skills in it, so the runner's own are not noise there — they are the measurement. Either set one of those variables, or use --engine claude-code, whose guest has no user-level skills at all. It is Claude Code only: unlike routing, which scales its refusal per harness, it refuses any --harness other than claude-code, because there is no staleness leg for another one yet.

Run it from your CI

Simply add an evals.json file to your skill and a workflow that points to our reusable workflow. This will trigger the three graders the workflow runs -- structural, routing and behavioral -- directly from your repo. staleness is not one of them: it runs both halves of every case and is meant to be asked for deliberately rather than on every push.

An evals.json plus a workflow that calls reusable.yml runs Discover Skills, Structural Tests, Routing and Behavioral Tests, then Results
jobs:
  evals:
    uses: amd/skillgauge/.github/workflows/reusable.yml@v0.2.0
    secrets:
      api_key: ${{ secrets.ANTHROPIC_API_KEY }}
    with:
      skills: skills/*

You may also choose to customize or even disable some tests if you prefer it. See docs/usage.md for details.

Commands

Command Does
skillgauge structural Skill folders, datasets, and markdown references.
skillgauge routing Which skill fires, with several installed together.
skillgauge behavioral What a skill does once it has fired.
skillgauge staleness Whether those cases still need the skill, and what the agent spends without it.
skillgauge select The CI plan for a change, as JSON.
skillgauge list-skills The skills that have a dataset, as JSON.
skillgauge template The dataset template a new skill starts from.

--help on any of them is the reference. Reports go to stdout as markdown, to $GITHUB_STEP_SUMMARY under Actions, and to JSON under .skillgauge/runs/ in the repo under test — worth adding to .gitignore.

Docs

Development

How to contribute, and the checks a pull request has to pass, are in CONTRIBUTING.md.

python -m pip install -e .
python -m unittest discover -s tests -t .

Runtime dependencies are PyYAML for frontmatter and evals/machine.yml, inspect-ai for the eval framework both engines are built on, and anthropic for the model client. inspect-ai became required when the last stdlib-only engine was removed; the test suite still runs on the standard library alone, and builds a throwaway repo in a temp directory rather than reading the tree it runs in.

License

MIT. See LICENSE.

Metadata

Release files for skillgauge 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skillgauge 0.2.0
File Size Uploaded Provenance Actions
skillgauge-0.2.0.tar.gz 353.8 kB With provenance Details for skillgauge-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skillgauge 0.2.0
File Interpreter ABI Platform Actions
skillgauge-0.2.0-py3-none-any.whl Python 3 none any Details for skillgauge-0.2.0-py3-none-any.whl

Total release size: 576.7 kB

Release files / skillgauge-0.2.0.tar.gz

Download URL skillgauge-0.2.0.tar.gz
Size 353.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c429078e6635c56b6dafc63f1cc54cc4ba1707d9117a824ea01362521d84ae54
BLAKE2b-256 checksum
How to use checksums
12f60a2eb297169d8719ff8831733310d54559bb8ac7898959a37f379dd2b28c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 1, 2026.

Transparency log

Release files / skillgauge-0.2.0-py3-none-any.whl

Download URL skillgauge-0.2.0-py3-none-any.whl
Size 222.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eaf6f97681afe251a6a11e7ecd37b99b8ca8ca21fec49ab809a1c818ee26ebc0
BLAKE2b-256 checksum
How to use checksums
e8d73c864a80102ffa98f77a3c3f2b8492055f1a784b5463c519394404538b05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 1, 2026.

Transparency log

Security for skillgauge 0.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for skillgauge-0.2.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 Dec 1, 2026.

Transparency log

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page