@sx4im/skillcheck
v15.0.1
Published
Controlled A/B testing for AI agent skills, .cursorrules, CLAUDE.md, and system prompts: blind grading, bootstrap confidence intervals, and HELPS/PLACEBO/HARMS effect size measurement.
Maintainers
Keywords
Readme
Controlled A/B testing for AI agent skills, .cursorrules, CLAUDE.md, and system prompts.
Point Skillcheck at an instruction file to see whether it helps your model. The CLI generates domain-specific tasks, runs each task with and without the instructions, and grades the answers blind. It reports the change in pass rate with a 95% bootstrap confidence interval, the extra prompt tokens, and a HELPS, PLACEBO, or HARMS verdict.
Evaluate with your own model provider key or a local model. View the example report.
$ skillcheck
✓ Evaluation tasks ready · 12s
✓ Trials complete (30/30) · 1m 38s
✓ Grading complete (30/30) · 41s
✓ Analysis complete · 2m 33s
╭────────────────────────────────────────────────────────╮
│ SKILLCHECK RESULT │
├────────────────────────────────────────────────────────┤
│ Skill API Documentation │
│ Run size 5 tasks × 3 trials │
│ │
│ Verdict HELPS │
│ The skill HELPED — model passed 80% of tasks with it │
│ vs 55% without. │
│ │
│ With skill 80.0% of tasks passed │
│ Without skill 55.0% of tasks passed │
│ Skill effect +25.0 pp change in pass rate │
│ Confidence +8.0 pp to +42.0 pp (95% range) │
│ Token cost +480 tokens to include the skill │
├────────────────────────────────────────────────────────┤
│ Satisfaction ██████████████░░░░ 75.0/100 GOOD │
╰────────────────────────────────────────────────────────╯Table of contents
- Install
- Quick start
- Supported formats & agents
- Why skillcheck
- Skillcheck vs. traditional linters
- How it works
- Architecture
- Commands
- CI/CD integration
- Badges for your repository
- Reading the result
- Effort levels
- Terminal experience
- Configuration
- Model choice
- Development
- Star history
- License
Install
npm install -g @sx4im/skillcheck@latest
# or run it without installing:
npx @sx4im/skillcheck@latestRequires Node.js 20+. Works on Linux, macOS, and Windows.
See the changelog or GitHub releases for release notes and downloadable tarballs.
Skillcheck checks npm for a newer version about once a day and offers to update
(like the Codex and Gemini CLIs). Disable with SKILLCHECK_NO_UPDATE_CHECK=1.
Quick start
Try the demo
The demo shows the progress tracker and result card without calling a model.
npx @sx4im/skillcheck@latest demoRun an evaluation
After installing, run setup to connect your provider. Skillcheck masks your key, lists available models alphabetically by ID, and saves your selection locally. Press / to search the catalog. On OpenRouter, search :free for free variants.
skillcheck setup
skillcheck check ./SKILL.mdIf Ollama, LM Studio, or vLLM is running on its default localhost port and has a model available, setup can connect to it for local evaluation. Run skillcheck on its own to open the interactive file picker and choose an effort level.
skillcheck ./my-skill-folder # a folder containing a .md
skillcheck check ./SKILL.md --json # machine-readable output
skillcheck check ./SKILL.md --output result.jsonFor scripts and CI, supply a supported provider key through the environment.
export NVIDIA_API_KEY="nvapi-..."
npx @sx4im/skillcheck@latest check ./SKILL.md --tasks 5 --trials 3 --jsonSupported formats & agents
Skillcheck benchmarks any Markdown agent instruction, rule file, or prompt document:
| Tool / Framework | File / Path Convention | Example Command |
|---|---|---|
| Cursor | .cursorrules, .cursor/rules/*.mdc | skillcheck check ./.cursorrules |
| Claude Code | SKILL.md, CLAUDE.md, .claude/skills/* | skillcheck check ./SKILL.md |
| GitHub Copilot | .github/copilot-instructions.md | skillcheck check ./.github/copilot-instructions.md |
| System & Agent Prompts | SYSTEM_PROMPT.md, prompts/*.md | skillcheck check ./prompts/coding-agent.md |
| Skill Directories | Any folder with a supported file | skillcheck ./my-skill-directory/ |
Why skillcheck
- Ship skills with evidence — before you publish a Claude Code, Codex, or Cursor
SKILL.md, know whether it helps the model or just adds tokens. - Prompt A/B testing in one command — compare with-skill vs without-skill arms on the same tasks, with blind grading so the grader never sees which arm wrote the answer.
- CI-friendly LLM eval — use
--jsonor--outputfor scripts and pipelines, with your own provider key or a local model. - Effect size, not vibes — bootstrap confidence intervals and a 0–100 satisfaction
score so you can tell a real lift from noise. Details in
METHODOLOGY.md.
Skillcheck vs. traditional linters
Most prompt tools and eval frameworks test whether an output matches a static regex or schema. Skillcheck measures whether adding instructions produces statistically significant improvement over an unprompted model.
| Dimension | Vibe Check / Manual Testing | Assertion Linters (e.g. Promptfoo) | Skillcheck |
|---|---|---|---|
| Core Question | "Does the output look okay?" | "Does output pass hardcoded assertions?" | "Does this prompt actually improve model performance?" |
| Evaluation Design | Ad-hoc single prompts | Treatment-only (no control arm) | Controlled A/B Trial (With-skill vs. Without-skill) |
| Primary Metric | Subjective opinion | Boolean pass/fail rate | Net Effect Size ($\Delta$ Pass Rate) with 95% Bootstrap CI |
| Task Generation | Manual prompt typing | Manual YAML test authoring | Domain-Adaptive Synthesis (zero instruction leakage) |
| Grading Objectivity | High confirmation bias | Single-arm evaluation | Blind Grading (the grader is blind to which arm produced an output, the subject model cannot be) |
| Outcome | Anecdotal | Test matrix table | Statistical Verdict (HELPS / PLACEBO / HARMS) |
| Token Overhead | Unmeasured | Static token count | Marginal token cost measured against performance lift |
How it works
Skillcheck treats a skill like a drug trial treats a drug:
- Normalize — the skill file is parsed; its declared domain is read from
front matter (
domain:/description:) or headings. Headings are used as the declared domain, but a heading that is itself an instruction leaks into task generation; use--domain "<neutral topic>"for a blind run. - Generate — a task generator sees only the domain, never the skill body, so the tasks can't leak the skill's instructions. It produces 2× candidate tasks; a seeded shuffle picks the final set.
- Run — every task runs
Ktrials in two arms: with the skill injected as a system prompt, and without it. Same model, same temperature. - Grade — a blind grader scores each output against the task's pass/fail criterion. It never knows which arm produced the output (outputs are shuffled), and grades at temperature 0 in JSON mode.
- Score — pass rates are compared pairwise and a 1000-iteration paired
bootstrap produces the effect size, a 95% confidence interval, and the verdict:
HELPS(CI fully above zero),HARMS(fully below), orPLACEBO(overlaps zero).
Every run is fresh: tasks and outputs are generated anew each time and check
stores nothing locally (aside from checkpoints retained after an interrupted
run for --resume), so a repeated check is an independent measurement. Full
methodology in METHODOLOGY.md.
Architecture
packages/cli/src/core handles normalization, paired evaluation, routing,
auditing, and repair. The provider adapters validate model responses and handle
request deadlines, pacing, and retries. The CLI loads commands on demand,
formats results, and assigns exit codes. The core accepts an injected model
adapter so tests can run offline.
flowchart LR
subgraph CLI["skillcheck CLI (local)"]
direction TB
A["skillcheck check ./SKILL.md"] --> D["Normalize skill<br/>name · domain · instructions"]
D --> E["Generate tasks<br/>domain only — never the skill body"]
E --> F["Run trials<br/>each task × K trials × 2 arms"]
F --> G["Blind grading<br/>shuffled outputs · temp 0 · JSON verdict"]
G --> H["Paired bootstrap<br/>1000 resamples → effect · 95% CI · verdict"]
H --> I{Output mode}
I -->|terminal| J["Result card<br/>+ animated satisfaction bar"]
I -->|"--json / --output"| K["JSON result<br/>task suite + transcript hashes"]
end
CLI ==>|"Model calls for generation, trials, and grading"| M["Configured provider or local model"]Commands
skillcheck # interactive: pick a file, pick effort, run
skillcheck check <path> [--tasks N] [--trials K] [--domain "<topic>"] [--output file.json] [--json] [--explain]
skillcheck setup # connect a provider or local model
skillcheck logout # clear the saved model connection
skillcheck eval <path> [--tasks N] [--trials K] [--domain "<topic>"] [--output file.json] # raw JSON evaluator
skillcheck compose <path> --with <path1,path2|dir> [--compare-isolated] [--json|--markdown]
skillcheck route <path> [--against dir] [--queries N] [--json]
skillcheck audit <path> [--dynamic] [--format terminal|json|sarif] [--output file]
skillcheck fix <path> [--dry-run|--write] [--recheck]
skillcheck doctor [--ping]
skillcheck verify <result.json> [--sample n] # independently re-measure a published result
skillcheck corpus run --corpus corpus.json [--results dir] # batch-evaluate many skills
skillcheck rot [--results dir] [--output report.json] # detect skills that stopped helping
skillcheck --versionAccepted inputs: any Markdown (.md, .mdc) or .cursorrules file (SKILL.md, AGENTS.md, CLAUDE.md, .cursorrules, .cursor/rules/*.mdc, or any other .md), or a folder containing one. Headings are used as the declared domain
when front matter is absent; if a heading is itself an instruction, pass --domain "<neutral topic>"
for a blind run. --tasks is capped at 50 and --trials at 10; mistyped options are
rejected rather than silently ignored.
compose compares a skill stack with and without the target skill. route
tests discovery and false triggers against competing descriptions. Static
audit and doctor run offline. audit --dynamic calls the configured model and
simulates tools against synthetic data. fix previews a patch by default and
uses the configured model when available. It applies changes only with --write.
Markdown is limited to 1 MiB per skill by default. Use --max-file-bytes N
to change the limit and --allow-external-symlinks for explicitly trusted input
symlinks. Linked files inside a skill must stay within its directory.
Exit codes
| Code | Meaning |
| --- | --- |
| 0 | Success, including PLACEBO unless promoted to a failure |
| 1 | Operational error or invalid provider configuration |
| 2 | Invalid arguments or malformed input |
| 3 | HARMS, a failed routing gate, or PLACEBO with --fail-on placebo |
| 4 | Critical audit or repair finding, including a simulated capability failure |
| 130 | Cancelled |
Companion skill
Install the authoring and review workflow for agents such as Claude Code, Codex, or Cursor.
npx skills add sx4im/skillcheck --skill skillcheckAgent Skills specification · Skills CLI commands
CI/CD integration
Automate agent prompt and skill regression testing in GitHub Actions. Ensure no prompt edit or rule change silently degrades model performance:
name: Agent Skill Quality Gate
on:
pull_request:
paths:
- 'SKILL.md'
- '.cursorrules'
- '.github/copilot-instructions.md'
- 'prompts/**'
jobs:
eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
- name: Run Skillcheck evaluation
run: npx @sx4im/[email protected] check ./SKILL.md --tasks 5 --trials 3 --fail-on placebo --json --output skillcheck-result.json
env:
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}For static audit findings, grant the upload job contents: read and
security-events: write. Run both steps even when the audit exits 4 so
Code Scanning receives critical findings and CI still fails.
- name: Audit SKILL.md
run: npx @sx4im/[email protected] audit ./SKILL.md --format sarif --output skillcheck.sarif
- name: Upload findings
if: always() && hashFiles('skillcheck.sarif') != ''
uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
with:
sarif_file: skillcheck.sarifBadges for your repository
Prove to users that your agent skill or .cursorrules delivers real, statistically verified lift:
[](https://github.com/sx4im/skillcheck)
[](https://github.com/sx4im/skillcheck)
[](https://github.com/sx4im/skillcheck)| Badge | Markdown Snippet |
|---|---|
| Tested with Skillcheck | [](https://github.com/sx4im/skillcheck) |
| Verdict: HELPS | [](https://github.com/sx4im/skillcheck) |
| Verdict: PLACEBO | [](https://github.com/sx4im/skillcheck) |
Reading the result
Verdict —
HELPS/PLACEBO/HARMS, decided by whether the 95% confidence interval clears zero.PLACEBOmeans no measurable difference, not necessarily a bad skill.Skill effect — the change in pass rate, in percentage points (pp).
Confidence — the 95% range for the true effect. A wide range means the run was inconclusive; re-run at a higher effort for a clearer signal.
Token cost — the prompt-token overhead of including the skill.
Satisfaction — a 0–100 quality score where 50 = no effect:
| Score | Band | Score | Band | |-------|------|-------|------| | ≤10 | Very bad | 51–60 | Decent | | 11–30 | Bad | 61–80 | Good | | 31–50 | Normal | 81–100 | Excellent |
Each run is an independent experiment — tasks and model outputs are generated fresh every time, so results vary run to run. That variance is what the confidence interval quantifies.
Add --explain to see why a verdict landed where it did: a per-task breakdown
of the with/without pass rates, the change, and a contrasting example model output
from each arm — printed below the card, and included in --json output under
explain. It reuses the outputs the run already produced, so it costs nothing
extra.
skillcheck check ./SKILL.md --explain
skillcheck check ./SKILL.md --explain --json # breakdown under result.explainEffort levels
The interactive run asks how thorough to be — more tasks/trials means a tighter confidence interval but a longer run:
| Level | Tasks × trials | Typical time | |----------|----------------|--------------| | Quick | 2 × 1 | ~2–3 min | | Standard | 3 × 3 | ~4–5 min | | Thorough | 5 × 3 | ~6–7 min |
For scripted runs, set it explicitly: skillcheck check ./SKILL.md --tasks 5 --trials 3.
Terminal experience
The CLI is built to feel like a first-class developer tool:
- Live step tracker — each phase persists as a receipt line
(
✓ Trials complete (30/30) · 1m 38s) while the active phase shows a spinner, a progress bar, and elapsed time. Progress renders on stderr, so piping stdout still gives you a clean result; piped stderr gets plain log lines instead of spinner frames. - Animated result card — the satisfaction bar sweeps to its score on interactive terminals; non-TTY output is the same card, static.
- Adaptive colour — truecolor gradients where supported, 256/16-colour
fallbacks elsewhere.
NO_COLOR(any non-empty value) disables colour entirely;FORCE_COLOR=1|2|3forces it on for piped output. - Quiet cancellation — backing out of a menu with
q/Ctrl+Cexits with code130and a one-line note, not an error dump. Run failures print a concise✗block on stderr. - Masked secrets — API-key entry never echoes; keys are stored at
~/.config/skillcheck/config.jsonwith0600permissions.
Configuration
Run skillcheck setup to save a provider or local model connection. To configure a provider through the environment, use its key variable.
| Provider | Environment variable |
|---|---|
| OpenAI | OPENAI_API_KEY |
| Anthropic | ANTHROPIC_API_KEY |
| Google Gemini | GEMINI_API_KEY or GOOGLE_API_KEY |
| Groq | GROQ_API_KEY |
| Mistral AI | MISTRAL_API_KEY |
| OpenRouter | OPENROUTER_API_KEY |
| NVIDIA NIM | NVIDIA_API_KEY |
See .env.example for optional settings and examples.
| Variable | Default | Purpose |
|---|---|---|
| SKILLCHECK_MODEL | saved model or provider default | Override the model for all three roles |
| <PROVIDER>_GENERATOR_MODEL / <PROVIDER>_RUNNER_MODEL / <PROVIDER>_GRADER_MODEL | — | Per-role model overrides for any provider (e.g. OPENAI_RUNNER_MODEL, ANTHROPIC_RUNNER_MODEL) |
| SKILLCHECK_PROVIDER | automatic | Select a provider with its API key set in the environment, or supply the key with SKILLCHECK_PROVIDER_KEY |
| OPENAI_BASE_URL / ANTHROPIC_BASE_URL / ... | provider default | Custom API base URL per provider |
| SKILLCHECK_TIMEOUT_MS / NVIDIA_TIMEOUT_MS | 120000 | Per-request timeout |
| SKILLCHECK_REQUEST_DELAY_MS / NVIDIA_REQUEST_DELAY_MS | 750 | Minimum delay between requests (rate-limit safety) |
| SKILLCHECK_MAX_ATTEMPTS | 8 | Retry budget for retryable failures (429/5xx) |
| SKILLCHECK_NO_UPDATE_CHECK | — | 1 disables the daily update check |
| SKILLCHECK_DEBUG | — | 1 enables verbose per-call logging |
| NO_COLOR | — | Any non-empty value disables colour (spec) |
| FORCE_COLOR | — | 1/2/3 forces colour on, even when piped |
Skillcheck reads provider keys, model overrides, and request tuning from a .env file in the current directory. Set provider selection, base URLs, and config paths through your shell environment. A set NVIDIA_API_KEY takes priority. The CLI then looks for an explicitly selected provider with an environment key, a saved connection, or another provider key, in that order.
Model choice
Setup saves one model for the task generator, runner, and blind grader. Model overrides take priority over that selection. Without an override or a saved model, Skillcheck uses the active provider's default. The NVIDIA NIM default is nvidia/nemotron-3.5-super-vl-120b-a12b.
Role model overrides let you benchmark your specific production model while maintaining a strong generator and grader:
OPENAI_RUNNER_MODEL=gpt-6-luna skillcheck check ./SKILL.md or ANTHROPIC_RUNNER_MODEL=claude-haiku-4-5 skillcheck check ./SKILL.md.
Development
npm ci
npm run build # compile to dist/
npm test # Vitest suite
npm run test:coverage # vitest + v8 coverage gate (84% statements/lines, 85% functions, 68% branches)
npm run lint # eslint (flat config, typescript-eslint)
npm run typecheck # strict TS, src + testsThe CLI lives in packages/cli (bin/skillcheck.ts → src/cli.ts).
The static documentation and example report at skillcheck.page live in dashboard/. The Next.js leaderboard lives in packages/site.
The suite runs fully offline: the model adapter is mocked, so an end-to-end test
drives the whole normalize → generate → run → grade → score pipeline (plus the
retry adapter and CLI commands) without a single API call. The
interactive terminal shell is verified behaviourally rather than counted toward the
coverage percentage.
Every push and pull request runs ci.yml (lint,
typecheck, coverage, a clean build on Node 20 and 22, full test suite execution
on Windows, a published-tarball validation, and offline website tests). It
makes no model calls, so it runs on forks too. Tagging a release
(npm version patch && git push --follow-tags) triggers
release.yml, which publishes to npm with
cryptographic provenance and verifies that attestations are recorded on the registry.
Separately, a scheduled rot workflow re-runs the live
corpus weekly and opens a PR when a skill's verdict regresses.
Star history
If Skillcheck saved you from shipping a placebo skill, a ⭐ helps other people find it.
Contributing
Contributions are welcome! Check out our open Good First Issues to get started.
Please see CONTRIBUTING.md for local development setup and testing guidelines.
