Run a deliberately extreme target (100x faster, half the code, every fixed bug as a test, every invariant checked) with guardrails that stop fake wins.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Stretch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/umararshad4-stretch)
---
name: stretch
description: "Run a deliberately extreme target (100x faster, half the code, every fixed bug as a test, every invariant checked) with guardrails that stop fake wins."
disable-model-invocation: true
license: MIT
metadata:
reviewed: "2026-12-04"
sources: "practitioner 'deliberately unreasonable prompt' pattern (ideas, unproven); Sakana AI 'AI CUDA Engineer' Feb 2025 correction, where reported 10-100x kernel speedups came from an evaluation loophole (cautionary case for self-graded targets)"
---
# Stretch
An extreme target rules out small tweaks and forces a rethink of the design. It also tempts the agent to fake the win: weaken a test, game a benchmark, round up a number. This skill keeps the ambition and removes the self-grading. The target is a direction, not a promise; the report carries the measured number, whatever it is.
## Targets
| Ask | Goal | Routes to |
|---|---|---|
| `speed` | make the named path 100x faster | `perf` |
| `delete` | delete half the code with identical behavior | `review` (debt scan), `architecture` |
| `bugs` | turn every fixed bug in history into a permanent test | `tdd`, `test-design` |
| `invariants` | find implicit invariants; check them or find counterexamples | `test-design`, `statechart` |
No target named: ask once which one, naming these four. Scope it to one module, path or subsystem; "the whole repo" never finishes.
## 1. Lock the baseline
Before changing anything, record in `honey task set` or the working notes:
- The exact command that measures the target and its output now: timing (repeated, median), line count (`git ls-files | xargs wc -l`, excluding vendored and generated files), the fix-commit list, or the invariant list.
- The full test command and its result. A red baseline is fixed or written down first; it is never blamed on the stretch later.
- The commit SHA the baseline was taken on.
Done when: a second person could rerun the baseline from the notes alone.
## 2. Guardrails (all targets)
- Do not edit, delete, skip or loosen a test or benchmark that covers behavior that still exists. Changing the measuring instrument voids the result.
- Deleting a test is allowed only together with the code it covers, and the report lists both.
- Removing a user-visible feature, flag, CLI option or config key is a product decision: stop and ask. "Identical behavior" means callers and users cannot tell.
- No caching, short-circuiting or special-casing that only fires on the benchmark input.
- Measure with the same command, machine and repeat count as the baseline.
## 3. Attack
**speed** — profile first (`perf`); name the top cost before touching it. Go for structural wins: avoid the work, do it once, change the algorithm or data layout, move it off the hot path. A 100x claim needs a new design, not tuning. Stop at the first point where the remaining cost is outside the code (process start, network, disk) and say so.
**delete** — candidates in order: unreachable code (no callers, verified by search and tests), duplicated logic with one surviving copy, flags and branches that are always one value, wrappers that only forward, dependencies replaceable by a few stdlib lines. Delete in small commits; run the full suite after each. Deleting a test that only covers the removed code is fine and listed in the report; a deletion that makes any other test change or fail is a behavior change: revert it or ask.
**bugs** — list fix commits (`git log --oneline --grep='^fix' -i`, plus linked issues). For each: read the diff, write the smallest test that fails on the parent commit and passes on the fix, and confirm both by checking out the parent in a scratch worktree. Prefer a property over a single example when the bug was about a class of inputs. Bugs already covered by an existing test are listed, not duplicated. Bugs that cannot be reproduced (environment, external service) are listed with the reason.
**invariants** — read the code for rules it relies on but never states: ordering, uniqueness, "never empty", "never blocks", "count matches", idempotency. Write each as one sentence with its source location. Check each with a property or fuzz test over generated inputs; use `statechart` only for ordering or concurrency. A formal proof is out of scope unless the user asks; "checked within these bounds" is the honest claim. A counterexample becomes a failing test, then goes to `debug`.
## 4. Report
Lead with the measured result against the baseline, from the same command:
```
stretch: speed · target 100x · measured 6.8x (412 ms → 61 ms, median of 10)
baseline <sha> · <command>
changes <commits>
tests <command> · passed · no test edited
stopped at <what limits further gains>
```
Use the same shape for `delete` (lines before → after, files removed, tests removed with the code they covered), `bugs` (fixes found, tests added, already covered, not reproducible) and `invariants` (stated, checked with bounds, counterexamples). Missing the target is a normal outcome; reporting it plainly is the point. Never round up, never report the target as the result, and never describe an unmeasured gain.