npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

skillbench

v2.1.1

Published

Skill evaluation framework for Claude agents — static analysis + live agent testing

Readme

skillbench

Two-round skill evaluation framework for Claude agents

License: MIT Node: >=18

Evaluate whether a Claude agent skill (SKILL.md) is well-written and actually followed at runtime — without an API key.


How it works

Evaluation runs in two rounds:

Round 1 — Static Analysis (fast, free)

  • 1a. Skill Quality: frontmatter, description, conciseness
  • 1b. Best Practices: Anthropic guidelines compliance
  • 1c. Followability: predicts where agents will fail before running any tests

Round 2 — Agent Testing (requires LLM calls)

  • 2a. Compliance: targeted tests from Round 1 predictions + LLM-generated scenario coverage
  • 2b. Evaluator Validation: confirms the grader is working correctly
  • 2c. Stress Tests: edge cases, ambiguity, adversarial prompts

Quick Start

npx skillbench path/to/my-skill/

No API key required — uses your local Claude Code subscription by default.


Installation

npm install -g skillbench

Or run without installing:

npx skillbench path/to/SKILL.md

Requirements:

  • Node.js ≥ 18.0.0
  • One of:
    • Claude Code CLI installed and authenticated (claude --version)
    • ANTHROPIC_API_KEY environment variable
    • OPENAI_API_KEY environment variable

Usage

skillbench <skill-path> [options]

<skill-path> can be a SKILL.md file or a skill directory:

skillbench ~/.claude/skills/my-skill/          # directory
skillbench ~/.claude/skills/my-skill/SKILL.md  # file

Options

| Flag | Default | Description | |------|---------|-------------| | --max-scenarios N | 20 | Total test budget across 2a + 2c | | --scenarios N | 2 | LLM-generated scenarios per requirement (Phase 2a) |

Provider selection (auto-detected from env)

| Env var set | Provider used | |-------------|---------------| | ANTHROPIC_API_KEY | Anthropic API | | OPENAI_API_KEY | OpenAI API | | Neither | Claude Code CLI (local subscription) |

Examples

# Default run (20 scenarios, claude-code provider)
skillbench ./my-skill/

# Quick run with fewer tests
skillbench ./my-skill/ --max-scenarios 10

# Use Anthropic API
ANTHROPIC_API_KEY=sk-ant-... skillbench ./my-skill/

# More thorough — 3 scenarios per requirement
skillbench ./my-skill/ --max-scenarios 30 --scenarios 3

Test Budget

--max-scenarios N controls the total number of agent tests across all phases:

targeted scenarios  = determined by Round 1 predictions (always run)
remaining           = N - targeted
compliance (2a)     = ceil(remaining × 0.6)
stress tests (2c)   = floor(remaining × 0.4)

Example with --max-scenarios 20 and 2 targeted predictions:

2a  Targeted (Round 1 predictions):  2
2a  Normal compliance:                up to 11
2c  Stress tests:                     up to 7
─────────────────────────────────────
Total:                                20

Skill Directory Support

Skills can be a single file or a directory with supporting files:

my-skill/
├── SKILL.md           # required — main instructions
├── reference.md       # optional supporting file
└── examples/
    └── sample.md      # optional supporting file

skillbench automatically reads SKILL.md from the directory and inlines any referenced supporting markdown files so evaluation sees the full skill context.


Programmatic API

import { TwoRoundEvaluator } from 'skillbench';

const evaluator = new TwoRoundEvaluator();

const report = await evaluator.evaluate({
  skillPath: './my-skill/',           // file or directory
  provider: 'anthropic',             // 'anthropic' | 'openai' | 'claude-code'
  apiKey: process.env.ANTHROPIC_API_KEY,
  maxScenarios: 20,
  scenariosPerRequirement: 2,
  outputDir: 'results',              // where to save the JSON report
});

console.log(`Score: ${report.overallAssessment.overallScore}/10`);
console.log(`Status: ${report.overallAssessment.status}`);

Building blocks

import { SkillParser, ScenarioGenerator, SkillEvaluatorV2 } from 'skillbench';

Output

Results are printed to the console and saved as JSON:

results/<skill-name>/skillbench-results-<timestamp>.json

The JSON contains every score, scenario, agent response, and recommendation. All recommendations are preserved in report.overallAssessment.recommendations.

Exit codes

| Code | Meaning | |------|---------| | 0 | EXCELLENT or GOOD | | 1 | FAIR, NEEDS_IMPROVEMENT, or error |

Useful for CI/CD:

skillbench ./my-skill/ || echo "Skill needs work"

Architecture

Round 1 (static)
  ├── SkillQualityEvaluator   — frontmatter, conciseness
  ├── BestPracticesEvaluator  — Anthropic guidelines
  └── FollowabilityAnalyzer   — predicts agent failure points

Round 2 (live agent testing)
  ├── PredictionTargetedTesting  — tests Round 1 predictions
  ├── SkillParser + ScenarioGenerator — LLM-generated coverage
  ├── SkillEvaluatorV2           — scores agent responses
  └── SkillStressTester          — edge cases & adversarial

Development

git clone https://github.com/humblerookie/skillbench.git
cd skillbench
npm install

# Run evaluation
node test-two-round.js results/sample/frontend-design.md

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a Pull Request

License

MIT — see LICENSE for details.

Repository: https://github.com/humblerookie/skillbench Issues: https://github.com/humblerookie/skillbench/issues