Use it from an agent
A coding agent can drive arc-skill-eval from its shell tool. The package ships skills that tell the agent which commands to run and how to read the results. Every command except browse prints one JSON object with --json, so the agent never has to parse terminal text.
Install the skills
Section titled “Install the skills”Install the CLI, then copy the agent skills into your project:
npm install --global arc-skill-evalcd my-projectarc-skill-eval install-skillsBy default, install-skills copies arc-creating-evals and arc-running-evals into .agents/skills/ and .claude/skills/ in the current directory. Those two folders cover every supported agent:
| Agent | --harness | Folders |
|---|---|---|
| Claude Code | claude-code | .claude/skills |
| Codex | codex | .agents/skills |
| Copilot CLI | copilot | .agents/skills |
| Pi | pi | .agents/skills |
| Cursor Agent | cursor-agent | .agents/skills, .cursor/skills |
Pass --harness one or more times to install only the folders you need. Pass --target <dir> to install into another project. The command skips a skill folder that already exists. Pass --force to replace it.
arc-skill-eval install-skills --harness claude-codearc-skill-eval install-skills --target ../my-project --forceRestart or reload the agent afterwards so it loads the new skills. The installed copies leave out each skill’s evals/ folder, because an agent that scans folders would load those fixture SKILL.md files as real skills.
The bundled skills
Section titled “The bundled skills”arc-creating-evals
Section titled “arc-creating-evals”This skill writes an eval suite for an existing skill. Ask the agent something like “write evals for this skill” or “make this skill testable”. The agent reads the target SKILL.md, agrees on what success looks like with you, drafts cases and assertions, and writes evals/evals.json plus any fixtures under evals/files/. It stops for your confirmation between phases.
create --guided uses the same skill, so the CLI and the agent design cases the same way. See Authoring evals.
arc-running-evals
Section titled “arc-running-evals”This skill runs an existing suite and explains the result. Ask “run the evals”, “why did eval 3 fail”, or “compare with and without the skill”. The agent:
- runs
arc-skill-eval run <skill-dir> --jsonand parses stdout as one JSON object, - checks for an
errorkey first, so a bad command line is never reported as a failed eval, - explains each failure as a skill bug, an eval bug, or an environment problem,
- with your approval, runs
reviewandimprove --from-feedback, then re-runs only the failing cases.
It asks before a full-suite run, a --compare run, or a run that starts another agent CLI, because each of those calls models and costs money.
arc-evals-lite (opt-in)
Section titled “arc-evals-lite (opt-in)”This skill writes and runs evals without the CLI. The agent you already use does the work, and the suites use the same evals/evals.json format, so they run unchanged under the CLI later.
Lite has limits. It runs each case in a fresh sub-agent or a headless agent CLI, and it refuses to run in an agent that can’t start one, rather than grade its own answers. It checks file-exists, file-absent, json-valid, regex-match, and judge assertions. It skips tool-call checks, sandboxing, timing, cost, and CI exit codes, and records those as needing the CLI.
install-skills leaves lite out by default, because next to the CLI-backed skills it would also answer “run the evals”. Add it explicitly:
arc-skill-eval install-skills --skill arc-evals-liteLite is a single SKILL.md file, so you can also copy it into a project that doesn’t have the CLI. skills/README.md shows how.
What the agent relies on
Section titled “What the agent relies on”The skills depend on the JSON contract:
- With
--json, stdout holds exactly one JSON object. Progress and warnings go to stderr. - Every object has
"schemaVersion": 1. - A command that can’t finish prints
{"schemaVersion":1,"error":{"kind":"...","message":"..."}}and exits1. - Exit code
1without anerrorobject is a verdict: a case or assertion failed.
browse and create --interactive need a terminal and refuse to start without one. An agent should use run --json and create --dry-run --json instead. JSON output lists every payload and exit code.
Paths to bundled skills
Section titled “Paths to bundled skills”bundled prints where the package installed its skills. Use it to run the reference suite or to copy a skill by hand:
arc-skill-eval bundledarc-skill-eval run "$(arc-skill-eval bundled hello-world)" --json