agentleFS
josephneumannjosephneumann/claude-corps/skills/benchmark/SKILL.md

benchmark

Skill4 starsChanged 8 months agoMITView on GitHub

Use when you need measured performance evidence by running a repeatable command on the current branch and a baseline ref

  • Installs packages

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 9 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

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 0 are common, 16 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a repeatable benchmark command on the current branch and compare it with a baseline ref.

    line 9
  2. Very specific:

    If the user wants architectural performance review without running code, use /multi-review with performance-oracle instead.

    line 11
  3. Distinctive:

    Do not use commands that intentionally mutate repo-tracked files

    line 29
  4. Distinctive:

    If the command dirties the worktree, stop and report it

    line 31
  5. Distinctive:

    Verify the worktree is clean enough to benchmark safely

    line 36
  6. Distinctive:

    Create a temporary detached worktree for the baseline

    line 39
  7. Very specific:

    Use a temporary directory under /tmp or equivalent.

    line 42
  8. Very specific:

    Read local sources of truth first: CLAUDE.md, README.md, and project manifests such as package.json, pyproject.toml, Cargo.toml, or Makefile

    line 45
  9. Distinctive:

    If the benchmark command depends on installed dependencies or generated artifacts, run the same setup flow in both environments before …

    line 46
  10. Very specific:

    Prefer the project's existing setup command if one is documented, for example pnpm install --frozen-lockfile, uv sync, cargo fetch, or make …

    line 47
  11. Distinctive:

    Do not count setup time as benchmark time

    line 48
  12. Distinctive:

    If you cannot establish equivalent environments on both refs, stop and report that the benchmark would be untrustworthy

    line 49
  13. Very specific:

    Run N measured executions

    line 56
  14. Distinctive:

    If the command prints benchmark metrics already, include them in the notes, but wall-clock time is the required common metric

    line 58
  15. Distinctive:

    Prefer a consistent timing mechanism for every run.

    line 60
  16. Distinctive:

    all measured run times

    line 65
  17. Distinctive:

    If run-to-run variance is high, say so.

    line 71
  18. Distinctive:

    Always remove the temporary baseline worktree before exiting, even on failure.

    line 103
  19. Distinctive:

    If the benchmark command fails on either ref, report the failing ref and stop

    line 107
  20. Distinctive:

    If the baseline ref cannot be resolved, stop

    line 108
  21. Distinctive:

    If cleanup fails, report it explicitly

    line 109

“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 $ARGUMENTS

Run a repeatable benchmark command on the current branch and compare it with a baseline ref. This skill is for measurement, not speculation.

If the user wants architectural performance review without running code, use /multi-review with performance-oracle instead.

Arguments

/benchmark "<command>" [--baseline <ref>] [--iterations N]

Defaults:

  • --baseline origin/main
  • --iterations 5
  • warmup runs: 1

Reject the request if no command is provided.

Safety Rules

  • The benchmark command must be repeatable
  • Do not use commands that intentionally mutate repo-tracked files
  • Build artifacts and caches are acceptable if they are not tracked
  • If the command dirties the worktree, stop and report it

Phase 1: Pre-Flight

  1. Record current branch and git status --short
  2. Verify the worktree is clean enough to benchmark safely
  3. Resolve the baseline ref
  4. Determine whether the benchmark command depends on repo-local dependencies, generated assets, or setup steps
  5. Create a temporary detached worktree for the baseline
  6. Establish equivalent runtime environments for current and baseline before timing anything

Use a temporary directory under /tmp or equivalent. Never benchmark the baseline by checking out over the user's current branch.

Environment setup rules:

  • Read local sources of truth first: CLAUDE.md, README.md, and project manifests such as package.json, pyproject.toml, Cargo.toml, or Makefile
  • If the benchmark command depends on installed dependencies or generated artifacts, run the same setup flow in both environments before measuring
  • Prefer the project's existing setup command if one is documented, for example pnpm install --frozen-lockfile, uv sync, cargo fetch, or make setup
  • Do not count setup time as benchmark time
  • If you cannot establish equivalent environments on both refs, stop and report that the benchmark would be untrustworthy

Phase 2: Measurement Protocol

For both current branch and baseline:

  1. Run 1 warmup execution
  2. Run N measured executions
  3. Capture wall-clock duration for every measured run
  4. If the command prints benchmark metrics already, include them in the notes, but wall-clock time is the required common metric

Prefer a consistent timing mechanism for every run. Keep environment conditions as similar as possible across both refs.

Phase 3: Summarize Results

Compute for current and baseline:

  • all measured run times
  • median
  • min
  • max
  • percentage delta of median vs baseline

If run-to-run variance is high, say so. Do not overclaim a tiny difference hidden by noise.

Required Output

## Benchmark Summary

Command: ...
Baseline: ...
Iterations: ...

### Current Branch
Runs: [...]
Median: ...
Min/Max: ...

### Baseline
Runs: [...]
Median: ...
Min/Max: ...

### Delta
Current vs baseline median: ...%

### Notes
- command-native metrics if any
- variance caveats
- anything that may have skewed results

Cleanup

Always remove the temporary baseline worktree before exiting, even on failure.

Failure Handling

  • If the benchmark command fails on either ref, report the failing ref and stop
  • If the baseline ref cannot be resolved, stop
  • If cleanup fails, report it explicitly

Interpretation Rules

  • Measured improvement beats theoretical reasoning
  • High variance weakens confidence
  • A benchmark proves only the command that was run, not overall product performance

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.