Evolve a skill with frozen-rubric comparison

VerifiedCaution

Diagnose a skill's weaknesses from session traces, propose an evolved candidate via DSPy optimizers (gepa/mipro/bootstrap), then compare both versions on fresh executions judged by one frozen rubric.

Sby Skills Guide Bot
Data & AIAdvanced
9/21/2026
Claude Code
#skill-optimization#llm-evaluation#rubric-grading#gepa#golden-dataset

Recommended for

Automated summary

Evolves a skill by harvesting session traces, proposing an optimized candidate, and comparing fresh baseline and candidate executions against a pre-frozen rubric.

Strengths

  • Enforces a frozen rubric and isolated fresh executions to prevent contaminated before/after comparisons.
  • Explicitly flags invalid evaluation shortcuts such as keyword fitness, single-turn LLM judging, and retrospective dspy-eval scores.
  • Covers golden-set curation (harvest-sessions, build-golden, approve-golden) before any optimization.
  • Produces auditable manifests with hashes, run_id, executor, model, and verbatim outputs.

Limitations

  • Depends on the external distillery toolchain and on paid model calls for the evolve step.
  • Orchestration stays largely manual: dispatching execution and judging subagents is left to the user.
  • A blocked run leaves the comparison incomplete, and no significance claim is made.
When to use it

Use it when you want an evidence-backed revision of an existing skill instead of ad-hoc rewording.

When not to use it

Skip it when you have no session traces or executable comparison cases, or when you only need a quick wording fix.

Security analysis

Caution
Quality score87/100

The skill uses bash, Python scripts, and subagent dispatch for legitimate skill-evolution workflows. No destructive, obfuscated, or exfiltration actions are present. Caution is appropriate because it relies on executing code and agents in a repository-specific environment.

Findings
  • •The skill instructs execution of local Python scripts, bash commands, and native subagents, including paid model calls, without declaring allowed tools. Commands are not destructive or exfiltrating, but the environment assumes specific internal tooling.
How this analysis is made

Examples

Evolve with a candidate
Evolve the `pdf-report` skill with the gepa optimizer for 5 iterations, save the candidate, and show me the diff plus any size-constraint issues before I run a comparison.
Curate a golden set
Run harvest-sessions and build-golden for the `sql-review` skill with --top 20, then help me label successes as positive, failures as negative, and ungraded examples as skip.
Baseline vs candidate comparison
Emit the comparison tasks for `code-reviewer` against my evolved candidate using /tmp/skill-cases.jsonl and /tmp/skill-rubric.md, then score the returned outputs against the frozen verdict criteria.

name: evolve-skill description: Propose a skill revision and compare fresh executions under a frozen rubric argument-hint: "<skill-name> [--optimizer gepa|mipro|bootstrap]"

Evolve a skill

Use historical traces to diagnose weaknesses and propose a candidate. Evaluate the candidate by executing the same tasks with both full skill versions and judging the resulting outputs against one unchanged rubric.

1. Diagnose and prepare

Run harvest-sessions, then build-golden <skill> --top 20. Review candidates and label explicit successes positive, failures negative, and ungraded examples skip; run approve-golden <skill>.

Optional dspy-eval <skill> --dataset golden --emit-tasks assesses recorded outputs retrospectively. Its --skill-file changes only the judge rubric. Neither score nor score difference measures how a candidate behaves. Older before/after comparisons using this method are invalid, including those that supplied --skill-file.

Before optimization, reserve self-contained comparison cases outside the training and selection data. Each JSONL row requires:

{"case_id":"decimal-sum","task_input":"Return the sum of 17 and 25 as a JSON object with key total. No tools are needed.","acceptance_criteria":"Return exactly {\"total\":42}, with no other text."}

Replace this illustrative case with tasks relevant to the skill. Include all necessary source/context in the task or use separately reset, isolated fixtures. Historical prompts lacking their repository state are not executable fixtures. Freeze an independent rubric in a text file before seeing either output. Define correctness, applicable procedure, and conciseness on a 0–10 scale.

