agentleFS
PradnyeshpPradnyeshp/Claude-Skills/.claude/skills/benchmark/SKILL.md

benchmark

Skill2 starsChanged 5 months agoMITView on GitHub

Measure the runtime, throughput, or memory of a function, endpoint, or command — establish a baseline and report the numbers, using the project's benchmark tooling. Use when the user says "benchmark this", "how fast is this", "measure performance", "time this function", "set up a benchmark", or "what's the baseline".

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

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Measure stably: Run enough iterations for a stable result, report central tendency *and* spread (mean/median + stddev or p95, not a single …

    line 28
  2. Distinctive:

    Keep setup/teardown out of the timed region.

    line 34
  3. Very specific:

    Don't change the code being measured in this pass.

    line 36

“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

Bench tooling signals

!ls package.json pyproject.toml Cargo.toml go.mod 2>/dev/null

!ls benches bench benchmarks 2>/dev/null && echo "(existing benchmarks above — extend them)"

Instructions

Benchmark the target in $ARGUMENTS. If no target is given, ask what to measure and what "fast enough" means (the workload, input size, and the metric that matters — latency, throughput, or memory).

Method

  1. Pick the right tool for the stack, preferring one already in use:
    • JS/TS: vitest bench, tinybench, benchmark.js, or hyperfine for CLI commands.
    • Python: pytest-benchmark, timeit, or hyperfine for scripts.
    • Rust: cargo bench (criterion).
    • Go: go test -bench=. -benchmem.
    • For any whole-command timing, hyperfine is a good language-agnostic default.
  2. Write a focused benchmark that exercises the real target with representative input. Isolate the work being measured (set up data outside the timed loop), and use a realistic input size — note it explicitly. Warm up where the runtime/JIT makes cold runs misleading.
  3. Measure stably. Run enough iterations for a stable result, report central tendency and spread (mean/median + stddev or p95, not a single run), and note the environment (machine, runtime version) since absolute numbers aren't portable.
  4. Report the baseline as a small table: target, input size, metric, and the numbers. If comparing two implementations or before/after, run both under the same harness and report the delta with the relative change.

Rules

  1. Measure, don't estimate — report numbers from an actual run, with the iteration count and spread, not a single noisy sample.
  2. Keep setup/teardown out of the timed region; benchmark the work, not the fixture.
  3. State the conditions (input size, hardware, runtime version) — a number without them is meaningless and non-reproducible.
  4. Don't change the code being measured in this pass; this is measurement. Hand off to the optimize skill to act on a bottleneck the baseline reveals.
  5. Beware microbenchmark traps: dead-code elimination removing the work, unrealistic all-cache-hot inputs, and measuring the harness instead of the target. Call out anything that makes the result suspect.

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.