optimize
Skill2 starsChanged 4 months agoMITView on GitHub
Find and fix performance bottlenecks in a function, file, or hot path — slow loops, N+1 queries, redundant work, bad complexity, excess allocations. Use when the user says "optimize this", "this is slow", "improve performance", "speed this up", "why is this slow", or "reduce latency/memory".
78 other projects use a version of this.
Adopted by
Most recently taken up by
- ffroliva/gflow-clitheir own version, first seen Nov 15, 2026
- localixai/tokendoctortheir own version, first seen Nov 15, 2026
- theexperiencecompany/gaiatheir own version, first seen Nov 13, 2026
- ansvisor/ansvisortheir own version, first seen Nov 8, 2026
- ai-search-guru/getcito-worlds-first-open-source-aio-aeo-or-geo-tooltheir own version, first seen Nov 8, 2026
- Mrbaeksang/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use arrange, teach-impeccable 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.
HK-hubSkillarrange
Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.
Also in 14 projects that use this
HK-hubSkillteach-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 17 projects that use this
zwy123zwySkillnormalize
将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。
Also in 19 projects that use this
open-coder-aiSkillpolicy-init
Create conformant Chock policy from request. args(request, target_path,
Also in 3 projects that use this
- +8 more from HK-hub
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 78
- Z3Prover/z3★ 13ksame name
- highcharts/highcharts★ 13ksame name
- whitecircle/halo★ 851same name
- hacan359/tonkatsu_box★ 597same name
- talesofai/cohub★ 585same name
- ai-search-guru/getcito-worlds-first-open-source-aio-aeo-or-geo-tool★ 432same name
- nexmoe/DayBee★ 424same name
- nexmoe/eve★ 424same name
- ffroliva/gflow-cli★ 396same name
- Southclaws/storyden★ 348same name
68 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 repository68 other files it gives its agents.
- a11ySkill
- api-docsSkill
- audit-logSkill
- benchmarkSkill
- bisectSkill
- cacheSkill
- changelogSkill
- cherry-pickSkill
- ci-setupSkill
- codeownersSkill
- commit-messageSkill
- connection-poolSkill
- contributingSkill
- coverageSkill
- db-migrateSkill
- dead-codeSkill
- debugSkill
- depsSkill
- diagramSkill
- dockerizeSkill
- docstringSkill
- e2eSkill
- env-exampleSkill
- error-handlingSkill
- explainSkill
- feature-flagSkill
- flaky-testSkill
- gitignoreSkill
- graceful-shutdownSkill
- graphqlSkill
- healthcheckSkill
- i18nSkill
- idempotencySkill
- licenseSkill
- lint-fixSkill
- loggingSkill
- migrateSkill
- mockSkill
- onboardSkill
- paginationSkill
- pr-descriptionSkill
- pre-commitSkill
- profileSkill
- prune-branchesSkill
- rate-limitSkill
- readmeSkill
- rebaseSkill
- refactorSkill
- regexSkill
- releaseSkill
- resolve-conflictsSkill
- retrySkill
- review-diffSkill
- scaffoldSkill
- secrets-scanSkill
- security-headersSkill
- seedSkill
- soft-deleteSkill
- sqlSkill
- squashSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 75 edited versions we read keep these.
3
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 23
Verify: Run the tests to confirm correctness.
- Distinctive: line 27
Never trade correctness for speed.
- Distinctive: line 28
Don't micro-optimize readable code for negligible gains — call it out if the bottleneck is elsewhere (or not worth fixing).
“Common” is measured: kept by at least 6 in 10 of the 75 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
Test setup (used to confirm behavior is preserved after optimizing)
!ls package.json pyproject.toml Cargo.toml go.mod Makefile 2>/dev/null
Instructions
Optimize the target in $ARGUMENTS. If no target is given, ask what's slow and how it's measured (input size, latency observed, profiler output).
Method — measure, don't guess
- Establish the cost. Identify what "slow" means here: time complexity, query count, allocations, I/O, or wall-clock. Use any profiler output, benchmark, or timing the user has. If none exists, reason explicitly about the dominant cost — and say it's an estimate.
- Find the real bottleneck. Read the hot path and locate where the time/memory actually goes. Common culprits: nested loops (O(n²)), N+1 queries, repeated work that could be hoisted or memoized, unnecessary copies/allocations, sync I/O in a loop, missing indexes, reprocessing unchanged data.
- Optimize the dominant cost first. A 10× win on 5% of runtime is noise. Target the part that actually dominates. Prefer algorithmic/structural wins (better data structure, batching, caching) over micro-tuning.
- Preserve behavior. The optimized code must produce identical results. Keep the public interface stable.
- Verify. Run the tests to confirm correctness. If a benchmark exists, run it before and after and report the delta; otherwise explain the expected improvement (e.g. "O(n²) → O(n log n)").
Rules
- Never trade correctness for speed. Flag any change that alters edge-case behavior.
- Don't micro-optimize readable code for negligible gains — call it out if the bottleneck is elsewhere (or not worth fixing).
- Note any trade-offs introduced (added memory for caching, added complexity, eventual consistency).
- End with: what was slow, what you changed, and the measured or expected impact.
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.

