hello-world (worked example)
hello-world is a small reference skill that ships with arc-skill-eval. A run of its suite exercises discovery, execution, grading, workspace capture, and artifact writing. If its evals pass, those stages work.
The skill lives in the repo at skills/hello-world/.
What SKILL.md says
Section titled “What SKILL.md says”The skill is deliberately trivial. From its SKILL.md:
When invoked, follow these steps exactly:
- Read the prompt and extract the intended greeter name.
- If the prompt names a specific recipient (“a greeting for Ada”, “greet Grace”), use that name verbatim.
- If the prompt is generic (“create a greeting”), use
world.- Use the Write tool to create a file called
greeting.txtin the workspace root. The file content is exactly one line:Hello, <name>!(note the comma, the space after it, and the trailing exclamation mark).- Reply with a single sentence that confirms the file was written and mentions the filename
greeting.txtexplicitly.
Two details make the skill easy to grade:
- The file has one line with exact punctuation, so a regex can check it. A model can paraphrase intent, but it can’t paraphrase punctuation.
- The reply must contain the literal string
greeting.txt, so a regex can check the reply too.
What evals/evals.json checks
Section titled “What evals/evals.json checks”The suite has three cases. This is the file as it ships:
{ "skill_name": "hello-world", "evals": [ { "id": "default-world", "prompt": "Create a greeting.", "expected_output": "greeting.txt exists in the workspace with 'Hello, world!' and the assistant reply names the file.", "assertions": [ { "type": "file-exists", "path": "greeting.txt" }, { "type": "regex-match", "pattern": "Hello, world!", "target": { "file": "greeting.txt" } }, { "type": "regex-match", "pattern": "greeting\\.txt", "target": "assistant-text" } ] }, { "id": "named-ada", "prompt": "Create a greeting for Ada.", "expected_output": "greeting.txt contains 'Hello, Ada!' and the assistant reply names the file.", "assertions": [ { "type": "file-exists", "path": "greeting.txt" }, { "type": "regex-match", "pattern": "Hello, Ada!", "target": { "file": "greeting.txt" } }, { "type": "regex-match", "pattern": "greeting\\.txt", "target": "assistant-text" } ] }, { "id": "assistant-names-file", "prompt": "Please generate a greeting for Grace Hopper.", "expected_output": "greeting.txt exists; assistant text mentions 'greeting.txt' literally.", "assertions": [ { "type": "file-exists", "path": "greeting.txt" }, { "type": "regex-match", "pattern": "greeting\\.txt", "target": "assistant-text" }, { "type": "regex-match", "pattern": "Hello, Grace Hopper!", "target": { "file": "greeting.txt" } } ] } ]}Points to notice:
- Every assertion is deterministic. Each case checks that the file exists, that the file body matches, and that the reply names the file. No judge model is involved, so the suite gives the same verdict for the same output every time and costs nothing to grade.
target: "assistant-text"pointsregex-matchat the assistant’s reply instead of a workspace file. The same assertion type checks both.Hello, Grace Hopper!in the third case checks that a two-word name comes through intact. If the skill mangles the name, the regex fails.- No
setupand nofiles. Every case starts from an empty workspace. Hello-world tests one skill’s effect on an empty directory, not repo state.
Earlier versions of the suite used judge assertions for the reply. Regex checks on assistant-text replaced them to keep the smoke test deterministic. Real skills usually need a judge for prose claims. See Assertions for when to use one.
Run it
Section titled “Run it”arc-skill-eval run ./skills/hello-worldStdout shows one line per case, PASS or FAIL with the case ID, then a summary. Model latency accounts for most of the wall-clock time.
Read the artifacts
Section titled “Read the artifacts”After a clean run, you have:
skills/hello-world/evals-runs/<runId>/├── eval-default-world/│ ├── assistant.md # "I wrote greeting.txt with the greeting."│ ├── outputs/greeting.txt # "Hello, world!"│ ├── timing.json│ ├── grading.json # 3 assertions, all passed│ ├── trace.json│ ├── tool-summary.json # tool_calls_by_name: { write: 1 }│ └── context-manifest.json # only attached skill: hello-world├── eval-named-ada/│ └── ...└── eval-assistant-names-file/ └── ...Check three things after a successful run:
grading.jsonhassummary.pass_rateof1for each case. A lower value means an assertion failed.tool-summary.jsonhastool_calls_by_namewithwrite: 1and nothing else. If the skill ranbash, it broke theSKILL.mdrule “Do not run shell commands.”context-manifest.jsonhas one entry inattached_skills:hello-worldwith roletarget. Any other entry means an ambient skill leaked into the context.
Compare against the no-skill baseline
Section titled “Compare against the no-skill baseline”arc-skill-eval run ./skills/hello-world --compareCompare mode shows whether the skill instructions change the result. With the skill attached, current Claude and GPT models usually pass all three cases. Without it, the model often picks a different filename or misses the exact punctuation. The benchmark.json delta records the difference in pass rates.
Use it as a template
Section titled “Use it as a template”To write evals for your first skill, copy this directory and edit it:
SKILL.md: replace the steps with your skill’s logic. Keep at least one detail the model can’t paraphrase, such as a literal filename, a specific word, or an exact format.evals/evals.json: replace the cases. Aim for six to ten. Use script assertions first and add judge assertions only for prose.evals/files/<fixture>/(optional): add fixtures for cases that need existing repo state. Hello-world has none.
For more guidance, see Authoring evals.