agentleFS
agno-agiagno-agi/agentos-azure/.agents/skills/create-evals/SKILL.md

create-evals

Skill2 starsChanged 18 days agoApache-2.0View on GitHub

Author eval coverage for an agent in this AgentOS — read what the agent promises, choose the behaviors worth testing, then write, run and audit Case entries in evals/cases.py. Use when the user wants evals created, coverage added, or an agent's behavior pinned down as tests. For failing suites or agent hardening, use improve instead.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the agent's instructions and tools.

    line 19
  2. Very specific:

    Add it to CASES in evals/cases.py:

    line 26
  3. Very specific:

    If the agent uses MCP tools, connect them in evals/__main__.py.

    line 45
  4. Very specific:

    Read the answer, the tools that fired and the judge's reason.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “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

Create Evals

Coding-agent workflow: run as /create-evals or by describing the task.

Turn what an agent promises into Case entries in evals/cases.py, so a regression shows up as a failed case. Read AGENTS.md first.

Evals need PostgreSQL running and the project venv (./scripts/venv_setup.sh, then source .venv/bin/activate). They do not need the API. Each run spends model calls and saves its session and result in the application's database.

1. Choose what to test

Read the agent's instructions and tools. Pick two or three behaviors that matter most to its job: what it must always do, what it must never do, and which tool it should use for what. Real requests from past sessions make good inputs. A recorded answer is not a correct answer. Skip what evals/cases.py already covers. Ask the user only which failures would hurt most.

2. Write the case

Add it to CASES in evals/cases.py:

Case(
    name="<agent>_<behavior>",
    agent=<the_agent>,  # use team= for a team
    input="<a realistic request>",
    criteria="<what a correct answer contains, checkable from the answer alone>",
    expected_tool_calls=("<tool>",),
    user_id="<a test user of your own>",
    tags=("smoke",),
)
  • The judge sees only the answer, not your files or database. Write criteria it can check from the answer, and state any fact it needs.
  • expected_tool_calls checks that a tool was called, not that it succeeded.
  • An agent built in Studio has no file. Load it with Agent.load("<id>", db=get_postgres_db(), registry=registry, published_only=True).
  • If the agent uses MCP tools, connect them in evals/__main__.py; it connects Super Agent's only.

3. Run and audit

python -m evals --name <case>

Read the answer, the tools that fired and the judge's reason. If the case is wrong, fix the case. If the agent is wrong, say so and use /improve. Run a case again when its verdict changes between runs, and tighten vague criteria.

4. Hand over

List the new cases and show git diff evals/cases.py. Say which ones pass.

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.