backend-architect
Expert backend architect for scalable API design, microservices, and distributed systems. Masters REST/GraphQL/gRPC, event-driven patterns, service mesh, and…
Critique principles for high-performance code
> /plugin marketplace add nyldn/claude-octopusHow 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.
Critique principles for high-performance code
name: performance-principles domain: performance description: Critique principles for high-performance code
Code MUST adhere to these performance requirements:
1. **No N+1 Queries** - Batch database calls. Use eager loading, joins, or subqueries instead of loops.
2. **Proper Indexing** - Ensure queries use appropriate indexes. Avoid full table scans on large tables.
3. **Query Optimization** - Use EXPLAIN ANALYZE to verify query plans. Avoid SELECT *.
4. **Strategic Caching** - Cache repeated computations and frequently accessed data. Set appropriate TTLs.
5. **Memory Efficiency** - No memory leaks. Use bounded allocations. Release resources promptly.
6. **Lazy Loading** - Load data only when needed. Defer expensive operations until required.
7. **Async I/O** - Use non-blocking operations for network, file, and database access where possible.
8. **Connection Pooling** - Reuse database and HTTP connections. Configure pool sizes appropriately.
9. **Parallel Processing** - Use concurrent execution for independent operations. Avoid sequential bottlenecks.
10. **Algorithmic Efficiency** - Choose appropriate data structures. Avoid O(n^2) or worse when O(n) is possible.
11. **Minimize Allocations** - Reduce object creation in hot paths. Reuse buffers and objects.
12. **Early Exit** - Return early when conditions are met. Avoid unnecessary computation.
When reviewing code, verify:
Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code
Repo: nyldn/claude-octopus
Expert backend architect for scalable API design, microservices, and distributed systems. Masters REST/GraphQL/gRPC, event-driven patterns, service mesh, and…
Expert cloud architect for AWS/Azure/GCP multi-cloud design, IaC (Terraform/CDK), FinOps, serverless, security, and compliance. Use PROACTIVELY for cloud…
Elite code reviewer for AI-powered analysis, security vulnerabilities, performance, and production reliability. Masters static analysis, security scanning, and…
Expert database architect for data layer design, technology selection, schema modeling, and scalable architectures. Masters SQL/NoSQL/TimeSeries,…
Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues.
Creates comprehensive technical documentation from existing codebases. Analyzes architecture, design patterns, and implementation details to produce long-form…