/plugin-developer:plugin-evolutionfrom plugin-developer
Use when a coding plugin, skill bundle, command pack, or multi-agent CLI workflow needs output evaluation, baseline comparison, regression testing, or evidence-based improvement across its skills, scripts, commands, agents, configs, routing, and validation.
Ships in plugin-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Evaluate a coding plugin as an engineered system, not as a prompt that merely sounds good. Measure whether it improves real coding outcomes, explain why, change the smallest causal component, and re-run the same evidence-bearing tests before accepting the change.
Core principle: no plugin change is an improvement until a controlled candidate beats its frozen baseline without creating a meaningful regression.
Choose the narrowest mode that matches the request.
| Mode | Use it for | Mutates target plugin? |
|---|---|---|
audit | Static structure, broken references, invalid scripts/configs, unclear routing | No |
evaluate | One plugin version on real coding tasks | No |
compare | Candidate versus baseline, paired and blinded | No |
improve | Diagnose, patch a candidate copy, re-evaluate | Candidate copy only |
benchmark | Repeated runs, variance, cost, latency, stability | No |
promote | Decide whether a validated candidate may replace baseline | Only with explicit human approval |
trigger-optimize | Skill/command description triggering accuracy | Candidate copy only |
If intent is clear, proceed. If it is not, present the modes and ask for one choice.
Set PLUGIN_EVOLUTION_ROOT to the directory containing this SKILL.md. When this skill runs from the plugin-developer plugin, that is ${CLAUDE_PLUGIN_ROOT}/skills/plugin-evolution.
export PLUGIN_EVOLUTION_ROOT="${CLAUDE_PLUGIN_ROOT}/skills/plugin-evolution"
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" --help
Run harness commands from the project or evaluation workspace, not from inside the target plugin unless the runner requires it.
Collect or infer these from the repository before asking the user:
Use templates/plugin-profile.example.json and templates/eval-suite.example.json as the machine-readable contracts. Read references/schemas.md when creating or changing them.
Map the full plugin, not only its entry skill.
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" inventory \
--plugin /path/to/plugin \
--output workspace/plugin-inventory.json
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" validate \
--plugin /path/to/plugin \
--output workspace/static-validation.json
Inventory and classify:
SKILL.md and referenced skillsCreate a component map that explains how a user request becomes dispatch, execution, verification, synthesis, and final output.
Each task must specify:
Use at least three task shapes for broad plugins:
For multi-agent plugins, also include a task where one panelist is unavailable and a task where fast and expert workers disagree.
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" prepare \
--plugin /path/to/plugin \
--workspace workspace \
--iteration 1
The command creates immutable baseline evidence and an editable candidate copy. Record tree hashes, git state, tool versions, profile, suite, and timestamps.
Do not edit the original plugin during an evaluation loop.
Run baseline and candidate in the same batch so timing and environment drift are minimized.
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" run \
--profile profile.json \
--suite eval-suite.json \
--baseline workspace/snapshots/baseline \
--candidate workspace/candidates/iteration-1 \
--workspace workspace/iteration-1
The runner must capture:
Randomize A/B labels for blind comparison. Keep the mapping outside comparator context.
Deterministic checks run first. Then spawn the plugin-developer:task-outcome-grader agent for dimensions that cannot be established mechanically.
Evaluate:
A passing filename or plausible explanation is not proof. Inspect actual code, diffs, files, and test output.
Spawn the plugin-developer:orchestration-grader agent. This score is separate from task quality.
Inspect:
A good task result produced by ignoring the plugin is not strong evidence that the plugin works.
Spawn the plugin-developer:evidence-auditor agent to verify that claims in the final response are supported by receipts, test output, diffs, and artifacts. Treat missing evidence as a failure of observability even when the result appears correct.
Spawn the plugin-developer:blind-comparator agent with A/B paths and the original task contract. Do not expose plugin identity, version, model, or expected winner.
The comparator chooses based on output quality. Assertions are supporting evidence, not a substitute for judgment.
Spawn the plugin-developer:root-cause-analyzer agent after unblinding.
Classify each material failure:
| Cause | Examples |
|---|---|
plugin-instruction | ambiguous routing, missing invariant, bad output contract |
plugin-script | parsing bug, race, timeout, invalid path, weak validation |
plugin-command | wrong entrypoint, missing arguments, lost context |
plugin-agent | overlapping roles, self-approval, weak handoff |
plugin-config | bad roster, model mismatch, budget too low, fallback absent |
executor | ignored clear instruction, unrelated model failure |
runner-environment | CLI unavailable, auth failure, fixture corruption |
task-contract | ambiguous prompt or unverifiable expected result |
evaluator | weak assertion, biased rubric, grading inconsistency |
nondeterminism | unstable result not attributable from current evidence |
Require evidence, confidence, affected tasks, and likely generalization. Do not patch the plugin for an eval bug.
Spawn the plugin-developer:patch-planner agent. The proposal must name:
Improvement categories may include:
Do not combine unrelated cleanup with the hypothesis.
Before editing, read the relevant component and its callers. Apply the smallest coherent change. Then compare candidate and baseline paths:
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" diff \
--baseline workspace/snapshots/baseline \
--candidate workspace/candidates/iteration-1 \
--profile profile.json \
--output workspace/iteration-1/plugin-diff.json
Reject protected-path changes and unexplained generated artifacts.
Run static validation, script/unit tests, command schema checks, broken-reference checks, and plugin-specific self-tests before task reruns.
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" validate \
--plugin workspace/candidates/iteration-1 \
--output workspace/iteration-1/candidate-validation.json
python -m unittest discover -s "$PLUGIN_EVOLUTION_ROOT/tests" -v
First rerun failures expected to change. Then run the untouched holdout set. Use multiple repetitions where model variance can change the conclusion.
Do not tune against holdout details. A candidate that wins targeted tasks and loses the holdout is not ready.
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" aggregate \
--workspace workspace/iteration-1 \
--output workspace/iteration-1/benchmark.json
python "$PLUGIN_EVOLUTION_ROOT/scripts/plugin_evolution.py" gate \
--benchmark workspace/iteration-1/benchmark.json \
--profile profile.json \
--output workspace/iteration-1/promotion-decision.json
Promotion requires all configured gates, typically:
Spawn the plugin-developer:regression-judge agent for a final evidence-based recommendation. The human owns promotion.
Produce the report defined in references/report-template.md with links to evidence. State:
Stop when any of these applies:
When the target is Fusion-ML or a similar multi-agent orchestration plugin, read references/fusion-ml-profile.md before writing the suite.
At minimum, evaluate:
| Need | First action |
|---|---|
| Understand plugin structure | inventory + validate |
| Evaluate current plugin | snapshot baseline, create suite, run |
| Compare old and new | paired runs + blind comparator |
| Improve plugin | root-cause analysis, one hypothesis, candidate patch |
| Measure stability | 3+ repeats and benchmark variance |
| Change skill trigger text | separate trigger eval with holdout queries |
| Accept candidate | aggregate, gates, regression judge, human approval |
| CLI unavailable | record failure receipt and run declared degraded mode or stop |
Every completed evaluation or improvement loop returns:
references/architecture.md - system boundaries and evidence flow.references/evaluation-rubric.md - task and orchestration scoring.references/schemas.md - profile, suite, run, grading, comparison, and proposal contracts.references/runner-adapters.md - safe CLI runner configuration.references/fusion-ml-profile.md - Fusion-ML-specific evaluation coverage.references/safety-governance.md - mutation boundaries and promotion controls.references/report-template.md - final report structure.agents/*.md - specialized evaluator and improvement roles.README.md (opens in a new tab)evals/evals.json (opens in a new tab)references/architecture.md (opens in a new tab)references/evaluation-rubric.md (opens in a new tab)references/fusion-ml-profile.md (opens in a new tab)references/report-template.md (opens in a new tab)references/runner-adapters.md (opens in a new tab)references/safety-governance.md (opens in a new tab)references/schemas.md (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/aggregate.py (opens in a new tab)scripts/core.py (opens in a new tab)scripts/diff_plugin.py (opens in a new tab)scripts/gate.py (opens in a new tab)scripts/inventory.py (opens in a new tab)scripts/package_skill.py (opens in a new tab)scripts/plugin_evolution.py (opens in a new tab)scripts/runner.py (opens in a new tab)scripts/validate_plugin.py (opens in a new tab)templates/eval-suite.example.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub andrewr303/claude-codex-plugin-lab --plugin plugin-developer