/relai:improvefrom RELAI
Guides iterative improvement of AI agent or LLM applications: fixing failing behaviors, comparing prompts/models, reducing cost/latency, and checking for regressions with verified outcomes.
Ships in RELAI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Goal: a verified improvement against the agreed objective with its guardrails held, or a clear account of why no change was kept.
Apply the shared purpose guidance to the requested outcome before choosing verification or optimization. For measured work, connect the objective and guardrails to the relevant case distribution and outcome priorities. A clear deterministic fix needs no unrelated evaluation questionnaire.
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 for focused analysis batches, repeated synthesis and
staged behavioral experiments; choose their size, concurrency and timing within the agreement.
Use cost-latency for a cost or latency objective.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.
Reuse existing instructions or a loop contract that cover the agreement (relai/README.md,
Terms). Apply the shared purpose guidance and
resource policy to distinguish user
authorization from your experimental plan. Build and revise the plan yourself within the agreement;
ask only about uncovered intent, authorization, conflicts or changes to its boundaries. Establish
these from the request and project evidence before dependent work:
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 applied to the frozen tasks without re-freezing them
(comparing, Setups), and everything below applies unchanged.
With agent-neutral tests that several agents run, improve one agent at a time: its setup files,
or its code when this repository develops it. The other agents' scores are context for the
report, never targets (agent-neutral).
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.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.
relai/README.md, Terms). On a benchmark, record
runs with benchmark.py record.eval skill separately
(criterion sources and conflicts).
Preserve raw scores and the evidence for disagreement, including defects missed by favorable
grades. When repair is outside scope, pause affected optimization and continue unaffected work
only where the original objective and guardrails remain assessable. Ask when the disagreement
changes the acceptance decision; do not silently drop criteria or revise the selection rule.
Authorized repairs follow the Frozen tests rule (relai/README.md; freeze.py --begin-repair
once agreed), with comparable measurements restored before reuse. A score alone does not
establish a test defect. No change kept is a valid result.For several alternatives, follow candidate-selection. When what to investigate next is unclear, prioritization offers an optional suggestion.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/coding-evalsBuild and run evals for the coding agent a team uses, including one developed here. Tasks come from real sessions, pull requests or git history, and checks score the code change the agent makes in a repository. Measure its baseline, or compare models, versions, setups or other coding agents. Not for an application agent's conversations, tool use or business workflows./discoverIdentify requirements, risks and open questions for an AI agent or LLM application from its code, docs or traces. Use to triage traces and failed runs, find failure patterns, resolve open questions, review risks or maintain the project's wiki. Produces analysis and maintained knowledge, without writing tests, changing the agent or building a review interface. Excludes ordinary bugs outside an AI agent./evalBuild and run evaluations for an AI agent or LLM application, including harnesses, tests from requirements, risks or failed runs, benchmarks, shared evaluators and judges. Also design scenarios, analyze coverage, repair tests, mock dependencies, or build agent-neutral tests of non-coding work such as assistants using mail or calendars. Measures the agent without changing it. Not for tasks that score a coding agent's code changes in a repository./loopContinuously improve an AI agent under one agreement, repeating intake of new traces, feedback and evaluation results, experiments and verified changes, with approvals agreed up front. Use for continuous, autonomous or multi-iteration improvement as new evidence arrives, not for one fix or one evaluation run. Excludes scheduled prompts and polling./startOrient users on RELAI's capabilities, the project's current eval status and next steps, or initialize RELAI records when a workflow needs them. Use for open-ended requests, such as what RELAI can do or how to begin evaluating an agent, when the user has not yet named a specific outcome./trace-reviewBuild or adapt a project-owned app for viewing agent traces and recording feedback linked to its source, such as a trace viewer, an annotation or labeling interface, or a review workspace for findings, open questions, scenarios or graders. Needs no eval setup. The deliverable is the app, not an analysis of the traces.npx claudepluginhub relai-ai/agent-eval-loop --plugin relaiOther plugins' skills for the same job