Repository navigation
Description
Part of epic #1494 (agent skill improvement). Fills the placeholder "#TBD — Docs: skill evaluation & improvement workflow" under Explain.
Background
Skill optimization is a high-interest workflow, and evaluation is the necessary first half of it (eval is the fitness function the optimizer loops on). Users want a single, relatable walkthrough that shows both: measure a skill, then improve it. We have the eval infrastructure (#1256) and the reference page (agent-server/agent-skills), but no hands-on tutorial that ties evaluation and optimization together, and no committed example designed for teaching.
Design
One cohesive tutorial, written once when the optimizer (#1495) lands. A single "Evaluate and optimize agent skills" tutorial under fern/.../environment-tutorials/ that walks through the full loop:
- Evaluate: point
skills.pathat a baseline skill, collect rollouts, reward-profile, and compare two variants using theskills_ref(path + content hash) stamped on results. - Optimize: wrap eval as a programmatic
evaluate_skill(skills_path) -> rewardfitness function and drive an optimizer loop (e.g. EvoSkill / GEPA) that proposes a skill, evaluates it, and keeps the best.
Eval is already covered for interim users by the reference page, so the tutorial does not need to ship in halves.
Self-contained example environment. The teaching example should be relatable to a wide audience and self-contained:
- A simple, broadly-understandable task (e.g. short word problems / structured short-answer), where "what good looks like" is obvious and a skill visibly changes behavior.
- A composite reward = correctness and token efficiency (fewer tokens), so the tutorial frames skills as "better" (correct and cheap), not just "more accurate." This also gives the optimizer a real tradeoff to balance. Token usage is already available via
response.usage. - Ships with: dataset (JSONL), a composite-reward verifier (resources server), a baseline skill directory, and the YAML config to run it.
Out of Scope
- Skill evaluation infrastructure itself — feat: agent skill evaluation infrastructure #1256.
- The optimizer implementation / skill iteration loop — feat: structured workflow for iterating on agent skills #1495. (The tutorial consumes it.)
- Skill authoring/editing tooling.
Acceptance Criteria
- A self-contained example environment (dataset + composite-reward verifier + baseline skill + config) lives in the repo and is runnable
- The tutorial walks through evaluating a skill and comparing two variants end to end, reading
skills_reffrom results - The composite reward (accuracy + token efficiency) is explained and demonstrated
- The tutorial walks through optimizing the skill with an optimizer using eval as the fitness function
- The reference page at
agent-server/agent-skillslinks to the tutorial and vice versa
Dependencies
- feat: agent skill evaluation infrastructure #1256 (skill evaluation infrastructure)
- feat: structured workflow for iterating on agent skills #1495 (skill optimization loop)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsDone
Activity
feat: agent skill evaluation infrastructure (#1605)