agentleFS
relai-airelai-ai/agent-eval-loop/skills/improve/SKILL.md

improve

Skill34 starsChanged 3 days agoApache-2.0View on GitHub

Fix or improve an AI agent or LLM application, compare prompts, models or settings, reduce cost or latency, or check changes for regressions. Excludes ordinary bugs outside an AI agent. Use eval for measurement alone and loop for continuous learning from new evidence.

68 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy-platform, setup-platform and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • agno-agiSkill

    deploy-platform

    Deploy this AgentOS using its own provider instructions, configure JWT verification, and verify the public service. Use for first deployment, redeployment, or production configuration changes.

    Also in 4 projects that use this

  • agno-agiSkill

    setup-platform

    Set up this AgentOS from a fresh clone — confirm Docker, configure .env, boot the containers, prove the MCP endpoint live, connect the AgentOS UI, then build the user's first agent. Use when the user asks to set up the platform, get started, or bring this repo up on a new machine.

    Also in 4 projects that use this

  • MicrosoftSkill

    create-agent

    Create a new MCS2 Copilot Studio agent and PAC-connected local workspace with `pac copilot init`, then optionally add modern instructions, skills, tools, knowledge, and settings before synchronizing it. Use when the user asks to create, scaffold, initialize, or build a Copilot Studio agent.

    Also in 5 projects that use this

  • admin-remixSkill

    workspace

    Google Workspace administration - manage users, groups, email, Drive, calendars, and devices through natural conversation. Triggers on: Google Workspace, G Suite, user management, group management, admin tasks, offboarding, onboarding, email forwarding, Drive permissions, suspended users, organizational units, ChromeOS devices, audit logs, admin reports.

    Also in 3 projects that use this

  • AmirofcodesSkill

    goal

    Use when the user starts, manages, or asks about an OpenClaw goal mode with /goal. Enforces a bounded goal contract, visible progress blocks, proof requirements, stop conditions, and honest limitation language when no runtime goal-loop plugin is active.

    Also in 4 projects that use this

  • JetBrainsSkill

    doc-sync

    Keeps IdeaVim documentation in sync with code changes. Use this skill when you need to verify documentation accuracy after code changes, or when checking if documentation (in doc/, README.md, CONTRIBUTING.md) matches the current codebase. The skill can work bidirectionally - from docs to code verification, or from code changes to documentation updates.

    Also in 3 projects that use this

  • +3 more from agno-agi

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 66 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow improve-loop, and cost-latency for a cost or latency objective.

    line 22
  2. Distinctive:

    Check a change: use the relevant available checks and state uncovered behavior.

    line 24
  3. Very specific:

    Every attempted change is recorded in relai/changes.md or the project's equivalent history.

    line 76
  4. Distinctive:

    Use the evidence appropriate to the selected path: repository tests and error reports can establish a deterministic fix.

    line 82
  5. Distinctive:

    Consider better observability, evaluation signals or faster feedback when they materially help the requested outcome.

    line 91
  6. Very specific:

    Stop optimizing against a suspected bad test.

    line 108

“Common” is measured: kept by at least 6 in 10 of the 66 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

Improve the agent

Goal: a verified improvement against the agreed objective with its guardrails held, or a clear account of why no change was kept.

Choose the verification path first

  • Direct deterministic fix: repository tests can reproduce and verify a code defect or missing deterministic capability. Use relevant project checks and existing agent evals when needed. No harness, frozen suite or optimization loop is required for this path. Review the diff proportionally. A unit test of prompt loading does not prove better agent behavior.
  • Measured improvement: claims about agent performance need comparable behavioral evidence. Inspect existing runners, tests and results first. Read relai/README.md, or the bundled terms when absent. Use the start skill only when you need RELAI's managed records or checkers, and the eval skill only for missing measurement capabilities or coverage. Reuse working project infrastructure. Follow improve-loop, and cost-latency for a cost or latency objective.
  • Check a change: use the relevant available checks and state uncovered behavior. For an existing agent suite, follow regression; do not build unrelated infrastructure.

An existing-results assessment may finish with a recommendation and evidence limits, without a candidate or new run. Read only the guidance needed for that assessment; do not start an experiment merely to complete the flow. Across all paths, maintain useful knowledge under the shared policy, respecting read-only work.

Establish the improvement agreement

