harness-gepa
What it does
This skill works with GEPA genomes, which are saved prompt policies used by AI harnesses. It is for people who want to inspect, check or read the prompts a harness actually uses.
When to use it
- βWhen you want to see the actual system prompt a saved genome produces.
- βWhen you want to check that a genome file is valid before using it.
- βWhen a run failed and you want its failure types classified.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-gepa/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βShow me the actual system prompt this genome file produces so I can read it.β
5 new skills a week. 1 minute to read.
How it works
The skill loads the GEPA library and runs one of a few actions: render the prompt, check a genome's structure, or classify failure types from a transcript. It does not run the full optimisation loop.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Surfaces the GEPA (genetic-evolution prompt-adaptation) library exports
from @metaharness/darwin/gepa. Unlike the other skills in this plugin
there is no CLI binary behind this β the script dynamic-imports the library
(local resolution first, versioned cache install as fallback) and calls the
subprocess-safe subset.
When to use
- Adopting an evolved policy:
--op rendershows the actual system prompt a genome compiles to β read THAT, not the raw JSON, before wiring a genome into a harness. - Auditing a promotion:
--op genomeloads + validates the shipped cand-6 genome (first holdout-confirmed cheap-tier promotion; provenance ships in the package) or any genome file you point at. - CI gate on genome edits:
--op validate --alert-on-invalidexits 1 on structural errors. - Debugging a bad run:
--op analyze --transcript run.jsonclassifies failure modes (GEPA's failure-class taxonomy) from a transcript array.
What is deliberately NOT here
gepaOptimize β the optimization loop takes an in-process
evaluate(candidate) callback ("bring your own evaluator") that cannot
cross a subprocess boundary. Two supported paths instead:
- Library consumers:
import { gepaOptimize, loadCand6Genome } from '@metaharness/darwin/gepa' - Sandbox-scored evolution:
harness-evolve(darwin CLIevolve), which pairs GEPA with its own sandbox evaluators.
Algorithm
Implementation: scripts/gepa.mjs.
import('@metaharness/darwin/gepa'); on MODULE_NOT_FOUND fall back to a one-timenpm install --prefix ~/.ruflo/darwin-cache-<pin>and import the cacheddist/gepa/index.js(versioned dir β pin bumps invalidate).- Dispatch
--op:genomeβloadGenome(fs, path)orloadCand6Genome()+validateGenomevalidateβvalidateGenome(rawJson)(raw parse so broken files reach the validator instead of throwing in the loader)renderβbuildSystemFromGenome(genome, ext?, glob?)analyzeβanalyzeTranscript(entries)
- Emit one JSON object; exit 0 (or 1 under
--alert-on-invalid, 2 on bad input).
Examples
node scripts/gepa.mjs --op genome # cand-6 + validation
node scripts/gepa.mjs --op render | jq -r .system # what does cand-6 SAY?
node scripts/gepa.mjs --op validate --path my-genome.json --alert-on-invalid
node scripts/gepa.mjs --op analyze --transcript run.json
Exit codes
0β op completed (or degraded β darwin not installable)1β--alert-on-invalidand validation found errors2β config error (unknown op, missing/broken input file)
FAQ
Why render the prompt instead of reading the raw file?
The source advises reading the compiled prompt before wiring a genome into a harness.
Can it fail a check automatically?
Yes. The validate action can exit with an error on structural problems when you set the alert option.
Does it improve prompts itself?
No. Optimisation needs a separate evaluator, so the skill points to other paths for evolution.
Details
Original description by the author
Load, validate or render a GEPA genome, or classify failure modes in a run transcript, via @metaharness/darwin/gepa. Use when inspecting or auditing a genome; use harness-evolve for sandbox-scored evolution. Degrades gracefully without darwin.
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1649
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
writing-skills
311kTeaches your agent to write new skills and test each one first, checking that the skill actually changes how the agent behaves.
writing-for-agents
310kExplains how to write clear instructions for AI agents, including skills, AGENTS.md, and CLAUDE.md files, so the agent behaves predictably.
bengali-nlp
280kHas your agent process Bengali text. It helps understand and work with the language, normalizing text and handling its unique characteristics.