agentleFS
bonigarciabonigarcia/context-engineering/skills/eval-builder/SKILL.md

eval-builder

Skill195 starsChanged 8 days agoApache-2.0View on GitHub

Builds an evaluation set for an LLM application or agent from its specification: happy-path, edge-case, policy-violation, and adversarial cases with deterministic assertions and LLM-as-judge rubrics, written as Promptfoo tests. Also reports gaps in the specification that make behavior impossible to evaluate. Use when the user asks for evals, test cases, a test set, or a rubric for a prompt or agent. Do not use to review existing code tests or to run evaluations.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write the report described below, with a ## Evaluation cases section after the findings that holds the cases as a Promptfoo tests: list in …

    line 22
  2. Distinctive:

    Write the report in Markdown, in this order:

    line 26
  3. Distinctive:

    Use the book section given in the checklist for each rule.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Eval builder

Turn the specification of an LLM application into a set of evaluation cases that would catch the failures that matter most for it.

Procedure

  1. Extract from the specification what the application must do, what it must never do, and the format of its output.
  2. Read references/checklist.md.
  3. Write at least five cases, and at least one in each category: happy-path, edge-case, policy-violation (input that tempts the application to break a rule), and adversarial (prompt injection or manipulation). Each case has a description, input variables, and assertions. Prefer deterministic assertions (contains, not-contains, is-json, regex) and add an llm-rubric only where meaning matters.
  4. List as findings the gaps in the specification that block evaluation, such as undefined output formats or rules without a clear pass condition. If there are none, the findings list is empty.
  5. Write the report described below, with a ## Evaluation cases section after the findings that holds the cases as a Promptfoo tests: list in a fenced yaml block.

Report format

Write the report in Markdown, in this order:

  1. ## Summary: two to four sentences on the overall state and the most important change.
  2. ## Findings: one bullet per finding, most severe first, in the form - [severity] location: problem. Fix: suggested fix. (book section). Severity is high when the problem causes wrong or unsafe behavior, medium when it makes results unreliable or costly, and low for clarity or maintenance issues. If there are no problems, write No findings.
  3. Any skill-specific section named in the procedure.
  4. A final fenced json block with the same content, as in this example. Repeat the cases in the cases field, with category set to one of happy-path, edge-case, policy-violation, or adversarial.
{
  "skill": "eval-builder",
  "summary": "...",
  "cases": [
    {
      "description": "...",
      "category": "happy-path",
      "vars": {},
      "assert": []
    }
  ],
  "findings": [
    {
      "severity": "high",
      "location": "support-agent.md, Output",
      "problem": "...",
      "fix": "...",
      "book_section": "Chapter 8, Evals"
    }
  ]
}

Use the book section given in the checklist for each rule. If the input is missing or out of scope for this skill, say so in one sentence and stop.

Learn more: Chapter 8 of Context Engineering (Manning), https://hubs.la/Q04ksQ8J0

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.