Borrowing it
Nothing to install: this file belongs to dosco/aithy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dosco/aithy/main/.claude/skills/ax-gepa/SKILL.mdgit clone --depth 1 https://github.com/dosco/aithyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dosco/aithy/ax-gepa)<a href="https://agentmods.dev/skills/dosco/aithy/ax-gepa"><img src="https://agentmods.dev/badge/skills/dosco/aithy/ax-gepa/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dosco/aithy/ax-gepa"><img src="https://agentmods.dev/badge/skills/dosco/aithy/ax-gepa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.02526 |
| Opus 5 | $0.00036 | $0.01263 |
| Sonnet 5 | $0.00014 | $0.00505 |
| Haiku 4.5 | $0.00007 | $0.00253 |
Grade A, and why
ax-gepa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
95% identical to ax-gepa — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 265 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GEPA Optimization Codegen Rules (@ax-llm/ax)
Use this skill to generate GEPA optimization code. Prefer the top-level optimize(...) helper for normal code, and use direct AxGEPA / AxBootstrapFewShot only when the user needs low-level optimizer control.
Use These Defaults
- Use
optimize(program, train, metric, { studentAI, teacherAI, ... })for normal generator and flow tuning. - Prefer
ai(),ax(), andflow()for new code. - Use a strong
teacherAIand a cheaperstudentAI. - Pass
validationExampleswhen you have a holdout set. - Set
maxMetricCallsto bound optimizer cost;optimize(...)defaults it to100. - Use scalar metrics for one objective and object metrics for Pareto optimization.
- Apply results with
program.applyOptimization(result.optimizedProgram!). - For tree-wide runs, expect
optimizedProgram.componentMap. - Persist artifacts with
axSerializeOptimizedProgram(...)and restore them withaxDeserializeOptimizedProgram(...)so the same flow works in browsers and Node. optimize(...)runsAxBootstrapFewShot -> AxGEPAfor small starter sets by default, preserving the demos inresult.optimizedProgram.demos.
Critical Rules
optimize(...)andAxGEPA.compile()work for a single generator and for tree-aware roots such as flows or agents with registered optimizable descendants.- There is no separate flow-only GEPA optimizer. Use
AxGEPAfor flows too. - The metric may return either
numberorRecord<string, number>. - Keep metrics deterministic and cheap by default.
- Avoid extra LLM calls inside the metric unless the user explicitly wants judge-based evaluation.
- If the user needs LLM-as-judge scoring for a non-agent GEPA run, prefer a plain typed
AxGenevaluator instead of writing a custom judge abstraction. maxMetricCallsmust be large enough to cover the initial validation pass overvalidationExamples.- GEPA optimizes generic string components exposed by
getOptimizableComponents(). If a tree exposes no components, optimization will fail. - Use held-out validation examples for selection. Do not reuse the training set as
validationExamples. result.optimizedProgramis the easy-to-apply best candidate.result.paretoFrontis the full trade-off set for multi-objective runs.- Direct
AxGEPAstill has its ownbootstrapoption, but top-leveloptimize(...)composes the existingAxBootstrapFewShotoptimizer before GEPA instead.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago Changed 3918cd644aa4
- 9d ago First seen · 265 lines · 71 tokens per session scan A f5a55ee703bf
ax-gepa is a skill published in the GitHub repository dosco/aithy (107 stars, last pushed 8d ago), licensed Apache-2.0. It adds 71 tokens to every session and 2,526 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to ax-gepa, differing in 2 lines, and is treated as a copy.
Other skills, from other repositories
guidance
Constrain LLM output with grammars; guarantee valid JSON.
outlines
Outlines: structured JSON/regex/Pydantic LLM generation.
instructor
Structured LLM outputs validated with Pydantic.
dspy
DSPy: declarative LM programs, auto-optimize prompts, RAG.
ai-engineering-toolkit
6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.
darwinian-evolver
Evolve prompts/regex/SQL/code with Imbue's evolution loop.