All skills
simota avatar

/bolt

@e307415
by shingo imotasimota/agent-skills85 stars
15

Optimizing frontend (re-render, memoization, lazy loading) and backend (N+1, indexing, caching, async) performance, plus continuous auto-tuning loops for GC/threadpool/cache/worker settings.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/bolt

This session only. Nothing lands on disk.

referenceoptimization-anti-patterns.md

≈898 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Performance Optimization Anti-Patterns

Pitfalls of performance optimization, premature optimization, incorrect optimization ordering, and optimizing without measurement

1. 10 Major Optimization Anti-Patterns

# Anti-Pattern Symptom Impact Countermeasure
PO-01 Premature optimization Code becomes complex before the bottleneck is identified Reduced readability, higher maintenance cost, no real benefit Strictly follow measure → identify → optimize order
PO-02 Optimizing without measurement Optimizing based on "this seems slow" without profiling The actual bottleneck gets missed Measure with Chrome DevTools / Lighthouse / clinic.js before starting
PO-03 Over-focus on micro-optimization Chasing 1ms savings inside a loop while ignoring architectural issues Larger problems like N+1 queries go unaddressed Tackle the highest-impact issues first (DB > network > rendering > JS computation)
PO-04 Excessive memoization Applying useMemo/useCallback/memo to everything Code complexity increases; memoization cost > recomputation cost Confirm impact via measurement. Trend toward less manual memoization in the React Compiler era
PO-05 Optimizing the wrong layer Working hard on the frontend while the backend is the bottleneck Time wasted on optimizations that show no effect Profile the entire request lifecycle
PO-06 Treating caching as a cure-all Trying to solve everything with caching Consistency issues, memory pressure, hard-to-debug problems Caching only masks symptoms — fix the root cause (e.g. slow queries) first
PO-07 Benchmark/production environment mismatch Measuring only in dev, where conditions differ from production No improvement — or a regression — in production Combine RUM (Real User Monitoring) with Synthetic Monitoring
PO-08 No regression testing Can't detect performance regressions after optimizing New features silently undo the optimization Performance Budget + CI/CD integration
PO-09 Blind trust in libraries Adopting libraries claiming to be "lightweight" without verification Bundle size actually increases, performance worsens Pre-verify with bundlephobia + measure directly
PO-10 Over-focus on a single metric Focusing only on LCP, or only on bundle size Other metrics worsen (e.g. INP regresses, CLS increases) Evaluate holistically across all 3 Core Web Vitals + business metrics

3. The Three-Layer Measurement Model

Layer Tools Metrics Timing
Development React DevTools · Chrome Performance · Lighthouse Render time · Bundle size · LCP/INP/CLS Per PR
CI/CD Lighthouse CI · webpack-bundle-analyzer · autocannon Budget overruns · regression detection · throughput Per merge
Production RUM (web-vitals) · Synthetic Monitoring · APM p50/p75/p95 · error rate · business impact Continuous

5. Integration with Bolt

Source: Stackify: Why Premature Optimization is Evil · Revelo: How to Avoid Premature Optimization · Landskill: JavaScript Performance Optimization 2026 · TechLasi: Software Performance Optimization Tips 2026

Source: SKILL.md on GitHub

No alerts13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill 'bolt' is a specialized performance optimization agent designed to improve frontend and backend efficiency. It provides comprehensive guidance on React optimization, Node.js profiling, and database query tuning. The security analysis confirmed that the skill promotes industry-standard best practices, uses well-known and trusted developer tools, and does not contain any malicious patterns such as credential theft, data exfiltration, or prompt injection. All external links and suggested dependencies are associated with reputable technical resources and official tool repositories.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    3/12 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e307415. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/bolt