benchmark-optimize
Skill1 starsChanged 23 days agoApache-2.0View on GitHub
Measure and optimize a performance bottleneck with reproducible before-and-after comparisons.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-testSkill
- audit-fixissuesSkill
- autoresearchSkill
- circleci-job-resultsSkill
- citation-verifierSkill
- cli-designSkill
- codebase-auditSkill
- code-cleanupSkill
- deep-code-cleanupSkill
- doc-updateSkill
- emendSkill
- fix-issueSkill
- git-github-workflowSkill
- goal-modeSkill
- inspect-datasetSkill
- manage-pr-lifecycleSkill
- medcognetics-brandSkill
- notify-wakeSkill
- repo-maintenanceSkill
- review-fix-loopSkill
- standardize-ciSkill
- token-file-authSkill
- whats-nextSkill
- yeetSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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
- Distinctive: line 16
Use the repository's benchmark framework.
- Distinctive: line 18
Use testing.B for Go and JMH for Java.
- Distinctive: line 20
Keep correctness and public behavior stable unless the task authorizes a change.
≈ “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.
Files
Benchmark Optimize
Accept a function, process, optional language hint, or no target. With no target, choose a bottleneck supported by profiles, slow tests, or realistic resource costs. Resolve material workload ambiguity before optimization.
Define the metric, representative inputs, environment, and acceptance criterion. Capture a baseline before changing the implementation. Measure only resources relevant to the target, such as latency, throughput, memory, disk, or network use.
Use the repository's benchmark framework. Otherwise use a language-appropriate tool: Criterion for Rust, pytest-benchmark or pyperf for Python, and a repeatable Node runner for JavaScript. Use testing.B for Go and JMH for Java. Record the command and sampling settings.
Keep correctness and public behavior stable unless the task authorizes a change. Compare candidates with the same workload and environment. Run correctness tests and applicable quality gates on the selected result.
Continue until a measured improvement satisfies the target or evidence rules out the attempted approaches. Discard unsuccessful optimization edits while preserving unrelated work. Report baseline and final metrics, uncertainty, resource tradeoffs, validation, and the decision to retain or reject the change.
In Plan Mode, inspect existing evidence and define the benchmark and approach without changing tracked files. No extra target-approval checkpoint is required.
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
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.

