optimize
Skill2 starsChanged 7 months agoMITView on GitHub
Benchmark, analyze, and optimize a function's execution time. Produces a before/after performance table with real numbers. Never presents a change without proving it is faster.
45 other projects use a version of this.
Adopted by
Most recently taken up by
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 4, 2026
- dracocephalum/dc-agenticstheir own version, first seen Oct 4, 2026
- daintreehq/daintreetheir own version, first seen Oct 1, 2026
- OpenPerfAgent/who-ate-my-flopstheir own version, first seen Sep 30, 2026
- tradeblocks-org/tradeblocks-skillstheir own version, first seen Sep 28, 2026
- theexperiencecompany/gaiatheir own version, first seen Sep 17, 2026
Used with
Projects with it also use arrange, overdrive 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.
nikafastovets-langSkillarrange
Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.
Also in 6 projects that use this
nikafastovets-langSkilloverdrive
Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?
Also in 10 projects that use this
mtctSkillquieter
Tone down overly bold or visually aggressive designs. Reduces intensity while maintaining design quality and impact.
Also in 14 projects that use this
mtctSkillteach-impeccable
One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.
Also in 10 projects that use this
zwy123zwySkillnormalize
将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。
Also in 10 projects that use this
mickeylorenziniSkillharden
Audits any substantial deliverable — documents, grant sections, strategies, protocols, skills, configs, roadmaps, plans — against domain-specific quality criteria before delivery. Searches the web for best practices, runs dual-pass thematic and structural audit with severity classification, fixes all issues, and iterates until convergence. Activates when producing deliverables exceeding 4 paragraphs or 20 lines, or when the user says "harden", "audit", "stress test", or "review before delivering", or when re-auditing a modified deliverable for regressions. Does not activate for conversational responses, brainstorming, web search summaries, or rough drafts.
Also in 14 projects that use this
- +4 more from mtct
- +1 more from nikafastovets-lang
Other versions45 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 45
- kovrichard/catalyst★ 469same name
- 10xChengTu/Mux0★ 346same name
- theexperiencecompany/gaia★ 306same name
- akseolabs-seo/AK-Threads-booster★ 274same name
- AkaraChen/aghub★ 271same name
- marketcalls/vectorbt-backtesting-skills★ 207same name
- atelier-fashion/adlc-toolkit★ 171same name
- rwliebs/Dossier★ 89same name
- daintreehq/daintree★ 75same name
- StyleSwift/StyleSwift★ 62same name
35 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- buildSkill
- concurrencySkill
- databaseSkill
- memorySkill
- networkSkill
- stress-testSkill
- telemetrySkill
- uiSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 44 edited versions we read keep these.
6
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
- Distinctive: line 11
Write a temporary micro-benchmark script in the user's workspace.
- Distinctive: line 14
Run the script using the terminal.
- Distinctive: line 15
Delete the temporary script after recording the results.
- Distinctive: line 37
Run the benchmark on the new code.
- Distinctive: line 38
If the new code is not measurably faster: discard it, select a different approach, repeat.
- Distinctive: line 49
Follow with a one-paragraph explanation grounded in CPU/memory theory.
“Common” is measured: kept by at least 6 in 10 of the 44 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.
Files
Execute all four phases in order. Do not skip any phase.
Phase 1 — Establish Baseline
- Identify the exact code to optimize.
- Run a micro-benchmark:
- Write a temporary micro-benchmark script in the user's workspace.
- The script MUST contain a warm-up phase (discard ≥10 iterations).
- The script MUST run ≥100 iterations and output the Average and P95 execution time.
- Run the script using the terminal.
- Delete the temporary script after recording the results.
- Note: If the script fails due to missing imports or dependencies, skip it and use the bash
timecommand as a fallback.
- Record P95 and Average. Do not proceed until the benchmark runs without error.
- Report baseline numbers before writing any new code.
Phase 2 — Algorithmic Analysis
- State the current Time Complexity (Big-O) explicitly.
- State the current Space Complexity and identify the primary allocation sites.
- Name the bottleneck precisely:
- "Nested loops causing O(n²) scaling"
- "Repeated string concatenation causing N heap allocations per call"
- "Full table scan caused by missing index on
user_id"
Phase 3 — Refactoring
- Rewrite using a more efficient algorithm or data structure (apply in priority order):
- Replace Array/List lookups with Hash Sets/Dictionaries: O(N) → O(1)
- Vectorization or batching instead of per-item iteration
- Caching/memoization of expensive pure computations
- Zero-allocation patterns and buffer reuse to reduce GC pressure
- Bitwise operations where mathematically equivalent
- Run the benchmark on the new code.
- If the new code is not measurably faster: discard it, select a different approach, repeat.
Phase 4 — Report
Present a Performance Report table:
| Metric | Baseline | Optimized | Δ |
| Average | Xms | Yms | -Z% |
| P95 | Xms | Yms | -Z% |
Follow with a one-paragraph explanation grounded in CPU/memory theory.
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.

