speedrun
Use when optimizing codebase performance, reducing bundle sizes, improving build times, or eliminating code bloat. Launches parallel optimization hunters with mandatory before/after verification.
What this skill does
# Speedrun Skill Comprehensive optimization hunting that dispatches parallel agents to find performance bottlenecks across all layers, then applies fixes with mandatory verification. ## The Iron Law ``` NO OPTIMIZATION CLAIM WITHOUT MEASUREMENT. ``` Every optimization must have before/after metrics. Unverified "improvements" are worthless. ## ROI & Priority Rubric All hunters use the same priority classification: | Priority | Impact | Fix Effort | |----------|--------|------------| | P0 | >50% improvement or >100KB savings | Trivial (1-2 lines) | | P1 | 20-50% improvement or 50-100KB savings | Straightforward | | P2 | 10-20% improvement or 10-50KB savings | Moderate | | P3 | <10% improvement or <10KB savings | Any | **Confidence:** - HIGH: Direct evidence (measured file size, query count, profiler output) - MEDIUM: Pattern match — savings estimated from code structure - LOW: Theoretical — no direct measurement possible Fix order: P0 first. Never spend time on P3 while P0 exists. ## Quick Reference | Hunter | Profile | Focus | Color | |--------|---------|-------|-------| | bundle-hunter | OBSESSIVE | File sizes, tree-shaking, code splitting | yellow | | complexity-hunter | UNCOMFORTABLE | Cyclomatic complexity, nesting, function length | purple | | dead-code-hunter | RUTHLESS | Unused exports, orphan files, unreachable paths | gray | | dependency-hunter | WARY | Bloat, duplicates, outdated, vulnerabilities | magenta | | build-hunter | IMPATIENT | Compilation time, caching, parallelization | orange | | algorithm-hunter | IMPATIENT | Big O, data structures, repeated computation | red | | query-hunter | METICULOUS | N+1, missing indexes, slow queries | green | | web-vitals-hunter | OBSESSIVE | LCP, CLS, INP, TTFB | blue | | memory-hunter | PARANOID | Leaks, allocation patterns, GC pressure | red | | image-hunter | METICULOUS | Formats, compression, lazy loading | cyan | ## Workflow 1. **Measure baseline** - Gather current metrics (bundle size, build time, complexity scores) 2. **Detect stack** - Identify framework, build tooling, database, image handling 3. **Dispatch applicable hunters in PARALLEL** (stack-gated — skip irrelevant hunters) 4. **Collect findings** - Aggregate with P0-P3 priority and confidence ratings 5. **Write SPEEDRUN.md** - Prioritized optimization report 6. **Apply fixes** - P0/P1 safe fixes auto-apply, complex fixes require approval 7. **Verify improvements** - Re-measure and report deltas ## Stack-Gated Dispatch Always dispatch: bundle, complexity, dead-code, dependency, algorithm Dispatch if applicable: - `build-hunter` — has build config (webpack/vite/rollup/turbo) - `query-hunter` — has database (Supabase/Prisma/SQL/Mongoose) - `web-vitals-hunter` — has frontend (React/Vue/HTML) - `memory-hunter` — has server runtime (Node/Python/Go) - `image-hunter` — has image assets (public/, static/, assets/) ## Fix Tiers ### Auto-Apply (Safe) - Remove unused imports/exports - Delete dead code files - Optimize image formats - Add missing lazy loading - Remove unused dependencies ### Require Approval (Risky) - Algorithm refactors - Dependency swaps - Code splitting changes - Build config modifications - Database index additions ## Output: SPEEDRUN.md ```markdown # Speedrun Optimization Report **Date:** YYYY-MM-DD **Stack:** [detected tech stack] **Baseline:** Bundle: X MB | Build: Xs | Complexity avg: Y ## Summary | Hunter | P0 | P1 | P2 | P3 | Total | |--------|----|----|----|----|-------| | bundle-hunter | N | N | N | N | N | | query-hunter | N | N | N | N | N | | [etc.] | | | | | | ## P0 — Act Now [Quick wins: high impact, trivial effort] ### [Issue Title] - **Priority:** P0 - **Hunter:** bundle-hunter - **Impact:** ~80KB savings - **Confidence:** HIGH - **Fix:** [What to do] ## P1 — High Value [Straightforward fixes worth doing this sprint] ## P2 — Medium Value [Moderate effort, good returns] ## P3 — Consider Later [Minor gains, low urgency] ## Verification | Metric | Before | After | Delta | |--------|--------|-------|-------| | Bundle | X MB | Y MB | -Z% | | Build | Xs | Ys | -Z% | | Queries/request | N | M | -Z% | ``` ## After Optimization Re-measure all baseline metrics and report the delta. Refuse to claim an improvement without measurement.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.