2. Propose a candidate

python3 distillery/scripts/distiller.py evolve <skill> --optimizer gepa --iterations 5 --save

This step uses paid model calls; follow the user's spending authorization. Keyword fitness is a lexical proxy restricted to positive references or curated expected_output, never failed traces. LLM-judge fitness generates single-turn responses, not tool-using execution. Neither proves agentic improvement. Inspect the diff and size constraints; unchanged output is a null result, not proof of Pareto optimality.

3. Emit and execute the comparison

python3 distillery/scripts/distiller.py compare-skill <skill> --emit-tasks \
  --candidate distillery/.eval-data/<skill>/evolved-SKILL.md \
  --dataset /tmp/skill-cases.jsonl --rubric /tmp/skill-rubric.md \
  > /tmp/skill-executions.json

The manifest freezes the live baseline, complete candidate, inputs, and rubric. Use --baseline <file> if the intended baseline is stored elsewhere.

Dispatch each tasks[].prompt to a separate fresh native subagent using the same model and settings. Do not show one execution the other's result. Reset mutable fixtures between executions; do not let concurrent agents edit the same checkout. No CLI model calls are needed for this path.

Collect a JSON array following execution_contract: copy task_id, input_sha256, and skill_sha256; add the manifest's run_id, actual executor_id and model, status (completed or blocked), and verbatim output. Never substitute historical responses or invent tool evidence. A blocked run leaves the comparison incomplete.

4. Judge against the frozen criteria

python3 distillery/scripts/distiller.py compare-skill <skill> \
  --manifest /tmp/skill-executions.json --outputs /tmp/skill-outputs.json \
  > /tmp/skill-judges.json

Dispatch only each judge prompt to a fresh judging subagent. These prompts contain the same rubric and case criteria, plus the corresponding fresh output; candidate instructions cannot redefine success. Collect the verdict_contract fields and each judge's JSON as response.

python3 distillery/scripts/distiller.py compare-skill <skill> \
  --manifest /tmp/skill-judges.json --score-from-verdicts /tmp/skill-verdicts.json

Execution manifests freeze local skill resources in temporary snapshots: references/, scripts/, assets/, and local Markdown dependencies. Dependencies must remain within the candidate or baseline skill directories; directory links must stay within standard resource directories. Absolute links and escaping symlinks are rejected. Snapshots retain executable permissions and materialize valid local symlinks at their referenced paths. Candidate files outside the installed skill directory inherit missing resource directories from the baseline. Verify this is the intended candidate bundle. Executor prompts name the frozen skill path so relative links resolve; keep these snapshots until collection finishes. Required external resources must be supplied as controlled fixtures or reported blocked. Outputs must copy bundle_sha256 as well as the other contract fields. The collector rejects modified snapshots, missing/duplicate/mismatched records, blocked executions, mixed execution models, and malformed scores. Report the per-case results and mean paired delta, the number of cases, execution settings, and whether cases were withheld from optimization. Hashes detect accidental record mixing; they do not attest that a caller actually executed an agent. A small paired sample is not a calibrated effect estimate.

5. Review and apply

Show the candidate diff, paired results, failures, coverage limits, and size constraints. Do not apply based on a retrospective score delta or a universal numerical threshold. Ask whether to apply the candidate to plugins/whetstone/skills/<skill>/SKILL.md; after approval, run the applicable skill and trigger checks. Leave release versions and counts to release time.

For process skills requiring tool use, prefer SkillOpt's existing isolated fixture execution or the native execution path above. Retrospective trace scoring remains useful for diagnosis only.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd/download' --output '.skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd/SKILL.md.part' && mv '.skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd/SKILL.md.part' '.skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd/SKILL.md' && test -s '.skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/evolve-skill' && cp -R '.skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd' '.claude/skills/evolve-skill'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd'

openskills read 'evolve-a-skill-with-frozen-rubric-comparison-muar2zvd'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/evolve-a-skill-with-frozen-rubric-comparison-muar2zvd/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills