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

race

Skill1 starsChanged 26 days agoMITView on GitHub

Build, integrate, audit, benchmark, and improve RACE (Runtime Adaptive Configuration Engine), the hardware-aware application optimization engine. Use for application optimization that adapts application-internal behavior to detected hardware capabilities and real workloads, for example adaptive CPU/GPU path selection, thread and cache budgets, bounded benchmarking, and safe rollback inside an app. Not for changing device, OS, driver, BIOS or firmware settings, and not for generic hardware-independent cleanup (that is the separate /optimize command).

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. JayPokale/farmout★ 2same name
    2. fennih/hunterkit★ 0same name

    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.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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
  1. Distinctive:

    If the line above is empty, inspect the project and pick the most sensible mode, and say which mode you chose and why.

    line 12
  2. Distinctive:

    Safe fallback always: Every accelerated path needs a correct portable fallback.

    line 19
  3. Distinctive:

    AI features are opt-in: Add no model, hosted API, agent, or AI dependency unless the developer explicitly selects it.

    line 21
  4. Distinctive:

    Add tests: capability fallbacks, invalid config, cancellation, privacy defaults, workload transitions, rollback.

    line 50
  5. Distinctive:

    Document install, tunables, platforms, privacy behavior, limitations.

    line 53
  6. Distinctive:

    If the app lacks the APIs or tunable parameters for a safe runtime, report that and implement only what is genuinely supportable.

    line 55
  7. Distinctive:

    No loading screen: passive observation only.

    line 60
  8. Distinctive:

    After work, report: files changed, tests run and results, measurements with workload and conditions, confidence labels, untested areas, …

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

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

/race: Runtime Adaptive Configuration Engine

RACE makes an application adapt its OWN behavior (registered settings, algorithms, scheduling, caches, budgets, code paths) to the hardware it runs on and the workloads it really executes. It is built into the target application, inspected by evidence, and always reversible.

Requested mode: $ARGUMENTS If the line above is empty, inspect the project and pick the most sensible mode, and say which mode you chose and why.

Non-negotiable rules

  1. Never change the device. No BIOS/UEFI, firmware, clocks, voltage, power or fan, OS power plan or scheduler, registry/kernel/services, driver or global graphics settings, system-wide environment or startup items, or other apps' settings. RACE only reads capabilities through supported, permissioned interfaces and changes the host app's own registered tunables. Reject requests to tune the device as out of scope. Details: references/core/race-overview.md.
  2. Preserve the application. Zero known functional regressions; keep documented and observed contracts (features, APIs, file formats, security, privacy, accessibility, localization, offline, sync). Never remove, stub or degrade a feature or quality setting to win a benchmark. Never claim proven 100% equivalence.
  3. Evidence over assumption. Measure. Label each claim as verified fact, benchmark, estimate, hypothesis or unknown. Never fabricate benchmark data. Hardware specs are hints, not performance results. Unknown stays unknown.
  4. Safe fallback always. Every accelerated path needs a correct portable fallback. No detection means safe baseline.
  5. Privacy by default. Local only, no telemetry unless the developer explicitly opts in with disclosure and retention controls.
  6. AI features are opt-in. Add no model, hosted API, agent, or AI dependency unless the developer explicitly selects it. Optimizing a pre-existing AI pipeline is in scope; adding a new vendor, model or service is not.
  7. Stay separate from /optimize. /race is for hardware-aware adaptation. Universal, device-independent cleanup belongs to the separate /optimize command; do not call or imitate it here, and tell the user to run it explicitly if that is what they need.
  8. No destructive or external actions (reset, clean, force-push, publish, deploy, PR, telemetry upload) without explicit authorization. Inspect first; never discard the user's uncommitted work.

Mode routing

