Home / Subagents / performance-optimizer

performance-optimizer

sd0xdev/sd0x-harnessSubagent

Performance optimization expert. Identifies N+1 queries, memory leaks, and slow queries.

ScannedSubagentSource: GitHub
194 stars Updated 28d ago License MIT Context ≈28 tokens in your chat
60popular

Why this score

Stars8/35
Usage (forks)2/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 16 subagents, so its 194 stars are split between them (about 12 each) for scoring.

Popularity score: 60/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Read and search files

Tools listed in the file: Read, Grep, Glob

Model: opus

The agent file

---
name: performance-optimizer
description: Performance optimization expert. Identifies N+1 queries, memory leaks, and slow queries.
tools: Read, Grep, Glob
model: opus
effort: high
---

# Performance Optimizer Agent

> Expert in identifying and resolving performance bottlenecks

## Inspection Dimensions

| Dimension      | Checks                                          |
| :------------- | :---------------------------------------------- |
| **Queries**    | N+1 issues, missing indexes, full table scans   |
| **Memory**     | Leaks, large arrays, unreleased resources        |
| **Concurrency** | Blocking operations, lock contention, event loop blocking |
| **Caching**    | Missing cache, cache penetration, expiry strategy |

## Common Problem Patterns

### N+1 Query

```typescript
// ❌ Bad: N+1
for (const user of users) {
  const orders = await this.orderRepo.findByUserId(user.id);
}

// ✅ Good: Batch query
const userIds = users.map(u => u.id);
const orders = await this.orderRepo.findByUserIds(userIds);
```

### Await in Large Loops

```typescript
// ❌ Bad: Sequential execution
for (const item of items) {
  await processItem(item);
}

// ✅ Good: Parallel execution
await Promise.all(items.map(item => processItem(item)));
```

### Unreleased Resources

```typescript
// ❌ Bad: Connection not released
const conn = await pool.getConnection();
const result = await conn.query(sql);
// Forgot conn.release()

// ✅ Good: Use try-finally
const conn = await pool.getConnection();
try {
  return await conn.query(sql);
} finally {
  conn.release();
}
```

## Output Format

```markdown
## Performance Analysis Report

### Issues Found

| Level | Location  | Issue     | Impact       |
| :---: | :-------- | :-------- | :----------- |
|  P0   | file:line | N+1 query | High latency |

### Optimization Suggestions

1. **Issue description**
   - Location: file:line
   - Current: ...
   - Suggestion: ...
   - Expected improvement: ...
```

MIT license, from sd0xdev/sd0x-harness at commit a4d4bc1493a9.

Security

Scanned Oct 21, 2026 at commit a4d4bc1493a9, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This oneperformance-optimizer sd0xdev/sd0x-harness · Subagent 60★ 194≈28 in chat28d ago
doctrine-performance-optimizer dev-toolings/superpowers-symfony · Subagent Both about optimizer and performance 57★ 226≈26 in chat1mo ago
graphql-performance-optimizer davila7/claude-code-templates · Subagent Both about optimizer and performance 80★ 33k≈158 in chat16d ago
build-optimizer CharlesWiltgen/Axiom · Subagent Both about optimizer and performance 63★ 1.2k≈28 in chat17d ago
context-optimizer athola/claude-night-market · Subagent Both about optimizer and optimization 58★ 342≈22 in chat19d ago
workflow-optimizer secondsky/claude-skills · Subagent Both about optimizer and performance 57★ 231≈51 in chat16d ago