Skip to content
Back to skills

Performance

ASecurity

```typescript // Simple profiling const timers = new Map<string, number>() export function startTimer(name: string) { timers.set(name, Date.now()) } export function endTimer(name: string) { const start = timers.get(name) if (!start) return console.log(`${name}: ${Date.now() - start}ms`) timers.delete(name) } // Usage startTimer('db-query') const users = await db.query('SELECT * FROM users') endTimer('db-query') ``` ```sql -- Use EXPLAIN ANALYZE EXPLAIN AN

  • 21 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added September 7, 2026
databasestypescriptsqltestingapidatabasefrontendperformance

Works with

  • api

Security analysis

A100/100

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-performance/badge)](https://www.skillsdirectory.com/skills/modbender-performance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Performance Engineering

## Bottleneck Detection

```typescript
// Simple profiling
const timers = new Map<string, number>()

export function startTimer(name: string) {
  timers.set(name, Date.now())
}

export function endTimer(name: string) {
  const start = timers.get(name)
  if (!start) return
  console.log(`${name}: ${Date.now() - start}ms`)
  timers.delete(name)
}

// Usage
startTimer('db-query')
const users = await db.query('SELECT * FROM users')
endTimer('db-query')
```

## Query Optimization

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

-- Add indexes
CREATE INDEX idx_users_email ON users(email);
CREATE INDEX idx_orders_user_id ON orders(user_id, created_at DESC);
```

## Caching Strategy

| Data Type | TTL | Strategy |
|-----------|-----|----------|
| User session | 24h | Redis |
| Config | 1h | Memory |
| Product catalog | 1h | Redis + CDN |
| API responses | 1min | Cache-aside |

## Checklist

- [ ] Profile critical paths
- [ ] Optimize database queries
- [ ] Add appropriate indexes
- [ ] Implement caching
- [ ] Set up load testing
- [ ] Monitor Core Web Vitals (frontend)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.