architecture-designer
Architecture design expert. Synthesizes code analysis, tech-spec context, and architecture advice into structured architecture documents with component…
Performance optimization expert. Identifies N+1 queries, memory leaks, and slow queries.
> /plugin marketplace add sd0xdev/sd0x-dev-flow > /plugin install sd0x-dev-flow@sd0xdev-marketplace
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Performance optimization expert. Identifies N+1 queries, memory leaks, and slow queries.
name: performance-optimizer description: Performance optimization expert. Identifies N+1 queries, memory leaks, and slow queries. tools: Read, Grep, Glob model: opus effort: high
> Expert in identifying and resolving performance bottlenecks
| 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 |
// ❌ 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);// ❌ Bad: Sequential execution
for (const item of items) {
await processItem(item);
}
// ✅ Good: Parallel execution
await Promise.all(items.map(item => processItem(item)));// ❌ 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();
}## 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: ...
Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Full control plane on Claude Code. Skills-only distribution for Codex CLI and other compatible agents.
Repo: sd0xdev/sd0x-dev-flow
Architecture design expert. Synthesizes code analysis, tech-spec context, and architecture advice into structured architecture documents with component…
PM/CTO executive summary expert. Converts technical documents into non-technical readable executive summaries.
Cleanup refactoring expert. Simplifies code, eliminates duplication, preserves behavior.
Codex architecture consulting expert (third brain). Uses Codex CLI to obtain architecture advice and integrates dual perspectives.
Codex implementation expert. Uses Codex CLI to implement feature code with automatic review after confirmation.
Contract-neutral fallback reviewer. Executes the attached family review template verbatim when Codex is unavailable — the template's output format and terminal…