agentleFS
emiliodominguezemiliodominguez/flow-skills/skills/flow-benchmark/SKILL.md

flow-benchmark

Skill1 starsChanged 47 days agoMITView on GitHub

Performance measurement with a reproducible baseline and stated uncertainty. Use before optimizing, or to compare alternatives on speed, memory or size. Feeds `flow-work` or `flow-refactor` with evidence.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    Run baseline and candidate under controlled conditions, changing one variable per experiment.

    line 21
  2. Distinctive:

    Check tradeoffs in memory, CPU, responsiveness, bundle size and complexity.

    line 26
  3. Very specific:

    Use flow-work or flow-refactor only for an optimization the evidence justifies.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Define what "better" means before measuring. Keep raw results and compare like with like; never report a single attractive timing.

Process

  1. State metric, workload, target and the decision it informs. Define the timing boundary and cache/process state: cold startup includes initialization; steady-state throughput may warm up. Keep cold and warm experiments separate.
  2. Record baseline revision, runtime/build settings, hardware/environment, fixtures, concurrency, sample unit and tool/version. Time setup only when it is part of the metric; never warm away the behavior under investigation.
  3. Run baseline and candidate under controlled conditions, changing one variable per experiment. Interleave A/B samples when drift matters; isolate data/state between samples.
  4. Collect enough observations for the claim. Report median, tails such as p95/p99 only when sample size supports them, variance, outliers and known noise. No false precision, no unexplained outlier removal.
  5. Check tradeoffs in memory, CPU, responsiveness, bundle size and complexity. Profile when the result needs an explanation. A lower score is not automatically a better user experience.
  6. Save the harness or command, raw results and comparison so others can rerun it. State whether the effect is large relative to noise.

Anti-patterns

  • Warming a cold-start benchmark or excluding the initialization under investigation.
  • Comparing development and production builds as if only the implementation changed.
  • Reporting a best run or p99 from a handful of samples.
  • Claiming causation from timing alone.

Done when

  • Baseline and candidate share a relevant reproducible workload and timing boundary.
  • Raw results, uncertainty and meaningful regressions are visible.
  • The evidence supports an optimization decision or names what better measurement is needed.

Use flow-work or flow-refactor only for an optimization the evidence justifies.

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.