agentleFS
vasuag09vasuag09/harness-claude/skills/benchmark/SKILL.md

benchmark

Skill2 starsChanged 6 months agoMITView on GitHub

Measure whether a harness component (a skill, agent, or rule) actually earns its keep — run the same task k times with and without it, in isolated git worktrees, and report pass@k (works once) and pass^k (works consistently). Opt-in; not wired into the default pipeline. Use to decide keep-vs-cut on evidence, or to fill the R5 benchmark for a /extract proposal.

51 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-deploy, cso and 10 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.
  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 9 projects that use this

  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 8 projects that use this

  • AICreator-WindSkill

    document-release

    技术作家工具。更新项目文档。

    Also in 9 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 9 projects that use this

  • seek888Skill

    design-html

    Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".

    Also in 5 projects that use this

  • CodeWithBehnamSkill

    setup-browser-cookies

    Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.

    Also in 8 projects that use this

  • +2 more from ayuday

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep k small for model-driven tasks (each trial is a real run).

    line 68

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

/benchmark — does this component earn its keep?

Goal: replace opinion with evidence. Run a task k times with a named component enabled and k times without it, each trial in its own throwaway git worktree, then compare reliability. Report pass@k (passed in ≥1 trial — "can it work") and pass^k (passed in all k trials — "does it work reliably"), and a verdict.

Opt-in. No default-pipeline skill or hook invokes /benchmark. It forks git worktrees and (when you supply a real task) spawns work k×2 times — always an explicit, deliberate run. Git boundary: it only git worktree add/remove (an isolated sandbox); it never commits, pushes, or branches the working tree.

When to run

  • You want to decide whether a skill / agent / rule is worth keeping (keep-vs-cut on data).
  • A /extract proposal sits at R5 MANUAL and you want a real empirical signal — benchmark it with --component <draft-name> so the result lands where R5 looks.

The harness contract

scripts/eval/benchmark.js is generic: it knows nothing about your component. It toggles the component only through env vars the task command honors, for each trial:

envmeaning
HARNESS_COMPONENTthe component name (label)
HARNESS_COMPONENT_ENABLED1 (with) · 0 (without)
HARNESS_TRIAL0-based trial index

A trial passes iff its score command exits 0. Default score = the task's own exit code; recommended = node scripts/eval/checkpoint.js <spec> so a trial is scored against a spec's acceptance criteria (reusing the v0.4 gate).

Do this

  1. Define the task. Decide what "doing the task" means and write a command that performs it in the current worktree, reading HARNESS_COMPONENT_ENABLED to enable/disable the component under test (e.g. include the skill's guidance only when =1). For a model-driven task, the command drives a subagent; for a deterministic check, any shell script works.
  2. Define scoring. Either let the task's exit code be the signal, or pass --score (e.g. checkpoint.js against the task's spec) so PASS/FAIL is judged against acceptance criteria.
  3. Run the benchmark:
    node scripts/eval/benchmark.js --component <name> --task '<cmd>' [--score '<cmd>'] [--k 5]
    Exit 0 = pass verdict (component earns its keep) · 1 = fail verdict (no reliability gain) · 2 = usage/setup error (no --task, not a git repo, no HEAD commit).
  4. Read the result. The run prints both cohorts' pass@k / pass^k / success-rate and the verdict, and writes .claude/eval/benchmarks/<slug>.json (<slug> = the component name). The verdict is: earns its keep iff with.successRate > without.successRate or (with.passCaret && !without.passCaret).
  5. Act on it. Recommend keep or cut with the numbers. For an /extract proposal, the artifact now feeds R5: re-run node scripts/eval/extract-rubric.js <draft> and R5 reports PASS/FAIL from the benchmark instead of MANUAL. Promotion into skills/ is still a human call (R4 + your approval) — a passing benchmark never auto-promotes.

Security & trust

  • --task / --score are author-authored shell, same trust boundary as the test scripts and the eval fences in checkpoint.js. Don't pass untrusted commands.
  • The result artifact records metrics only (counts, rates, the commands you supplied) — no trial output or secrets are captured.
  • Worktrees are always removed after the run, including on task/score failure.

Notes

  • Self-contained: pure Node + git + shell, no companions (mgrep/graph/context7), no network.
  • Keep k small for model-driven tasks (each trial is a real run); larger k for cheap deterministic tasks buys tighter pass^k confidence.

Exit criterion

A benchmark result (.claude/eval/benchmarks/<slug>.json) exists with both cohorts' pass@k / pass^k and a verdict, and you've made an evidence-based keep-vs-cut recommendation (or fed the artifact back into a /extract proposal's R5).

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.