/fw:optimizefrom fw
Run measured optimization loops. Use for latency, throughput, resource, cost, build, or query improvements that need proof.
Ships in fw. 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.
$fw:optimize is Flywheel's optimization workflow.
Use it when the question is:
This is not a "spray tweaks and hope" skill. It is a measurement-first loop.
Follow ../references/host-interaction-contract.md.
Call the exact host question tool named in
../references/host-interaction-contract.md when that tool is available. Do
not ask for raw 1/2/3 replies when the host already offers a choice surface.
When the workflow spans multiple material steps, use the host task-tracking
tool named in ../references/host-interaction-contract.md to create and
maintain a short task list.
Ask one question at a time. When multiple measurement paths are viable, present the recommended label first and rely on the host's native freeform final path when it exists.
<optimization_input> #$ARGUMENTS </optimization_input>
Interpret the input as one of:
If the input is blank, ask what should be optimized and which outcome matters.
Do not preload every reference. Load only what the current phase needs:
references/provider-selection.md when choosing the measurement source.references/measurement-contract.md when building the optimization
contract.references/datadog-path.md only when the Datadog path is selected.references/lgtm-path.md only when the OTel-native path is selected.references/optimization-loop.md only when execution planning begins.../commit/references/evidence-bundle.md only when a measured result
should be handed off into $fw:review or $fw:commit.../observability/references/service-readiness-matrix.md only when the
optimization target is runtime-risky or blast-radius-sensitive.Keep the stable optimization scaffold first, gather repo and telemetry truth before forming hypotheses, and prefer one measured improvement over a bag of speculative micro-tweaks.
Decide what category of optimization is in scope:
Also classify whether the target is:
Build an optimization ledger from repo truth:
AGENTS.md and CLAUDE.md when presentdocs/solutions/ for prior performance or
reliability learnings.context/flywheel/setup-ledger.md when presentCapture:
If the optimization target is runtime-risky, read
../observability/references/service-readiness-matrix.md and keep the
applicable dimensions visible while optimizing.
Read references/provider-selection.md.
Use repo evidence plus any setup ledger to choose one of these paths:
Selection rules:
If both Datadog and OTel-native surfaces are plausible, first verify which backend is the source of truth for this target. Then pin the environment separately: local dev stack, shared non-production, or production.
Read references/measurement-contract.md.
Before making changes, define:
If you cannot define a trustworthy baseline, stop and build or identify the measurement surface first.
If the selected path is Datadog, read references/datadog-path.md.
If the selected path is OTel-native backed, read references/lgtm-path.md.
Use that guidance to pin:
Read references/optimization-loop.md.
Prefer serial iteration:
Only parallelize experiments when:
For each experiment:
Use local worktrees when isolated iteration will reduce confusion or protect the current checkout.
If the change survives the optimization gate, route through $fw:review and
$fw:commit before calling it complete.
When the measurement result should feed later stages, create or update a shared evidence bundle under:
.context/flywheel/evidence/<bundle-id>/
Keep the shared summary focused on:
Keep bulky raw traces, profiles, or benchmark outputs in their native local location and reference them from the bundle instead of copying them.
Return a concise optimization brief:
not created$fw:work, $fw:review, $fw:commit, or
another optimization iteration@./references/provider-selection.md @./references/measurement-contract.md @./references/datadog-path.md @./references/lgtm-path.md @./references/optimization-loop.md @../commit/references/evidence-bundle.md
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mopeyjellyfish/flywheel --plugin flywheel32 skills in this plugin
/architecture-strategyAssess repo-grounded architecture choices and improvements. Use for boundaries, service splits, dependency direction, or distributed posture./brainstormExplore requirements and approaches. Use for a fuzzy idea, open scope, or one direction that needs sharper behavior before planning./browser-testRun browser acceptance checks with playwright-cli. Use when browser-visible behavior needs fresh proof before review or commit./commitFinish a branch cleanly. Use to verify readiness, make logical commits, push, and create or refresh a PR with evidence.Other plugins' skills for the same job