Evaluate agent skills before you ship them. Local LLM evals that catch regressions, compare models on cost vs quality, and deploy to Claude Code, Cursor, and Codex.
pip install skillgate-aiSite: skill-gate-ai.app · Docs: Documentation · Source: GitHub
skillgate checks an agent skill that lives in a folder on your machine. A pack is SKILL.md plus evals/. skillgate check exits 0 when the run passes, 1 when it fails, and 2 when it cannot run. Live checks are scored only by a decision model you select. Requires Python 3.11+. The package name is skillgate-ai (pip install skillgate is a different project).
- Evaluate agent skills locally. One pack on disk, checked with
skillgate check. No Skill Gate account. - Catch regressions. Pin cases in
evals/, run them in CI, and compare two versions of the same dataset. - Pick a model on cost vs quality.
skillgate compare modelsruns the same pack on more than one agent arm and records spend. - Deploy to Claude Code, Cursor, and Codex. After a passing check,
skillgate deploycopies skill files into the matching agent folder.
Python 3.11+. On Debian, Ubuntu, and Homebrew Python, pip install needs a virtualenv or pipx (PEP 668). Longer walkthrough: 10-minute quickstart.
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install skillgate-ai==0.7.20
# or: pipx install skillgate-ai==0.7.20
skillgate examples install
skillgate check skills/json-response
skillgate check skills/json-response-sabotaged
skillgate check skills/json-response --baseline --case flatten-ordersTo check a pack outside your project workspace (not under skills/ or agent install dirs), opt in explicitly: skillgate check /path/to/pack --allow-root /path/to/pack (or a parent directory), or put one absolute path on the first line of ~/.skillgate/allow-root. A pack cannot grant itself access via repo .env or .skillgate/ files.
skillgate examples install writes six skills under skills/. Files already in that folder stay as they are. skills/json-response exits 0 when the live run is green. skills/json-response-sabotaged exits 1: the JSON checks fail, and the unrelated check can pass. Both checks exit 2 until an agent is available and a decision model is selected. Use skillgate login or skillgate keys set for the agent (Sign in an agent), and skillgate judge provider set for the decision model. This repo tracks 0.7.20. PyPI latest is skillgate-ai==0.7.20 (same behavior as 0.7.12; do not use 0.7.13 or 0.7.14). Clone and pip install -e . when hacking on the tool itself. A check that never starts is saved as not scored. skillgate import of a skill already in this project stops and leaves the files alone. A decision-model key is not an agent login.
| Install | Adds | Needed for |
|---|---|---|
pip install 'skillgate-ai[ui]' |
FastAPI, uvicorn, python-multipart | skillgate ui |
pip install 'skillgate-ai[docs]' |
pypdf, python-docx, openpyxl, reportlab | PDF checks, demo PDFs, document text for the decision model |
pip install 'skillgate-ai[mcp]' |
mcp | skillgate mcp (stdio MCP tools; MCP setup) |
pip install 'skillgate-ai[all]' |
ui, docs, mcp | everything |
MCP for agents: install [mcp], run skillgate mcp, wire your editor — full tool reference and client snippets in MCP setup (plugin install).
When a feature needs an extra that is not installed, Skill Gate exits 2 with:
Missing optional dependency for {feature}. Install with: pip install 'skillgate-ai[{extra}]'
The same steps in the local UI:
pip install 'skillgate-ai[ui]'
skillgate uiOpen http://127.0.0.1:8765. Click Skills. On Skill Repository, click Examples, then Install. The toast reads Installed 6 examples (53 files). Open json-response, click Evaluate this skill, then Run. The button reads Run 3 cases. Until you sign in or add a key, the line above it is Next: sign in or add a key in Settings, then press Run. Repeat for json-response-sabotaged to see the failing checks.
A live check needs a signed-in agent. skillgate login --status and skillgate deploy use these labels:
- Editor agent is Cursor. Deploy installs into
~/.cursor/skills. - Code agent is Claude Code. Deploy installs into
~/.claude/skills. - Terminal agent is Codex. Deploy installs into
~/.codex/skills.
Save one of these keys, or run skillgate login:
printf '%s\n' "$CURSOR_API_KEY" | skillgate keys set CURSOR_API_KEY
# or: printf '%s\n' "$ANTHROPIC_API_KEY" | skillgate keys set ANTHROPIC_API_KEY
# or: printf '%s\n' "$CODEX_API_KEY" | skillgate keys set CODEX_API_KEYskillgate keys set prompts, or reads the value from stdin. Do not put the key on the command line.
A decision model scores each live check, and one is required. Each option below takes one key and only the fields listed. skillgate keys set prompts, or reads the value from stdin. Do not put the key on the command line.
Skill Gate reads .skillgate/judge in this project first, then ~/.skillgate/judge when the project has no model picked. Keys use the project vault first, then SKILLGATE_* / --key-env, with ~/.skillgate/keys filling gaps only. Writes go to the project by default; add --global on skillgate judge provider set to save judge settings under ~/.skillgate/judge instead. See Where settings are read from.
An OpenRouter key from https://openrouter.ai/keys. Skill Gate stores it as JEV_API_KEY because Jev is the OpenRouter decision model that scores the check.
Fields: base URL https://openrouter.ai/api/v1, model typesafe/jev-1.14, API key.
printf '%s\n' "$OPENROUTER_API_KEY" | skillgate keys set JEV_API_KEY
skillgate judge provider set jev --base-url https://openrouter.ai/api/v1 --model typesafe/jev-1.14skillgate judge provider set jev fills that URL and model when you leave the flags off.
UI: skillgate ui, open Settings, choose OpenRouter, confirm Advanced shows that URL and model, paste the key, Save, then Test.
An OpenAI key from https://platform.openai.com/api-keys. skillgate judge provider set openai uses model gpt-6-luna.
Field: API key.
printf '%s\n' "$OPENAI_API_KEY" | skillgate keys set OPENAI_API_KEY
skillgate judge provider set openaiUI: skillgate ui, open Settings, choose OpenAI, paste the key, Save, then Test.
A Cloudflare token from https://dash.cloudflare.com/profile/api-tokens. The account id is the id in the account URL. Replace accountid with that id. Letters and digits only.
Fields: account id, model (clef or clef-flash), token.
printf '%s\n' "$CLOUDFLARE_API_TOKEN" | skillgate keys set CLOUDFLARE_API_TOKEN
skillgate judge provider set clef --account-id accountid --model clefUI: skillgate ui, open Settings, choose Cloudflare, enter the account id, pick clef or clef-flash, paste the token, Save, then Test.
A key for the URL you enter.
Fields: base URL, model, API key. There is no fixed model list. Replace MODEL with the model name.
printf '%s\n' "$CUSTOM_DECISION_API_KEY" | skillgate keys set CUSTOM_DECISION_API_KEY
skillgate judge provider set custom --base-url https://example.com/v1 --model MODELUI: skillgate ui, open Settings, choose Custom endpoint, enter the base URL and model, paste the key, Save, then Test.
skillgate judge testskillgate judge provider test runs the same check.
This API key was rejected.The key is wrong for this option, or it was revoked. Create a new key from the same page and runskillgate keys setfor that option again.This key is for a different endpoint.The URL is not a scoring URL. OpenRouter useshttps://openrouter.ai/api/v1.This account is out of credits.Add credits on that account, then runskillgate judge test.- This looks like an OpenRouter key. Switch to OpenRouter with
skillgate judge provider set jev. Run that command, or press Switch. OpenAI does not use a base URL. It only needs an API key.Runskillgate judge provider set openai.Cloudflare scores only with clef or clef-flash. Choose OpenRouter for typesafe/jev-1.14.That option does not scoretypesafe/jev-1.14. Use--model clefor--model clef-flash, or switch to OpenRouter.OpenRouter scores only with typesafe/jev-1.14. Choose Cloudflare for clef or clef-flash.Use--model typesafe/jev-1.14, or switch to Cloudflare and pickcleforclef-flash.- This decision model needs an API key. Add it in Settings, or with
skillgate keys set. Save the key named above. This decision model needs a base URL.Pass--base-url. OpenRouter's ishttps://openrouter.ai/api/v1.- This decision model needs an account id. Set it with
skillgate judge provider setand--account-id. Cloudflare needs that flag. An account id uses letters and digits only.A hyphen is not a missing account id.That account id wasn't found.The account id in the URL does not exist.gpt-4o isn't a decision model.A chat model on a custom endpoint is refused. Scoring errors do not include HTTP codes.This decision model needs a model.Pass--model, or pick one from the list.Pick a decision model before running a live check.Run oneskillgate judge provider setcommand above.skillgate judge provider showprints the option id, its model, and its base URL. With none selected in this project or in~/.skillgate/judge, it printsPick a decision model before running a live check.and exits 2.- A scoring outage is not scored in
--jsonand history, not a red or fail, and still exits 2.skillgate judge test --verbose(orskillgate check --verbose) prints the sanitized upstream reason. The message never includes HTTP codes, keys, or a provider name. Unstarted or timed-out checks are saved as not scored.
- One pack on disk, checked with
skillgate check - Exit 0 (pass), 1 (fail), or 2 (not ready)
- Live checks scored only by a decision model
- Custom scoring questions on top of the built-in questions
--expect-failfor a pack that should fail- Deploy copies skill files after a passing check
- Local UI with
skillgate ui - Compare two versions of the same dataset
- Baseline and version compares (
skillgate check PACK --baseline,--baseline --case ID) and MCP toolsbaseline_compare/version_compare(see MCP setup) - Dataset
containschecks are substring matches (not whole-file exact); optional per-casepass_rubricis included in judge scoring text when set
From the quickstart directory:
skillgate examples list
skillgate examples install json-response
skillgate check skills/json-response --case flatten-orders
skillgate check skills/json-response-sabotaged --expect-fail
skillgate example pdf
skillgate check skills/pdf
skillgate ingest skills/pdf
skillgate example pdf-sabotaged
skillgate check skills/pdf-sabotaged --expect-fail
skillgate deploy skills/pdf
skillgate judge provider show
skillgate judge add-question skills/pdf --ask "Did the answer follow the requested format?"
skillgate compare versions skills/pdf --dry-run
skillgate ui--expect-fail exits 0 only when the live run is red. skillgate deploy copies the skill files after this pack already has a passing check. It does not run check for you. Deploy stays blocked until an agent is available, even after a green check. The folder for each agent is listed under Sign in an agent. skillgate ui serves the local UI at http://127.0.0.1:8765. skillgate mcp serves tools over MCP (docs). A version compare takes two --run ids or two --git refs. skillgate example NAME writes skills/NAME. skillgate judge add-question needs a skill pack. skillgate case remove keeps the original checks of the bundled examples.
Create a workspace and a skill:
skillgate init
skillgate new notes-helperA dataset is evals/cases.yaml plus small files in evals/fixtures/ and expected files in evals/goldens/. The folder name, the name in SKILL.md, and skill in cases.yaml are the same string. Start with 3 to 6 pinned cases: one behavior, one edge, and one unrelated prompt (should_trigger: false). Keep the expected sentence out of the prompt. If the right answer is an escalation or refusal, put that in the golden: built-in checks grade against that expected outcome, so doing it is Fully completed. The examples do this: json-response flattens an API body, readme-writer turns a brief into a README, log-summarizer counts errors, sql-writer writes a query from a schema (and refuses a missing column), and receipt-extractor reads a fictional receipt. json-response-sabotaged uses the same JSON cases and fails them.
A red names the failing check and includes the judge's reason (Got the job done? …). When a blocking answer's confidence is below 0.5, the judge is re-asked up to 3 times and the majority wins. Blocking checks are Got the job done?, Got it right?, Followed the rules?, Used the right evidence/actions?, and Delivered a good result? (How it ran is warn-only). Individual votes are in tasks[].judge.votes (skillgate check --json or skillgate history show RUN --json). --no-judge still needs a signed-in agent. List run ids with skillgate history --pack skills/json-response, then skillgate history show RUN --pack skills/json-response reprints a saved named red offline. Details: Bring your own judge.
Check a dataset on disk, then run it:
skillgate ingest skills/json-response
skillgate case list skills/json-response
skillgate check skills/json-responseIn the UI, open the skill from Skill Repository and click Evaluate this skill, then Run.
The full guide, with a copy-paste pack and the mistakes that reject a dataset, is Writing a dataset. The same page is on the docs site: Writing a dataset.
Clone this repo first (compose.yaml lives here), then:
git clone https://github.com/vigneshm1995personal/skillgate.git
cd skillgate
docker compose run --rm --no-TTY skillgateThe image entrypoint is skillgate. The default command is check /pack. With no pack mounted, that path is missing and the command exits 2.
name: skillgate
on: [push, pull_request]
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: vigneshm1995personal/skillgate@v1
with:
path: skills/pdf
judge: jev
env:
SKILLGATE_JEV_API_KEY: ${{ secrets.SKILLGATE_JEV_API_KEY }}path is a skill pack or a suite file. The default is skills. version is the skillgate-ai release to install. Pin version: "0.7.20" (same behavior as 0.7.12; do not use 0.7.13 or 0.7.14). Leave version unset only if you accept whatever PyPI lists as latest. judge is the decision model id. model, base-url, and account-id are optional. harness is optional. args holds extra flags, such as --no-judge or --expect-fail. --no-judge skips scoring and still needs a signed-in agent.
Pass keys as SKILLGATE_* environment variables from the caller secrets. The action does not print those values. It does not switch to another decision model when judge is set.
Exit 0 passes, exit 1 fails, and exit 2 means the check cannot run. The job summary records that result.
Documentation · Plugin install (skills + MCP)
Issues and pull requests are welcome.
Apache License 2.0. See LICENSE.
