This walks you through the measure-optimize-verify cycle for fixing slow code. It covers the usual suspects: N+1 queries, missing indexes, bloated payloads, unnecessary re-renders, and algorithmic inefficiency. The examples are concrete, like adding database indexes or switching from sequential to parallel API calls with Promise.all. What's useful here is the emphasis on measuring before and after with actual timing code, not just guessing at what's slow. It includes quick wins like enabling gzip and adding caching, plus a checklist to make sure you don't break things while speeding them up. Good for when users complain about lag or you're staring at a slow query log.

skills.sh installs
124
GitHub stars
39.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill performance-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Files

Performance Optimizer

Find and fix performance bottlenecks. Measure, optimize, verify. Make it fast.

When to Use This Skill

  • App is slow or laggy
  • User complains about performance
  • Page load times are high
  • API responses are slow
  • Database queries take too long
  • User mentions "slow", "lag", "performance", or "optimize"

The Optimization Process

1. Measure First

Never optimize without measuring:

// Measure execution time
console.time('operation');
await slowOperation();
console.timeEnd('operation'); // operation: 2341ms

What to measure:

  • Page load time
  • API response time
  • Database query time
  • Function execution time
  • Memory usage
  • Network requests

2. Find the Bottleneck

Use profiling tools to find the slow parts:

Browser:

DevTools → Performance tab → Record → Stop
Look for long tasks (red bars)

Node.js:

node --prof app.js
node --prof-process isolate-*.log > profile.txt

Database:

EXPLAIN ANALYZE SELECT * FROM users WHERE email = 'test@example.com';

3. Optimize

Fix the slowest thing first (biggest impact).

Common Optimizations

Database Queries

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Category
Debugging
First seen
Jun 3, 2026

More from sickn33/antigravity-awesome-skills

All 708

Recommended

More Debugging
1shipshitdev avatarperformance-expertshipshitdev/libraryperformance expert122skills.sh installs
2agentworkforce avatarreview-fix-signoff-loopagentworkforce/relayWhen one review pass isn't enough and you need code to meet a spec end to end, this pattern loops fix and review iterations with fresh...0skills.sh installs
3agnosticui avatarfix-github-issueagnosticui/agnosticuiFix a GitHub issue by number. Use when asked to fix GitHub issues.0skills.sh installs
4davila7 avatarAPI Fuzzing for Bug Bountydavila7/claude-code-templatesThis skill should be used when the user asks to "test API security", "fuzz APIs", "find IDOR vulnerabilities", "test REST API", "test GraphQL", "API penetration0skills.sh installs
5exercism avatarfixexercism/websiteFix a GitHub issue end-to-end — fetches issue, creates worktree, plans and implements fix, runs validation, opens PR, cleans up.0skills.sh installs
6facebook avatarfixfacebook/reactThe fix skill automates code quality checks for React development by running formatting and linting tools to identify and resolve issues...0skills.sh installs