/plugin-benchmarker:benchmark-plugin plugin-pathfrom plugin-benchmarker
Benchmark a plugin by validating structure, reviewing skill quality, then comparing with-skill vs without-skill performance with per-file KEEP/TRIM/DELETE recommendations
Ships in plugin-benchmarker. Installing the plugin adds it to Claude Code.
Benchmark a Claude Code plugin by first validating its structural health, then auditing and benchmarking each skill for real-world value.
Dependencies: This command leverages:
plugin-dev plugin for structural validation (plugin-dev:plugin-validator) and skill quality review (plugin-dev:skill-reviewer)skill-creator plugin for grading methodology and benchmark aggregationAccept the plugin path from the user argument. If no argument provided, ask the user for the plugin path.
Auto-detection: Try these locations in order:
./plugins/code-auditor/)code-auditor → search ./plugins/*/)~/.claude/plugins/cache/*/)Validate that the path contains a .claude-plugin/plugin.json file. If not found, report the error and stop.
Report to the user:
Dispatch the plugin-dev:plugin-validator agent using the Agent tool. Provide it the plugin path and instruct it to perform comprehensive validation:
Present the validation report to the user.
If critical issues are found: Recommend fixing them before proceeding with benchmarks. Ask the user whether to continue or stop to fix issues first.
For EACH skill found in the plugin, dispatch the plugin-dev:skill-reviewer agent using the Agent tool. Launch all skill reviews in parallel (one agent per skill in a single message).
Each skill reviewer should evaluate:
Present all skill review results to the user.
This is an APPROVAL GATE. The user sees the full plugin health picture (validation + skill reviews) before investing in expensive benchmark runs. Wait for user confirmation to proceed.
For each skill in the plugin, execute Steps 4-8. If the plugin has multiple skills, process them sequentially (each skill needs its own test cases and assertions).
Dispatch the skill-file-auditor agent using the Agent tool. Provide it the skill path and instruct it to:
Present the audit results to the user and ask for confirmation before proceeding.
This is an APPROVAL GATE. Wait for user confirmation. The user may adjust classifications.
Based on the skill's purpose (from SKILL.md) and the audit results, design 3 test cases:
Each test case must be:
Format:
Test Case 1: [descriptive name]
Prompt: "[The exact prompt to send to Claude]"
Target: [What aspect of the skill this tests]
Test Case 2: [descriptive name]
Prompt: "[The exact prompt to send to Claude]"
Target: [What aspect of the skill this tests]
Test Case 3: [descriptive name]
Prompt: "[The exact prompt to send to Claude]"
Target: [What aspect of the skill this tests]
Present test cases to the user and ask for approval.
This is an APPROVAL GATE. Wait for user confirmation. The user may modify prompts.
For each test case, define 2-4 objectively verifiable assertions. Each assertion must be:
Good assertion types:
Bad assertion types (avoid):
Format:
Test Case 1: [name]
Assertions:
1. [Assertion text]
2. [Assertion text]
3. [Assertion text]
Test Case 2: [name]
Assertions:
1. [Assertion text]
2. [Assertion text]
Test Case 3: [name]
Assertions:
1. [Assertion text]
2. [Assertion text]
3. [Assertion text]
4. [Assertion text]
Present assertions to the user and ask for approval.
This is an APPROVAL GATE. Wait for user confirmation. The user may adjust assertions.
For each test case, spawn two agents simultaneously using the Agent tool:
CRITICAL: Launch ALL agents in a SINGLE message. For 3 test cases, that means 6 agent calls in one message (3 with-skill + 3 without-skill).
Each agent prompt should:
Save timing data from the agent completion notifications (duration, tokens used).
Wait for all agents to complete before proceeding.
For each test case, grade both the with-skill and without-skill outputs against the defined assertions.
Use the skill-creator's grading methodology:
Compile grading results:
Test Case 1: [name]
| Assertion | With Skill | Without Skill |
|-----------|-----------|---------------|
| [assertion 1] | PASS (evidence: ...) | FAIL (reason: ...) |
| [assertion 2] | PASS (evidence: ...) | PASS (evidence: ...) |
| [assertion 3] | PASS (evidence: ...) | FAIL (reason: ...) |
Discriminating: 2/3 | Non-discriminating: 1/3
Aggregate all results into the final benchmark report:
# Plugin Benchmark Report: [plugin-name]
## Overview
- **Plugin path**: [path]
- **Plugin version**: [version]
- **Skills benchmarked**: [count]
- **Total test cases**: [count]
- **Total assertions**: [count]
- **Date**: [timestamp]
## Phase 1: Plugin Health
### Structural Validation
[Summary from plugin-dev:plugin-validator, critical issues, warnings, pass/fail]
### Skill Quality Reviews
[Summary per skill from plugin-dev:skill-reviewer, rating, key issues, positive findings]
## Phase 2: Benchmark Results
### [Skill Name 1]
#### Audit Summary
[Classification table from Step 4]
#### Comparison Table
| Metric | With Skill | Without Skill | Delta |
|--------|-----------|---------------|-------|
| Pass rate | X% | Y% | +Z% |
| Avg tokens | X | Y | +Z |
| Avg duration | Xs | Ys | +Zs |
| Avg tool calls | X | Y | +Z |
#### Per-Test-Case Grading
[Grading tables from Step 8 for each test case]
#### Analysis
- **Skill-only wins**: [List assertions that ONLY passed with skill]
- **Non-discriminating**: [List assertions that passed in both]
- **Overhead cost**: +X tokens, +Ys per invocation for +Z% pass rate improvement
[Repeat for each skill]
## Phase 3: Recommendations
[Full output from recommendation-engine per skill]
## Methodology
- Plugin validation performed by plugin-dev:plugin-validator agent
- Skill quality reviewed by plugin-dev:skill-reviewer agent
- File audit performed by skill-file-auditor agent
- Benchmarks run as parallel agents (with-skill vs without-skill baseline)
- Grading performed using skill-creator grading methodology
- Recommendations generated by recommendation-engine agent
- The without-skill baseline is the truth test: if it produces equivalent quality, skill content is overhead
Dispatch the recommendation-engine agent using the Agent tool. Provide it:
The recommendation-engine will produce per-file KEEP/TRIM/DELETE recommendations with section-level annotations.
Append the recommendation-engine's output to the benchmark report under the Phase 3 section. Present the complete report to the user.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub sigistry/marketplace --plugin plugin-benchmarker