Reuse existing instructions or a loop contract that cover the agreement (relai/README.md, Terms). Ask only for missing consequential choices, conflicts, or work outside it. For a new measured-improvement agreement, settle before editing:

  • Objective and guardrails: behavioral success, lower cost, or lower latency; the targeted tests and measures; the required improvement and the guardrails' bounds. Unrelated issue-specific tests are guardrails, not targets. Do not invent a weighted objective for conflicting goals.
  • Scope: allowed agent files, model and settings changes, any supporting process improvements, and off-limits surfaces.
  • Budget and evidence: the decision to support, the relevant task distribution, measurement effort and estimated spend (eval: measure). No universal repetition count applies.
  • Check-ins and delivery: rounds or stopping rule; a branch or worktree for review by default, or the user's working tree if already authorized.

For managed measured work, record the agreement in relai/records/improve/plan.json (relai/docs/files.md), or use the covering loop contract. Existing project records may serve the same purpose when they preserve the agreement and evidence. Record consequential user choices alongside that agreement. Tell the user when the authorized budget is exhausted, and ask before exceeding it.

In an eval project for coding agents, the thing improved is a team's setup (relai/setups/<id>/: instruction files, skills, hooks) rather than code in this repository: the scope is those files, each candidate is measured as a variant of the frozen tasks (comparing), and everything below applies unchanged.

Done when

  • Direct fix: the correction has relevant repository evidence and a proportional diff review, and you reported the verified behavior, checks, delivery location and remaining uncertainty.
  • Regression check: you reported relevant before/after evidence, regressions and uncovered behavior, or explained a missing test or baseline rather than implying complete coverage.
  • Measured improvement:
    • Baseline and candidate runs are comparable; test selections and sampling, including baseline reuse, differing counts and unmatched cases, are recorded. Candidates stay within the agreed scope; changes to supporting tooling follow the shared adaptation policy, preserving measurement meaning or restoring comparable evidence before claiming improvement.
    • Evidence supports meaningful improvement on the objective, guardrails hold, and the predicted mechanism is exercised.
    • A fresh review (review-change) of the delivered diff and its evidence found nothing blocking. Any later change to the delivered revision is reviewed again.
    • Every attempted change is recorded in relai/changes.md or the project's equivalent history; update relai/STATUS.md when using managed state. You reported the objective, before/after evidence, remaining failures, candidates tried, selection basis, spend, delivery location and evidence limits, or why no change survived.

Shared rules

Use the evidence appropriate to the selected path: repository tests and error reports can establish a deterministic fix; claims about agent performance need behavioral measurements. Adapt the suggested methods to the request while preserving authorization and honest evidence.

  • Confirm changed mechanisms are loaded on the real product path. Check opposite-direction behavior, newly exposed downstream behavior, and other users of shared code or instructions; otherwise scope the change and conclusion to the behavior actually tested.
  • A crash in the agent's own code is a defect you may fix within scope. Distinguish it from failures of the measurement infrastructure.
  • Consider better observability, evaluation signals or faster feedback when they materially help the requested outcome. The skill grants no additional authorization: proceed with covered implementation work, but explain the benefit, effort and tradeoffs and ask before broadening the assignment or resolving an uncovered consequential choice. Keep unrelated ideas as follow-ups. A faster feedback runner is not evidence of a faster agent; separate the claims.

Additional rules for measured improvement

  • Diagnose from development trajectories only (relai/README.md, Terms). On a benchmark, record runs with benchmark.py record.
  • Choose the next useful experiment yourself and state its purpose and attribution limits. No test inputs, expected answers, evaluator wording or case-specific bypasses in the agent; general in-scope capabilities are legitimate (improve-loop, Authenticity).
  • Separate runtime failures and evaluator errors from behavioral scores; investigate and rerun missing evidence when useful and authorized; otherwise report the limits rather than implying the missing evidence supports a conclusion. Summarizer notices inform this judgment; successful execution of a comparison does not establish comparability.
  • Stop optimizing against a suspected bad test; investigate it through the eval skill separately, record justified repairs under the Frozen tests rule (relai/README.md; freeze.py --begin-repair once the repair is agreed) and establish comparable measurements before resuming. A low score alone does not establish a test defect. No change kept is a valid result.

Choosing among candidates

For several alternatives, follow candidate-selection. When what to investigate next is unclear, prioritization offers an optional suggestion.

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.