Skip to content

docs: end-to-end tutorial for evaluating and optimizing agent skills #1604

Closed as not planned

Description

@cwing-nvidia

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.path at a baseline skill, collect rollouts, reward-profile, and compare two variants using the skills_ref (path + content hash) stamped on results.
  • Optimize: wrap eval as a programmatic evaluate_skill(skills_path) -> reward fitness 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

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_ref from 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-skills links to the tutorial and vice versa

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions