optimize
Skill1 starsChanged 26 days agoMITView on GitHub
Perform universal, device-independent code and engineering optimization while preserving existing application behavior and functionality.
83 other projects use a version of this.
Adopted by
Most recently taken up by
- strands-agents/evalstheir own version, first seen Nov 30, 2026
- kuni29/claude-skillstheir own version, first seen Nov 29, 2026
- carriegale2710/skills-librarytheir own version, first seen Nov 29, 2026
- tmih06/skillstheir own version, first seen Nov 29, 2026
- www-donghanhcungban-org/X-Templatestheir own version, first seen Nov 29, 2026
- theexperiencecompany/gaiatheir own version, first seen Nov 26, 2026
Used with
Projects with it also use teach-impeccable, delight 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-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 16 projects that use this
HK-hubSkilldelight
Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.
Also in 25 projects that use this
zwy123zwySkillnormalize
将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。
Also in 18 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
owshq-mecSkilllayout
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 7 projects that use this
- +7 more from HK-hub
Other versions83 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 83
- Z3Prover/z3★ 13ksame name
- highcharts/highcharts★ 13ksame name
- whitecircle/halo★ 1.3ksame name
- ffroliva/gflow-cli★ 1.2ksame name
- hacan359/tonkatsu_box★ 622same name
- ai-search-guru/getcito-worlds-first-open-source-aio-aeo-or-geo-tool★ 432same name
- nexmoe/DayBee★ 424same name
- nexmoe/eve★ 424same name
- Southclaws/storyden★ 350same name
- 10xChengTu/Mux0★ 337same name
73 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 repository3 other files it gives its agents.
- ping-optimizeSkill
- raceSkill
- server-optimizeSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 79 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
If the line above is empty, run audit first and propose what apply would change.
- Distinctive: line 18
Never change the device: No device, OS, firmware, driver or BIOS settings.
- Very specific: line 19
Do not invoke or imitate the hardware-aware engine: If the user wants hardware-adaptive runtime behavior, tell them to run the separate …
- Distinctive: line 20
No unrequested AI: Add no AI feature, model, agent, service or dependency without explicit developer selection.
- Distinctive: line 36
If a good idea fails question 1, record it as "hardware-dependent, out of scope, see /race" and move on.
- Distinctive: line 40
Read project instructions.
- Distinctive: line 48
Run targeted tests after each meaningful change, broader regression at the end.
- Very specific: line 62
When the user asked for apply, do the work with the checks above instead of only recommending.
“Common” is measured: kept by at least 6 in 10 of the 79 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
/optimize: Universal, device-independent optimization
This command improves source, algorithms, data structures, architecture, build configuration, dependencies, queries, rendering logic, request patterns, startup code, error handling, tests, docs, accessibility, security, reliability and maintainability, for the application's DECLARED supported environments, without changing what the application does.
Requested mode: $ARGUMENTS
If the line above is empty, run audit first and propose what apply would change.
Hard boundaries
- No live hardware-based decisions. Do not detect the user's CPU/GPU/RAM/storage to choose settings. Do not pick CPU- or GPU-architecture-specific paths from the current machine, choose CUDA/ROCm/Metal/DirectML or any device-specific model/backend, set per-device thread counts or memory budgets, or tune graphics quality. Declared target platforms and versions (from the project's own support policy) are fine.
- Never change the device. No device, OS, firmware, driver or BIOS settings.
- Do not invoke or imitate the hardware-aware engine. If the user wants hardware-adaptive runtime behavior, tell them to run the separate
/racecommand explicitly. Do not run it yourself. - No unrequested AI. Add no AI feature, model, agent, service or dependency without explicit developer selection. Optimizing a pre-existing AI pipeline's device-independent code is allowed.
- Preserve behavior. Zero known functional regressions; keep documented and observed contracts (APIs, file formats, auth, privacy, security, integrations, accessibility, localization, offline, sync). Never remove or degrade a feature, quality setting or safeguard for speed. Never promise proven equivalence.
- Evidence over assumption. Measure; never fabricate numbers; never promise a specific benefit percentage without data.
- Safe and reversible. Small increments, a baseline, a rollback point. No destructive or external actions (reset, clean, force-push, publish, deploy, PR) without authorization. Never discard the user's unrelated work.
Broad-benefit eligibility filter
Implement a change only if all six answers are acceptable. Full text: references/eligibility-filter.md.
- Is it independent of any specific hardware model?
- Does it improve a general property (time, memory, size, reliability, clarity)?
- Does it preserve platform support and behavior?
- Is there evidence or an invariant supporting it?
- Are the tradeoffs stated?
- Can it be tested and rolled back?
If a good idea fails question 1, record it as "hardware-dependent, out of scope, see /race" and move on.
Workflow
- Read project instructions; inspect repo state and uncommitted changes. See references/workflow.md.
- Identify purpose, target environments, stack, architecture, critical workflows.
- Baseline: existing tests, diagnostics, relevant performance data. Use checklists/baseline-capture.md.
- Scan for broadly applicable opportunities using references/opportunity-catalog.md and the stack notes in references/stacks.md.
- Exclude hardware-specific, model/backend-selection and device-profile changes.
- Score by impact, confidence, effort, risk, reversibility. See references/scoring.md.
- Reject changes that remove functionality or weaken guarantees.
- Implement safe, high-value changes in small increments (mode
applyonly). - Run targeted tests after each meaningful change, broader regression at the end. Use checklists/regression-checklist.md.
- Compare performance only under comparable workloads and conditions. See checklists/performance-comparison.md.
- Roll back a failed change safely, touching only your own changes. See checklists/rollback.md.
- Report changes, evidence, tests, performance, tradeoffs, remaining opportunities. See references/reporting.md.
Modes
| Mode | Behavior |
audit | Read-only: baseline, ranked opportunities, rejected items with reasons. No edits. |
apply | Implement approved or clearly safe items. Ask before high-risk rewrites, feature removals (generally rejected), data migrations, significant new dependencies, irreversible actions. |
review | Review an existing diff or change set against these rules. |
report | Summarize prior work: changes, evidence, test results, remaining items. |
When the user asked for apply, do the work with the checks above instead of only recommending.
Checklists and references (load as needed)
- Checklists: baseline-capture, regression-checklist, security-privacy-regression, performance-comparison, rollback, compatibility-and-data
- References: opportunity-catalog, stacks, scoring, reporting, open-source-contribution, server-integration
Reporting
Report: what changed and where, evidence, tests run and results, measurements with conditions, tradeoffs, risks, rollback method, files touched, untested areas, remaining opportunities. Do not say "complete" or "production-ready" unless evidence supports exactly that claim.
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.

