Skip to content

About

Example Claude Code plugin with a claude plugin eval suite: skill, agent, mocked MCP, and a no-plugin baseline

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

plugin-eval-claude-example

A small Claude Code plugin, commit-coach, with an eval suite for claude plugin eval. Each case runs the plugin against a no-plugin baseline and reports the difference (Δ).

Write-up: Testing a Claude Code plugin against no plugin at all

The plugin

Part File What it does
Skill skills/conventional-commit/SKILL.md Writes commit messages to house rules: type(scope): summary, scope required, subject ≤ 50 chars, a "why" body, Closes #N when an issue is mentioned
Agent agents/commit-critic.md Reviews an existing commit message against the same rules
MCP server .mcp.json (tracker) get_issue lookup. Mock only: servers/tracker.js does not exist, and evals answer from evals/mocks/tracker/

The eval cases

Case Tests Graders
writes-house-style-commit Skill tool_used: Skill (indicator), subject-format regex (weight 2), "explains why" llm
links-tracker-issue MCP (mocked) mock_calls regex for id: 42, fix(auth) subject, Closes #42 footer
delegates-to-critic Agent commit-coach:commit-critic dispatched (indicator), review-quality llm
ignores-unrelated-request Negative Skill must not fire (min: 0, max: 0, arm: both)

Run it

Requires Claude Code v2.1.269+ and git 2.31+. Every run is a real model call on your account.

claude plugin eval . --tag smoke --runs 1 --ablation none
claude plugin eval . -j 4 --max-cost-usd 5

All cases use read-only tools, so they run on native Windows. Suites that grant Bash need the OS sandbox (WSL2, macOS, or Linux with bubblewrap).

Results go to evals/results/<timestamp>/ (aggregate-result.json, report.html), which is gitignored.

Results from the write-up

Claude Code 2.1.309 with the default Haiku judge. The first full run had 24 agent runs, took 55 s, and cost about $1.38 at list price.

Case WITH W/OUT Δ
links-tracker-issue 1.00 0.00 +1.00
writes-house-style-commit 1.00 0.33 +0.67
delegates-to-critic 0.67 → 1.00 after the rubric fix 0.00 +0.67 → +1.00
ignores-unrelated-request 1.00 1.00 0.00

The one failing delegates-to-critic run was the judge's false negative on a correct review. The fix was in the rubric (graders/catches-problems.md), not in the plugin.

About

Example Claude Code plugin with a claude plugin eval suite: skill, agent, mocked MCP, and a no-plugin baseline

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors