<< All versions

Skill v1.0.0

currentAutomated scan100/100
songjiun10-collab/senior-thinking-skills/measure-before-optimizing
──Details
PublishedNovember 4, 2026 at 12:21 AM
Content Hashsha256:449cab38a39271f3...
Git SHA11b452edd104
──Files
Files (1 file, 1.4 KB)
SKILL.md1.4 KBactive
SKILL.md · 27 lines · 1.4 KB

name: measure-before-optimizing description: Verify a bottleneck exists before touching performance. Use before any caching, memoization, query rewrite, algorithm swap, or "this seems slow" change; when a spec sets a performance target or Core Web Vitals threshold; when a user reports slowness; or when a PR bundles a performance claim with no before/after number. Skip for a fix where the bottleneck is already obvious from the code itself (e.g. an accidental O(n²) on a hot path). metadata: version: "1.0.0"


Measure First

The discipline is the same everywhere — measure, pinpoint, fix, re-measure, and skip optimizing what the data says doesn't matter — but how it's applied is calibrated per model. Pick the file for the model actually running:

ModelFile
Claude Opus 5.5opus-5-5.md
Claude Fable 5.1fable-5-1.md
Claude Sonnet 5sonnet-5.md
Claude Sonnet 5.5sonnet-5-5.md
Claude Haiku 5.5haiku-5-5.md
OpenAI GPT-6 Astragpt-6-astra.md
OpenAI GPT-6 Solgpt-6-sol.md
OpenAI GPT-6.1 Solgpt-6-1-sol.md
OpenAI GPT-6 Lunagpt-6-luna.md

Read the file matching the model actually running before applying this skill.

Running a model not listed above (an older generation, a different model family entirely)? sonnet-5.md carries the fullest general-purpose version of the underlying procedure — read that one rather than skipping this skill.

All versions