Tw lift

From SDiamante13/dotfiles · View interactive version

Tw lift is an AI agent skill from the GitHub repository SDiamante13/dotfiles. Comprehensive, measurement-driven performance optimization for latency, throughput, memory/GC, and tail behavior. Use when the user asks to optimize/speed up, reduce latency (p95/p99), increase throughput/QPS, lower CPU/memory/allocations/GC pauses, profile hot paths, or run a benchmarked perf pass

How to use this skill

Skill file

Lift

Intent

Deliver aggressive, measurement-driven performance improvements (latency/throughput/memory/GC/tail) with correctness preserved and regressions guarded.

Double Diamond fit

Lift lives in Define -> Deliver:

Hard Rules

Default policy (non-interactive)

Goal: stay autonomous without inventing SLOs.

Mode selection (measured vs unmeasured)

If you can run a proof workload, operate in measured mode. Otherwise operate in unmeasured mode.

Contract derivation

If the user did not provide a numeric target:

Metric defaults (pick one):

Workload selection (proof signal)

Pick the first runnable, representative workload you can find:

  1. User-provided repro/command.
  2. Existing repo benchmark/harness (README, scripts, Makefile/justfile/taskfile).
  3. A minimal harness around the hot path (microbench) plus a correctness signal.

Stop and ask only if you cannot find or create any runnable proof workload without product ambiguity.

Experiment hygiene

Workflow (Opinionated)

  1. Preflight
  1. Performance contract
  1. Baseline
  1. Locate the bottleneck
  1. Choose the highest-leverage lever
  1. Run tight experiments (loop)
  1. Ship with guards
  1. Report

Decision Gates

Deliverable format (chat)

If unmeasured, prefix the response with UNMEASURED: <reason> and fill sections with a concrete measurement plan (no claimed deltas).

Output exactly these sections (short, numbers-first):

Performance contract

Baseline

Bottleneck evidence

Experiments

Result

Regression guard

Validation

Residual risks / next steps

lift_compliance: mode=<measured|unmeasured>; workload=<yes|no>; baseline=<yes|no>; after=<yes|no>; correctness=<yes|no>; bottleneck_evidence=<yes|no>

Core References (Load on Demand)

Assets

Output Expectations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.