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
- fennih/hunterkittheir own version, first seen Nov 29, 2026
- JayPokale/farmouttheir own version, first seen Nov 29, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- JayPokale/farmout★ 2same name
- 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.
- optimizeSkill
- ping-optimizeSkill
- server-optimizeSkill
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
- Distinctive: line 12
If the line above is empty, inspect the project and pick the most sensible mode, and say which mode you chose and why.
- Distinctive: line 19
Safe fallback always: Every accelerated path needs a correct portable fallback.
- Distinctive: line 21
AI features are opt-in: Add no model, hosted API, agent, or AI dependency unless the developer explicitly selects it.
- Distinctive: line 50
Add tests: capability fallbacks, invalid config, cancellation, privacy defaults, workload transitions, rollback.
- Distinctive: line 53
Document install, tunables, platforms, privacy behavior, limitations.
- Distinctive: line 55
If the app lacks the APIs or tunable parameters for a safe runtime, report that and implement only what is genuinely supportable.
- Distinctive: line 60
No loading screen: passive observation only.
- Distinctive: line 85
After work, report: files changed, tests run and results, measurements with workload and conditions, confidence labels, untested areas, …
≈ “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.
Files
/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
- 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.
- 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.
- 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. - Safe fallback always. Every accelerated path needs a correct portable fallback. No detection means safe baseline.
- Privacy by default. Local only, no telemetry unless the developer explicitly opts in with disclosure and retention controls.
- 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.
- Stay separate from /optimize.
/raceis for hardware-aware adaptation. Universal, device-independent cleanup belongs to the separate/optimizecommand; do not call or imitate it here, and tell the user to run it explicitly if that is what they need. - 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
| Mode | What to do |
audit | Read-only fit assessment. No code changes. |
build / integrate | Design and implement an initial RACE integration (workflow below). |
benchmark | Run the app's existing defined benchmarks, or explain exactly what is missing. Never invent results. |
status | Report integration state, active profile, recent observations, missing capabilities. Expose no sensitive data. |
improve | Improve an existing RACE implementation while preserving its public contract. |
review | Review a RACE patch/config for safety, correctness, performance. |
| (empty or free text) | Inspect, choose the mode, explain the detected state. |
Default workflow (build / integrate)
- Inspect repo state, uncommitted changes, docs, license, language/framework/build/test setup. See project-detection.
- Classify app types, languages, frameworks, architecture, platforms (multiple allowed). Use references/INDEX.md to select references.
- Find existing profiling, settings, telemetry, logging, benchmark and feature-flag mechanisms.
- Identify real workloads and bottlenecks. Never infer bottlenecks from hardware specs alone. See workload-analysis.
- Load only relevant references (routing table below).
- 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.
- Define a minimal tuning registry with safe defaults. See tuning-registry and schemas/.
- Implement capability detection with supported APIs for the stack. See the hardware references listed in references/INDEX.md.
- Implement passive profiling and startup-aware scheduling. See profiling-levels, scheduling-and-idle-detection.
- Implement the bounded benchmark coordinator only where the app has meaningful test workloads. See benchmarking-methodology.
- Implement adaptive selection, profile storage, user controls (pause/disable auto profiling, restore last-known-good) and rollback. See adaptive-selection, rollback-and-recovery.
- Add tests: capability fallbacks, invalid config, cancellation, privacy defaults, workload transitions, rollback. Use templates/ contracts.
- Build and run the app; verify real workflows, not tests alone when runtime verification is possible.
- Measure before and after; report actual results and uncertainty.
- 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)
| Need | Load |
| Overview, boundaries | references/core/race-overview.md |
| Which references apply | references/INDEX.md |
| CPU, ISA, dispatch | references/hardware/cpu-intelligence.md, instruction-sets-and-dispatch.md; vendor files only if relevant |
| GPU | references/hardware/gpu-intelligence.md plus the vendor file for the detected GPU |
| Memory, storage, platform, thermal, media, NPU | matching file in references/hardware/ |
| Workload class | one file in references/workloads/ |
| App category | one file in references/applications/ |
| Language / framework / architecture / build | matching file in references/languages, frameworks, architectures, compilers-and-build |
| Testing, budgets, data, compatibility | references/quality/ |
| Extend knowledge | references/core/knowledge-expansion.md |
| Contributing to someone else's project | references/core/open-source-contribution.md |
| Backend/server component | references/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.
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.

