/dstack-performance:optimize-extremelyfrom DStack Performance
Runs a measured-floor optimization campaign against a named subsystem, rebuilding hot units with justified floors and grading cold units. For targeted performance work, not single-bottleneck fixes or read-only analysis.
Ships in DStack Performance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill runs a measured-floor campaign against a named subsystem: every hot unit gets rebuilt against a justified floor with a proven win, and every cold unit gets graded before the run counts as complete. Work one target at a time in ranked order inside the authorized scope. Half rebuilt is the forbidden state. Finish a target or revert it. Scope equals the ask: never escalate a named target into a repository-wide campaign, and never widen a bare invocation into repository-wide work without explicit opt-in.
This skill replaces the historical extremely-optimize spelling. The old slug is a provenance name only. No alias survives. A single bottleneck fix belongs to optimize, and read-only analysis belongs to fastopt or fastopt-extreme. Naming a peer never executes its procedure.
Everything here is reversible and local. The write surface is exactly the VCS-tracked source-target set shown before mutation, plus .outline/optimize/<target/>. Rollback is version control. There is no remote mutation, no credentials, no paid services, no deployment, and no inferred repository-wide scope. One winning concern lands per atomic commit. Non-wins are reverted. Residue is deleted.
Before dispatching candidates, read references/lenses.md. Before recording or resuming a run, read references/state-and-resume.md. When selecting or constructing instrumentation, read references/tooling.md. Read references/experiment-mode.md only when the request explicitly selects its broader measurable search space. .outline/optimize/<target/> is the runtime evidence namespace for run records, baselines, candidate reports, rankings, gates, integrated measurements, and native harnesses. It is an evidence location, never a callable skill alias. Never rewrite existing run records incidentally to a cutover.
You need a named subsystem, path, symbol, diff, or otherwise resolvable target. Repository-wide work requires explicit opt-in. You also need one representative runnable workload exercising the target with at least one second of wall clock, supplied or constructed before measurement begins, plus the repository-native verifier, supplied or discovered before any target lands. Optional explicit user limits on time, attempts, spend, or marginal gain bind when supplied. No defaults are implied. Boundary answers must arrive before any mutation touches a boundary surface, including candidate worktrees.
.outline/optimize/<target/>. Record the exact tracked source-target set, evidence paths, run-created worktrees, and any necessary native harness locations before mutation. Preserve user changes. Rollback undoes this run's changes, never the whole target or unrelated commits. Move on once one target, its exact source set, workload, and verifier are resolved and bounded.hyperfine --warmup 3 --min-runs 10 '<cmd>' on a release build with representative inputs and the same workload used throughout. Record median, standard deviation, minimum, and maximum, with variance reported. Accept a baseline only with standard deviation below 20 percent of median. This single strict condition applies everywhere in the campaign and its references. Record the top self-time function or widest plateau as the hot-path locator. A unit is hot when it holds at least 5 percent of measured time or its call count scales with input size as confirmed by instrumentation. Sampling disagreement never erases the call-count case. Write both hot and cold lists. Move on once a stable baseline and both lists are recorded, or the run ends noisy or with no measurable hotspot.eval, never as unsupported prose. Divide measured cost by floor for headroom. A unit within 2x of its justified floor is finished. Move on once every hot unit has its contract, floor arithmetic, headroom multiple, and within-2x verdict recorded.algo, data, cache, concur, arch. For a single function under 50 lines with one evident concern, report auto-skip and run a reported single-candidate search, never a proof exemption. After reporting, candidates are read-only. Move on once five isolated candidates are dispatched, or the auto-skip single search is reported.speedup_ratio * behavior_safety * (1 - readability_cost * 0.3), where exact behavior is 1.0, a confirmed approximation is 0.7, and unsafe or undisclosed behavior is 0.0. An approximation is viable only when the request authorizes it and the changed contract is confirmed. Otherwise reject it. Rank winner and runner-up and append the ranking. Move on once scores, ranks, and the appended ranking are recorded, or the run ends with no viable candidate.baseline_median / integrated_median < 1.05. Run the repository verifier and cover every essential behavior no test reached. Move on once the integrated measurement proves at least 1.05x with behavior covered, or the target is restored with the blocker recorded.fixed naming the cost that fell, at-floor, or left with its reason. A rejected complexity-for-microseconds proposal is always left, never fixed or at-floor. Consider retained memory, allocations, repeated I/O, larger-input complexity, startup and build cost, artifact size, and dependency weight. Perform necessary cold fixes with their relevant proof now. Keep independent concerns in separate atomic commits. Revert any unfinished current concern without undoing already completed valid commits. Move on once every cold unit has its verdict with reason, and every authorized cold fix carries its proof.agent-* worktrees. Preserve the log and benchmark evidence. Append the authoritative terminal run record with status and class. Exit 0 is possible only after the full target contract, including cold dispositions, is satisfied. Move on once concerns are landed atomically, residue is gone, evidence is preserved, and the terminal record is appended.references/state-and-resume.md for all recording and resume. Resume only when the target, revision, and workload fingerprint matches and a fresh baseline falls inside the recorded standard-deviation band. Then reuse valid completed candidates and run only missing work, never auto-retrying a completed failed candidate unchanged. Preserve stale records and append a new run instead of truncating. Every clean terminal outcome appends its terminal status and class. An in-progress record as the last line alone means a genuine crash. Move on once recording, resume, staleness, and terminal-status rules are honored.references/tooling.md for profiler and harness selection. Benchmark instrumentation outside .outline/ is permitted only at the predeclared native harness locations. Remove run-created temporary instruments after preserving reproducible measurement evidence. Retain intentional regression coverage. Move on once instrumentation is selected, placed, and cleaned per the reference.references/experiment-mode.md only for an explicitly named measurable configuration, threshold, preprocessing, or similar search target. Keep harness-before-hypotheses, variance checks, immediate durable results, crash markers, batch strategy digests, backlog updates, dependency approval, degeneracy checks, rubric-specific evaluation, stratified samples, and diagnostic metrics. Append evaluation transitions keyed to an experiment rather than rewriting its original measured record. Reconstruct best state from events. A paid or remote judge is outside local authority, so never invoke one merely because the reference describes a judge rubric. Move on once the extension runs only under its explicit selection with append-only outcomes, or is not used.Continue while the authorized objective remains reachable and investigation makes verified progress. No default maximum promotion attempts, no default experiment count limit, no automatic plateau termination, and no default marginal-gain stopping threshold apply. The 1.05x integrated gate, the 2x floor classification, and the measurement-noise condition are proof criteria, never round caps. Diagnose recurring failures rather than retrying them identically. Explicit user time, attempt, spend, or marginal-gain limits bind. Reaching one with work outstanding yields an incomplete result with evidence and a safe tree, never success.
A target that has not reached the done predicate is reverted to its pre-campaign state. No half-rebuilt target remains. Non-wins and untargeted work are reverted. Never swallow an error or pretend the done predicate holds.
On success return exit 0 with the commit identifiers, target, selected lens, benchmark command, baseline and integrated statistics, measured speedup, behavior-gate verdicts, repository checks, cold-path verdicts, and durable log path. On failure return the exact terminal class, unchanged or rolled-back target state, measurements obtained, and the precise blocker. Never report a worktree-only result as a landed win.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gosuda/dstack-skills --plugin dstack-performance8 skills in this plugin
/cpu-kernel-authoringUse when writing, optimizing, or benchmarking a C++ CPU kernel with AVX2 or AVX512 intrinsics for the Hugging Face kernels ecosystem. Not for CUDA kernels./decoded-memo-retentionUse when a query-scoped decoded-block cache is bounded only by serialized work bytes, or when fallback paths retain many decoded blocks. Not for total-process memory promises: this skill never claims a process-wide bound./fastoptUse when a suspected hot path needs read-only hypotheses and benchmark designs, without waiting for benchmarks and without a code change. Not for a single measured fix: use optimize. Not for estimated hot and cold analysis: use fastopt-extreme. Not for measured-floor campaigns: use optimize-extremely.Other plugins' skills for the same job