ModeWhat to do
auditRead-only fit assessment. No code changes.
build / integrateDesign and implement an initial RACE integration (workflow below).
benchmarkRun the app's existing defined benchmarks, or explain exactly what is missing. Never invent results.
statusReport integration state, active profile, recent observations, missing capabilities. Expose no sensitive data.
improveImprove an existing RACE implementation while preserving its public contract.
reviewReview a RACE patch/config for safety, correctness, performance.
(empty or free text)Inspect, choose the mode, explain the detected state.

Default workflow (build / integrate)

  1. Inspect repo state, uncommitted changes, docs, license, language/framework/build/test setup. See project-detection.
  2. Classify app types, languages, frameworks, architecture, platforms (multiple allowed). Use references/INDEX.md to select references.
  3. Find existing profiling, settings, telemetry, logging, benchmark and feature-flag mechanisms.
  4. Identify real workloads and bottlenecks. Never infer bottlenecks from hardware specs alone. See workload-analysis.
  5. Load only relevant references (routing table below).
  6. Produce a concise integration design and list decisions needing developer approval. See developer-integration-decisions: optional manual "Benchmark & Optimize" button (recommended default: no), small temporary optimization notice (recommended default: yes), additional AI features (default: none), objectives that must never be traded away, supported platforms. Skip questions the project already answers.
  7. Define a minimal tuning registry with safe defaults. See tuning-registry and schemas/.
  8. Implement capability detection with supported APIs for the stack. See the hardware references listed in references/INDEX.md.
  9. Implement passive profiling and startup-aware scheduling. See profiling-levels, scheduling-and-idle-detection.
  10. Implement the bounded benchmark coordinator only where the app has meaningful test workloads. See benchmarking-methodology.
  11. Implement adaptive selection, profile storage, user controls (pause/disable auto profiling, restore last-known-good) and rollback. See adaptive-selection, rollback-and-recovery.
  12. Add tests: capability fallbacks, invalid config, cancellation, privacy defaults, workload transitions, rollback. Use templates/ contracts.
  13. Build and run the app; verify real workflows, not tests alone when runtime verification is possible.
  14. Measure before and after; report actual results and uncertainty.
  15. Document install, tunables, platforms, privacy behavior, limitations.

If the app lacks the APIs or tunable parameters for a safe runtime, report that and implement only what is genuinely supportable. Do not build a decorative "optimization engine".

Timing rules (summary; full text in the profiling and scheduling references)

  • Loading screen: only minimal capability detection and startup timings, within a strict budget. Never prolong loading.
  • No loading screen: passive observation only; no heavy benchmark before 30 minutes of CUMULATIVE foreground use, and then only when idle and safe.
  • Daily use: low-overhead metrics, no daily full benchmark. Re-calibrate only on major app update, runtime/driver/API capability change, persistent regression, changed workload profile, or explicit user request.
  • Benchmark target roughly 5 to 10 minutes of active work, bounded, pausable, abortable.

Reference routing (load only what applies)

NeedLoad
Overview, boundariesreferences/core/race-overview.md
Which references applyreferences/INDEX.md
CPU, ISA, dispatchreferences/hardware/cpu-intelligence.md, instruction-sets-and-dispatch.md; vendor files only if relevant
GPUreferences/hardware/gpu-intelligence.md plus the vendor file for the detected GPU
Memory, storage, platform, thermal, media, NPUmatching file in references/hardware/
Workload classone file in references/workloads/
App categoryone file in references/applications/
Language / framework / architecture / buildmatching file in references/languages, frameworks, architectures, compilers-and-build
Testing, budgets, data, compatibilityreferences/quality/
Extend knowledgereferences/core/knowledge-expansion.md
Contributing to someone else's projectreferences/core/open-source-contribution.md
Backend/server componentreferences/server-integration.md

Schemas live in schemas/ (validate records with scripts/validate_records.py). Stack-neutral contracts and an executable reference model live in templates/; they are contracts to adapt, not universal runtime code.

Reporting

After work, report: files changed, tests run and results, measurements with workload and conditions, confidence labels, untested areas, risks, rollback method, and decisions still needing the developer. 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.