/harbor:harbor-evolve-skillfrom harbor
Evolves SKILL.md with Harbor trials and GEPA reflective Pareto search. Use when improving instructions from development evidence, freezing one candidate, and checking it on independent validation and holdout datasets. Preserves the source bundle and sealed evaluation boundaries.
Ships in harbor. 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.
Use Harbor as the execution and evidence layer and GEPA as the reflective Pareto optimizer. Preserve the source bundle, evolve only its SKILL.md, and promote only after a separate holdout comparison.
Runtime: use uv and Python 3.12 or newer. The bundled script pins Harbor 0.18.0 and GEPA 0.1.2 in inline metadata. In commands, means this installed skill directory.
Before the live command starts, schema 2 requires byte-disjoint evolution, validation, and holdout datasets. Only evolution is optimizer-visible. The runner freezes one selected candidate by digest before validation, prevents validation from entering GEPA, and keeps holdout sealed unless validation passes. A validation failure is terminal for that run; another unbiased attempt requires fresh validation.
Choose this method when the proposed improvement can be expressed entirely in
SKILL.md and automatic reflection is appropriate. If the mechanism requires
code, references, or assets, use a complete-bundle candidate workflow instead.
Freeze the intended failure mechanism, resource budget, and acceptance rule;
keep GEPA's optimizer-visible selection cases inside evolution regardless
of terminology used by upstream examples.
Review whether feedback supports a reusable instruction rather than task memorization. Treat the chosen text as a development winner until independent gates pass. Report optimizer calls and final evaluation cost separately when available. A higher development score, a deterministic winner, or two repeated attempts alone does not establish uncertainty or generalization.
For work across runs, keep development memory outside the evaluated bundle. Link native development artifacts and record successful mechanisms, counterevidence, rejected hypotheses, and unresolved failures. Declare imported memory as prior optimizer exposure before locking the next study. Exclude validation and holdout outcomes, including pass/fail signals. This GEPA runner preserves its native search history; it does not automatically maintain a wiki.
The script first copies the source into an immutable baseline snapshot under
baseline-snapshot/skills/<name> and verifies its Harbor skill digest without
writing to the source. For every development evaluation, it copies that frozen
bundle to <evaluation>/skills/<name>, replaces only SKILL.md with the current
candidate, and injects that exact path into a fresh Harbor trial. The physical
basename observed by Harbor therefore equals the frontmatter name even when the
source directory uses an alias.
After each trial, the script binds the candidate to Harbor's config, result, and lock artifacts by exact source, logical name, and skill digest before using its reward. It returns verified reward plus bounded verifier, trajectory, and agent-output evidence to GEPA only for evaluable development trials. Missing or malformed evaluator rewards and external failures cannot become fitness. GEPA reflects on this evidence, proposes candidate text, and preserves Pareto-useful candidates across cases.
The evolution dataset drives both proposals and candidate selection. GEPA
never receives the independent validation dataset. After selection, the
runner freezes the candidate bundle by digest, compares it with the unchanged
baseline on validation, and opens holdout only if that one-way gate passes.
Neither validation nor holdout can become another proposal or selection loop.
An unchanged selected bundle keeps the baseline and leaves both private gates
unopened. Private gate reports retain scores and outcome metadata, while raw
verifier output, agent output, and trajectories stay in native trial artifacts.
The runner applies its bundled authoring checks to the baseline and each complete staged candidate before evaluation. Fix structural errors before spending calls; task performance still requires the declared native Harbor gates.
uv run <skill-root>/scripts/evolve_skill_with_harbor.py <evolution.yaml> --dry-run
uv run <skill-root>/scripts/evolve_skill_with_harbor.py <evolution.yaml> --doctor
uv run <skill-root>/scripts/evolve_skill_with_harbor.py <evolution.yaml>
Use a new output directory for every run. The script refuses a non-empty destination and never mutates the source skill.
evaluationBoundary.validationOptimizerVisible is false and that the
candidate digest before and after validation is identical. Review
candidate-skill/skills//SKILL.md for benchmark leakage, unnecessary complexity,
stale links, and consistency with its unchanged bundled resources.AgentTimeoutError without a verifier reward. Require a
finite numeric primary reward for other completed trials; never coerce a
boolean or string or default an absent evaluator reward to zero.One live run preserves:
<output>/
├── baseline-snapshot/
│ └── skills/<name>/
├── candidate-skill/
│ └── skills/<name>/
├── gepa/
├── harbor-trials/
│ ├── development/
│ ├── validation-baseline/
│ ├── validation-candidate/
│ ├── holdout-baseline/
│ └── holdout-candidate/
├── run.json
└── report.md
Every trial directory contains skills/<name> plus evaluation.json with the
candidate SKILL.md digest, staged bundle digest, configured sources, locked
name/source/digest, and verification status. run.json records exact package
versions, source/snapshot/candidate digests, aggregate provenance counts, split
task names, optimizer counts, validation and holdout release state, every gate
result, per-task regressions, and the promotion decision.
Non-evaluable trials have reward: null and an evaluation-failure reason;
affected aggregate metrics remain null rather than dropping failed attempts.
After editing this bundle, run:
uv run <skill-root>/scripts/skill_authoring.py <skill-root> --require-directory-name
python -m py_compile <skill-root>/scripts/evolve_skill_with_harbor.py
uv run <skill-root>/scripts/evolve_skill_with_harbor.py --help
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/harbor-author-evaluation-datasetsAuthors and audits leakage-resistant native Harbor task datasets before study registration, or consolidates finalized schema-v1 native Harbor reports into privacy-safe aggregate comparisons. Use when Codex needs to define semantic task families, partition discovery, development, sealed validation, and holdout cohorts, generate deterministic seeded response-surface variants, diversify artifact contracts, test adapters and verifiers against shortcuts, compare completed report artifacts without exposing task-level details, or hand completed dataset roots to harbor-organize-evaluations. Do not use to run or score Harbor jobs or to manage study releases./harbor-maximize-knowledge-expertisePlans knowledge and expert skill mutations from digest-bound, sanitized development evidence. Use when preparing complementary expertise operators and exact mutation handoffs. Leaves candidate creation, scoring, selection, and promotion to their owning skills./harbor-metaskill-evolutionReplays and audits development ledgers and typed meta-policy snapshots bound to Harbor evidence. Use when checking lineage, utility, budgets, frozen-meta parity, or identity-specific frontiers. Performs analysis without Harbor or model calls, candidate generation, or selection.npx claudepluginhub gvillarroel/plugins --plugin harbor