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

agent-skill-evals

v0.1.0

Published

Promptfoo-native core package for evaluating reusable agent skills.

Downloads

184

Readme

agent-skill-evals

Agent Skill Evals helps you test agent skills with Promptfoo.

Install

pnpm add -D promptfoo agent-skill-evals

Use it to:

  1. Check a SKILL.md file and its tests before you run an agent.
  2. Copy a sample project, run an agent in the copy, save evidence, and check what changed.

Agent Skill Evals is a Promptfoo plugin package. Promptfoo is the eval runner: it reads the YAML configs, runs providers, and calls assertions. Keep using promptfoo eval; Agent Skill Evals adds skill-focused providers and assertions that Promptfoo can load from file:// paths.

Add Agent Skill Evals To Promptfoo

Create a agent-skill-evals/ folder in your project and add small loader files:

// agent-skill-evals/agent.js
export { default } from "agent-skill-evals/agent";
// agent-skill-evals/skill-checks.js
export { default } from "agent-skill-evals/skill-checks";
// agent-skill-evals/assertions.js
export { default } from "agent-skill-evals/assertions";
export * from "agent-skill-evals/assertions";

Use these files from normal Promptfoo configs with file://./agent-skill-evals/....

Entrypoints

The package uses Promptfoo-facing subpaths:

  • agent-skill-evals/agent
  • agent-skill-evals/skill-checks
  • agent-skill-evals/assertions

There is no root import from agent-skill-evals.

Metrics

  • skill.checks checks a skill file and its tests before an agent runs.
  • skill.test checks evidence after an agent run.
  • skill.budget checks real-agent token usage after an agent run.
  • skill.activation, skill.budgets, skill.context, skill.instructions, skill.tests, and skill.verifiers run focused Skill Checks.

Example: Check A Skill Before Runtime

Use skill.checks to check that a SKILL.md file and its tests are ready to run:

description: Skill checks

prompts:
  - "skill-check"

providers:
  - id: file://./agent-skill-evals/skill-checks.js

tests:
  - description: bugfix skill checks
    vars:
      skillPath: ./skills/bugfix-workflow
      testsGlob: ./tests/bugfix-workflow.yaml
    assert:
      - type: javascript
        metric: skill.checks
        value: file://./agent-skill-evals/assertions.js
        config:
          metric: skill.checks

Run it with Promptfoo:

promptfoo eval -c promptfoo.skill-checks.yaml

Example: Test A Skill On A Copied Project

Use skill.test when you want the agent to work on a copied fixture and then check the evidence from that run:

description: Runtime skill test

prompts:
  - "{{prompt}}"

providers:
  - id: file://./agent-skill-evals/agent.js
    config:
      command: codex
      args:
        - exec
        - --json
        - --full-auto

tests:
  - description: fixes login redirect locally
    vars:
      prompt: Fix the login redirect bug.
      fixture: ./fixtures/login-bug
      preconditions:
        - verifier.fails:
            run: ./verify_login_redirect.sh
      should:
        - verifier.succeeds:
            run: ./verify_login_redirect.sh
        - file.contains:
            path: app.js
            text: /dashboard
      should_not:
        - file.changes_outside_scope:
            scope:
              - app.js
    assert:
      - type: javascript
        metric: skill.test
        value: file://./agent-skill-evals/assertions.js
        config:
          metric: skill.test

Run it with Promptfoo:

promptfoo eval -c promptfoo.codex.yaml

Agent Skill Evals copies fixture before the agent runs. The original sample project stays clean, and skill.test checks the recorded evidence: changed files, command results, tool calls, final output, usage, and run details.

Docs