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

copilot-eval

v1.1.0

Published

Eval framework for Copilot CLI skills

Readme

copilot-eval

An eval framework for the GitHub Copilot CLI. Write declarative test cases, run them against any installed skill, plugin, or MCP server, and get an automated scorecard — all from the terminal.

Why?

Skills, plugins, and MCP servers extend what Copilot CLI can do, but there's no built-in way to verify they actually work. A prompt that passed yesterday might silently regress after a config change, a model update, or a refactor of your skill instructions.

copilot-eval closes that gap:

  • Catch regressions — run evals on every change to your skill, plugin, or MCP config and spot breakages before users do.
  • Measure quality — get a 0–100 score for each eval with pass / partial / fail verdicts, plus aggregate stats by category.
  • Iterate faster — skip the judge (--skip-judge) to tighten the prompt-tweak → test loop, or run a single eval by index while debugging.
  • Compare models — switch the backing model (--model) and re-run the same suite to see how different LLMs handle your prompts.

How it works

evals.yaml ──→ Runner ──→ Skill Output ──→ Judge ──→ Scorecard
                 │                           │
                 ▼                           ▼
           Isolated workspace         LLM-as-judge
           (one per eval)             (automated verdict)
  1. Load — reads evals.yaml from your eval project and applies any filters (category, pattern, index).
  2. Execute — for each eval, spins up an isolated temp workspace, then pipes the prompt to the Copilot CLI with your skill loaded. Multi-turn conversations are supported.
  3. Judge — sends the skill's output (tool calls, file changes, CLI response) and your expected-behavior description to an LLM-as-judge, which returns a structured JSON verdict.
  4. Report — prints a live progress display with per-eval results, then a summary scorecard. Full results, logs, and an HTML dashboard are saved to runs/.

Quick start

Prerequisites

Install

# Clone and build from source
git clone <repo-url> && cd copilot-eval
npm install
npm run build

# Or link globally for the `copilot-eval` command
npm link

Create an eval project

copilot-eval init my-evals
cd my-evals

This scaffolds:

my-evals/
  evals.yaml           — your eval cases (prompt + expected behavior)
  package.json         — npm scripts for setup/teardown hooks
  .copilot-eval/       — JSON schema for editor validation
  runs/                — output from each run

Define evals

Edit evals.yaml. Each eval has a title, one or more conversation turns, and an optional category:

evals:
  - title: "Scaffold a new agent project"
    category: scaffolding
    turns:
      - prompt: "Create a new declarative agent called 'HelloBot'"
        expected_response: "Creates a project directory with a valid declarative agent manifest"

  - title: "Add an MCP tool to an existing agent"
    category: mcp
    turns:
      - prompt: "Add an MCP weather tool that calls the OpenWeather API"
        expected_response: |
          Adds a tools entry in the manifest pointing to an MCP server config.
          Should include proper OpenAPI spec and authentication setup.

Run evals

# Run all evals against a skill
copilot-eval run --skill m365-agent-developer

# Run a single eval by index (0-based)
copilot-eval run --skill m365-agent-developer --eval 0

# Run evals matching a pattern
copilot-eval run --skill m365-agent-developer --filter "MCP"

# Run only a specific category
copilot-eval run --skill m365-agent-developer --category scaffolding

# Skip the judge (fast iteration on skill behavior)
copilot-eval run --skill m365-agent-developer --skip-judge

# Change the model
copilot-eval run --skill m365-agent-developer --model claude-sonnet-4.5

# Adjust parallelism (default: 5)
copilot-eval run --skill m365-agent-developer --concurrency 2

Read results

Each run produces a timestamped folder under runs/:

runs/
  2026-03-07-001/
    2026-03-07-001.json     — structured results (every eval + judgment)
    2026-03-07-001.html     — visual dashboard
    2026-03-07-001.log      — full run log
    logs/                   — per-session response and Copilot process logs
    workspaces/             — preserved workspace for each eval

The console prints a live scorecard as evals complete:

  🟢 [01/04] Scaffold a new agent project — Pass (92/100)   3.2s
  🟡 [02/04] Add an MCP tool              — Partial (65/100) 4.1s
  🔴 [03/04] Configure auth               — Fail (20/100)    2.8s
  ⏭️  [04/04] List available tools          — Done (exit 0)    1.5s

Setup & teardown hooks

evals.yaml supports shell scripts that run at different lifecycle points — useful for provisioning test fixtures, seeding data, or cleaning up.

scripts:
  setup: "echo 'Runs once before all evals'"
  teardown: "echo 'Runs once after all evals'"
  setup:eval: "echo 'Default per-eval setup (can be overridden)'"
  teardown:eval: "echo 'Default per-eval teardown (can be overridden)'"

evals:
  - title: "Eval with custom setup"
    scripts:
      setup: "cp -r fixtures/ {{workspaceDir}}/"
    turns:
      - prompt: "..."
        expected_response: "..."

Placeholders available in scripts: {{runId}}, {{runDir}}, {{projectDir}}, {{workspaceId}}, {{workspaceDir}}.
These are also exposed as environment variables: COPILOT_EVAL_RUN_ID, COPILOT_EVAL_RUN_DIR, etc.

What can I eval?

copilot-eval works with anything the Copilot CLI can load:

| Extension type | What it is | Example eval | |---|---|---| | Skill | A .md instruction file in ~/.copilot/ | "Scaffold a new M365 agent project" | | Plugin | A tool plugin registered with the CLI | "Search our internal docs for deployment guides" | | MCP server | A Model Context Protocol server providing tools | "Query the database for active users" |

The eval doesn't care how the capability is implemented — it sends a prompt, captures the full session output, and judges whether the expected behavior occurred.

Skills are discovered by searching recursively through ~/.copilot/ — they can live in skills/, plugins/, or any nested subfolder.

Documentation

  • Getting Started — Setup, first evals, reading results
  • CLI Reference — All commands, flags, skill discovery, and output structure
  • Evals File Format — Full YAML schema, multi-turn examples, scripts, placeholders, and judging guidance

Building from source

npm install         # install dependencies
npm run build       # compile TypeScript to dist/
npm test            # run unit tests
npm run build:binary  # produce a standalone binary (no Node required)

License

MIT