writing-benchmarks SKILL.md skillA

writing-benchmarks from computesdk/benchmarks is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add computesdk/benchmarks/writing-benchmarks@git:20260926.564377d

Pins git:20260926.564377d in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
computesdk/benchmarks
Path
.agents/skills/writing-benchmarks/SKILL.md
Versions recorded
1
Latest version
git:20260926.564377d, committed Sep 26, 2026
Size
8,423 bytes
Repository stars
131
License
MIT

Author or improve a ComputeSDK benchmark. Turn a unit of work into a declarative *.bench.ts file (config + task with benchsdk steps), set up participants, scoring, and display, verify with a dry run, and wire it into package.json scripts and CI. Use when asked to create, extend, or improve a benchmark.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Writing a benchmark

A benchmark is **a unit of work** (what one iteration measures) expressed as a
declarative `*.bench.ts` file that exports exactly `config` + `task`. The
`bench run` CLI owns orchestration — the file never calls the runner itself.

Canonical API reference: `WRITING_BENCHMARKS.md` (repo root) — read it for the
full field tables. Runnable templates: `examples/01-hello.bench.ts` through
`11-logging.bench.ts`. Reference implementations:

- `benchmarks/sandbox/tti.bench.ts` — minimal sandbox benchmark
  (create → exec → destroy, one metric).
- `benchmarks/sandbox/dax.bench.ts` — rich benchmark (work measured inside the
  sandbox, pre-measured phase steps, `TaskError`, legacy results writer).

## 1. Define the unit of work

Before writing code, pin down:

- **Timed boundary** — what starts the clock and what ends it. For TTI that's
  `sandbox.create()` → first command succeeding; destroy is excluded. Write the
  boundary in the file's header comment.
- **Uniformity** — the task body must run identically for every participant.
  Push provider differences into participant config (`sandboxOptions`,
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add computesdk/benchmarks/writing-benchmarks@sha256:a8364682305e1728

The line at the top of this page pins the label git:20260926.564377d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ew6l5xe6v3kvev5n.svg)](https://markdownregistry.com/a/art_ew6l5xe6v3kvev5n)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 26, 2026.

versioncommittedcommitsizeaudit
git:20260926.564377d latest2026-09-26 564377d 8,423 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8423 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

computesdk/benchmarks · 131 stars · license MIT · pushed 2026-11-06 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_ew6l5xe6v3kvev5n
GET https://markdownregistry.com/api/v1/resolve?ref=computesdk/benchmarks/writing-benchmarks
GET https://markdownregistry.com/api/v1/blob/a8364682305e1728716e39ed42f22f0d7915466e334ef8b09cf5d54fec425520

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from computesdk/benchmarks

benchsdk-cli SKILL.md skill
computesdk/benchmarks · .agents/skills/benchsdk-cli/SKILL.md · Install, authenticate, and use the unified bench CLI to query and run ComputeSDK benchmarks. Covers device-code OAuth…
git:20261028.9f38cfa · audit A · 131 stars
local-platform-e2e SKILL.md skill
computesdk/benchmarks · .agents/skills/local-platform-e2e/SKILL.md · Stand up benchmarks-platform locally (Postgres + MinIO + ClickHouse in docker) and run a real @benchsdk/runner…
git:20261023.9c7058e · audit C · 131 stars
add-sandbox-provider SKILL.md skill
computesdk/benchmarks · .claude/skills/add-sandbox-provider/SKILL.md · Prep a new sandbox provider for the ComputeSDK benchmarks (wire up the dependency, env var, providers list, and CI…
git:20260826.3095712 · audit A · 131 stars
llms.txt llms.txt file
computesdk/benchmarks · llms.txt
git:20260826.3095712 · audit A · 131 stars

Every file in computesdk/benchmarks

Browse by kind, by grade A, or by owner.