Ultraperf
This is an OMH ultraperf workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
ultraperf exists because most performance work starts unlocalized: something is slow, leaking, or expensive and nobody knows where. It forces measurement before edits, one hypothesis at a time, executor-owned changes, and a regression budget, so an optimization loop cannot end in unverified claims.
Do Not Use When
- Metric, baseline, budget, and benchmark command are already declared for one measurable goal; use
performance-goal.
- The ask is to judge code quality, structure, or correctness rather than measured cost; use
code-review.
- The ask is to score model or agent output quality on a task suite; use
agent-evaluation.
- The request is a settings-only change, one bounded edit that is explicitly low-risk and has a direct owner and verification path, or one already-identified slow query or hotspot fix; handle it directly instead of opening a performance loop.
Examples
Good example:
- Prompt: $ultraperf checkout feels slow and the worker memory keeps climbing - find where and fix it
- Expected behavior: Audit the baseline, name the evaluator command, rank hot-path hypotheses, hand the smallest reversible fix to the selected executor, re-measure, and state the budget delta.
- Why: The problem is real but unlocalized across more than one domain.
Bad example:
- Prompt: $ultraperf make the recommender p95 under 200ms; baseline 340ms, benchmark is 'make bench'
- Expected behavior: Route to
performance-goal, which owns a declared metric/baseline/budget/benchmark goal.
- Why: A single declared measurable goal does not need a discovery loop.
Completion Checklist
- Baseline, workload, environment, and evaluator command are recorded before any edit is proposed.
- Each accepted fix names the measured hot path, the reversible change, and its owner.
- Re-measured deltas cite observed evidence; unmeasured steps stay not_observed.
- The regression budget and the gate that enforces it are stated with the tolerance.
Recovery Notes
- If no evaluator command exists, stop the loop and produce one before touching code.
- If the re-measure does not move, revert the change and re-rank hypotheses instead of stacking fixes.
- If the goal turns out to be one declared metric with a budget, hand off to
performance-goal.
Use When
Use when performance problems are suspected but not yet localized, or when several cost hotspots across domains need a measured inspect-and-fix loop.
Strong routing signals: `ultraperf`, `$ultraperf`, `ulw-perf`, `performance audit`, `performance bottleneck`, `find the bottleneck`, `profile the hot path`, `memory leak investigation`, `token cost hotspot`, `storage footprint audit`, `rendering jank`, `model inference hotspot`, `slow ci pipeline`, `query performance audit`, `성능 병목`, `메모리 누수`, `느려진 원인`, `성능 전반 점검`
Catalog Metadata
Category: optimization
Phase: measured-optimization-loop
Quality tier: measurement-gated
Reasoning demand: heavy
Quality bar:
- Record a baseline and name the evaluator command before proposing any optimization edit.
- Attack only a hot path shown by a measurement or profile; never micro-optimize unmeasured code.
- Keep every fix the smallest reversible change and route code edits to the selected executor.
- Re-measure after each change and report deltas only from observed evidence.
- Never present a restart, cache flush, or resource bump as a leak fix; prove causation by revert-verify.
- Set the regression budget as baseline x (1 + tolerance) and name the CI gate that enforces it.
- A mid-run user message is an interjection, not a stop: answer it briefly and, in the same reply, continue the run — re-read the phase todo when one is active and dispatch or advance the next pending step, or name the armed wait it is waiting on -- handle, bound completion signal, deadline -- instead of re-reading status. Only the user's explicit stop or cancel, or the engine's own completion gate, ends the run; when the interjection changes scope, say so and update the declared plan or todo instead of silently abandoning it. A mid-run message is the latest steering for the active task, not automatically a replacement objective: it replaces the objective when the user says so and steers the current one otherwise.
- A follow-up that needs new authority, materially expands the scope, or changes external state not already authorized is described first and started only on the user's approval; persistence never broadens the authorized scope. A refused escalation gets a safer alternative inside the boundary, or the authorization the boundary asks for — never a workaround or an indirect execution.
- The closing brief scales to the change: one or two sentences plus the observed validation for a simple change, more only when the complexity earns it. Lead with the result or decision; omit abandoned approaches unless they explain a tradeoff the reader needs; narrate no internal bookkeeping (todo transitions, follow-up declarations, waits). Required closing lines stay outside this scaling: the observed run summary, and any prepared-not-observed or unmerged work, are stated whatever the brief's length.
Required inputs:
- symptom or suspected slow surface
- workload or reproduction
- runnable evaluator or measurement command
- acceptable tolerance
Expected outputs:
- baseline record
- ranked hot-path hypotheses
- smallest reversible fix handoff
- re-measured delta
- regression budget and gate
Artifact expectations:
- baseline measurement record
- final profile or benchmark evidence
- budget delta with tolerance
Safety rules:
- Do not claim a profile, benchmark, measurement, or CI budget gate ran without observed evidence.
- Do not begin optimization edits before an evaluator command and its pass/fail contract exist.
- Ask for the workload, environment, and acceptable tolerance before declaring a budget.
Runtime Evidence
Use the current host's own tools and subagent/task mechanism when available;
otherwise run the same lanes sequentially or name the unavailable capability.
A prepared plan, handoff, checklist, or skill installation is not execution,
review, CI, merge-readiness, or merge evidence. Report actual tool results or
not_observed / not_available; never invent dispatch or host accounting.
Treat supplied context as advisory, not proof of hidden memory reads or writes.
State scope, constraints, verification, and the stop condition before work.
Supporting paths are relative to this skill directory; sibling skill paths are
relative to its parent. Resolve them from the host-provided skill base directory
({baseDir} on hosts that provide it), never a hardcoded install location.
A named workflow not installed here is unavailable, not permission to emulate
its host-specific capabilities. Verify through the real surface before done.
1---2name: ulw-perf-23description: [omh] Ultraperf - find where a system is actually slow, leaking, or expensive across runtime, memory, token cost, storage, rendering, inference, CI, and query domains, then fix one measured hot path at a time behind a regression budget. Use when the user says: ultraperf, ulw-perf, performance audit, performance bottleneck, find the bottleneck, profile the hot path, memory leak investigation, token cost hotspot.4---56# Ultraperf78This is an OMH `ultraperf` workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).910## Why This Exists1112`ultraperf` exists because most performance work starts unlocalized: something is slow, leaking, or expensive and nobody knows where. It forces measurement before edits, one hypothesis at a time, executor-owned changes, and a regression budget, so an optimization loop cannot end in unverified claims.1314## Do Not Use When1516- Metric, baseline, budget, and benchmark command are already declared for one measurable goal; use `performance-goal`.17- The ask is to judge code quality, structure, or correctness rather than measured cost; use `code-review`.18- The ask is to score model or agent output quality on a task suite; use `agent-evaluation`.19- The request is a settings-only change, one bounded edit that is explicitly low-risk and has a direct owner and verification path, or one already-identified slow query or hotspot fix; handle it directly instead of opening a performance loop.2021## Examples2223Good example:2425- Prompt: $ultraperf checkout feels slow and the worker memory keeps climbing - find where and fix it26- Expected behavior: Audit the baseline, name the evaluator command, rank hot-path hypotheses, hand the smallest reversible fix to the selected executor, re-measure, and state the budget delta.27- Why: The problem is real but unlocalized across more than one domain.2829Bad example:3031- Prompt: $ultraperf make the recommender p95 under 200ms; baseline 340ms, benchmark is 'make bench'32- Expected behavior: Route to `performance-goal`, which owns a declared metric/baseline/budget/benchmark goal.33- Why: A single declared measurable goal does not need a discovery loop.3435## Completion Checklist3637- Baseline, workload, environment, and evaluator command are recorded before any edit is proposed.38- Each accepted fix names the measured hot path, the reversible change, and its owner.39- Re-measured deltas cite observed evidence; unmeasured steps stay not_observed.40- The regression budget and the gate that enforces it are stated with the tolerance.4142## Recovery Notes4344- If no evaluator command exists, stop the loop and produce one before touching code.45- If the re-measure does not move, revert the change and re-rank hypotheses instead of stacking fixes.46- If the goal turns out to be one declared metric with a budget, hand off to `performance-goal`.47484950## Use When5152Use when performance problems are suspected but not yet localized, or when several cost hotspots across domains need a measured inspect-and-fix loop.5354 Strong routing signals: `ultraperf`, `$ultraperf`, `ulw-perf`, `performance audit`, `performance bottleneck`, `find the bottleneck`, `profile the hot path`, `memory leak investigation`, `token cost hotspot`, `storage footprint audit`, `rendering jank`, `model inference hotspot`, `slow ci pipeline`, `query performance audit`, `성능 병목`, `메모리 누수`, `느려진 원인`, `성능 전반 점검`5556## Catalog Metadata5758Category: `optimization`59Phase: `measured-optimization-loop`60Quality tier: `measurement-gated`61Reasoning demand: `heavy`6263Quality bar:6465- Record a baseline and name the evaluator command before proposing any optimization edit.66- Attack only a hot path shown by a measurement or profile; never micro-optimize unmeasured code.67- Keep every fix the smallest reversible change and route code edits to the selected executor.68- Re-measure after each change and report deltas only from observed evidence.69- Never present a restart, cache flush, or resource bump as a leak fix; prove causation by revert-verify.70- Set the regression budget as baseline x (1 + tolerance) and name the CI gate that enforces it.71- A mid-run user message is an interjection, not a stop: answer it briefly and, in the same reply, continue the run — re-read the phase todo when one is active and dispatch or advance the next pending step, or name the armed wait it is waiting on -- handle, bound completion signal, deadline -- instead of re-reading status. Only the user's explicit stop or cancel, or the engine's own completion gate, ends the run; when the interjection changes scope, say so and update the declared plan or todo instead of silently abandoning it. A mid-run message is the latest steering for the active task, not automatically a replacement objective: it replaces the objective when the user says so and steers the current one otherwise.72- A follow-up that needs new authority, materially expands the scope, or changes external state not already authorized is described first and started only on the user's approval; persistence never broadens the authorized scope. A refused escalation gets a safer alternative inside the boundary, or the authorization the boundary asks for — never a workaround or an indirect execution.73- The closing brief scales to the change: one or two sentences plus the observed validation for a simple change, more only when the complexity earns it. Lead with the result or decision; omit abandoned approaches unless they explain a tradeoff the reader needs; narrate no internal bookkeeping (todo transitions, follow-up declarations, waits). Required closing lines stay outside this scaling: the observed run summary, and any prepared-not-observed or unmerged work, are stated whatever the brief's length.7475Required inputs:7677- symptom or suspected slow surface78- workload or reproduction79- runnable evaluator or measurement command80- acceptable tolerance8182Expected outputs:8384- baseline record85- ranked hot-path hypotheses86- smallest reversible fix handoff87- re-measured delta88- regression budget and gate8990Artifact expectations:9192- baseline measurement record93- final profile or benchmark evidence94- budget delta with tolerance9596Safety rules:9798- Do not claim a profile, benchmark, measurement, or CI budget gate ran without observed evidence.99- Do not begin optimization edits before an evaluator command and its pass/fail contract exist.100- Ask for the workload, environment, and acceptable tolerance before declaring a budget.101102## Runtime Evidence103104Use the current host's own tools and subagent/task mechanism when available;105otherwise run the same lanes sequentially or name the unavailable capability.106A prepared plan, handoff, checklist, or skill installation is not execution,107review, CI, merge-readiness, or merge evidence. Report actual tool results or108`not_observed` / `not_available`; never invent dispatch or host accounting.109Treat supplied context as advisory, not proof of hidden memory reads or writes.110State scope, constraints, verification, and the stop condition before work.111Supporting paths are relative to this skill directory; sibling skill paths are112relative to its parent. Resolve them from the host-provided skill base directory113(`{baseDir}` on hosts that provide it), never a hardcoded install location.114A named workflow not installed here is unavailable, not permission to emulate115its host-specific capabilities. Verify through the real surface before done.