agentleFS
hrmnisthetuffesthrmnisthetuffest/ultra-optimizer/.claude/skills/optimize/SKILL.md

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

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-hubSkill

    teach-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-hubSkill

    delight

    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

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 18 projects that use this

  • open-coder-aiSkill

    policy-init

    Create conformant Chock policy from request. args(request, target_path,

    Also in 3 projects that use this

  • owshq-mecSkill

    layout

    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

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
  1. Very specific:

    If the line above is empty, run audit first and propose what apply would change.

    line 13
  2. Distinctive:

    Never change the device: No device, OS, firmware, driver or BIOS settings.

    line 18
  3. Very specific:

    Do not invoke or imitate the hardware-aware engine: If the user wants hardware-adaptive runtime behavior, tell them to run the separate …

    line 19
  4. Distinctive:

    No unrequested AI: Add no AI feature, model, agent, service or dependency without explicit developer selection.

    line 20
  5. Distinctive:

    If a good idea fails question 1, record it as "hardware-dependent, out of scope, see /race" and move on.

    line 36
  6. Distinctive:

    Read project instructions.

    line 40
  7. Distinctive:

    Run targeted tests after each meaningful change, broader regression at the end.

    line 48
  8. Very specific:

    When the user asked for apply, do the work with the checks above instead of only recommending.

    line 62

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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

  1. 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.
  2. Never change the device. No device, OS, firmware, driver or BIOS settings.
  3. Do not invoke or imitate the hardware-aware engine. If the user wants hardware-adaptive runtime behavior, tell them to run the separate /race command explicitly. Do not run it yourself.
  4. 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.
  5. 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.
  6. Evidence over assumption. Measure; never fabricate numbers; never promise a specific benefit percentage without data.
  7. 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.

  1. Is it independent of any specific hardware model?
  2. Does it improve a general property (time, memory, size, reliability, clarity)?
  3. Does it preserve platform support and behavior?
  4. Is there evidence or an invariant supporting it?
  5. Are the tradeoffs stated?
  6. 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

  1. Read project instructions; inspect repo state and uncommitted changes. See references/workflow.md.
  2. Identify purpose, target environments, stack, architecture, critical workflows.
  3. Baseline: existing tests, diagnostics, relevant performance data. Use checklists/baseline-capture.md.
  4. Scan for broadly applicable opportunities using references/opportunity-catalog.md and the stack notes in references/stacks.md.
  5. Exclude hardware-specific, model/backend-selection and device-profile changes.
  6. Score by impact, confidence, effort, risk, reversibility. See references/scoring.md.
  7. Reject changes that remove functionality or weaken guarantees.
  8. Implement safe, high-value changes in small increments (mode apply only).
  9. Run targeted tests after each meaningful change, broader regression at the end. Use checklists/regression-checklist.md.
  10. Compare performance only under comparable workloads and conditions. See checklists/performance-comparison.md.
  11. Roll back a failed change safely, touching only your own changes. See checklists/rollback.md.
  12. Report changes, evidence, tests, performance, tradeoffs, remaining opportunities. See references/reporting.md.

Modes

ModeBehavior
auditRead-only: baseline, ranked opportunities, rejected items with reasons. No edits.
applyImplement approved or clearly safe items. Ask before high-risk rewrites, feature removals (generally rejected), data migrations, significant new dependencies, irreversible actions.
reviewReview an existing diff or change set against these rules.
reportSummarize 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.

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.