Skip to content
Automation
Agent

performance

Critique principles for high-performance code

From plugin
octo
4.3k49 skills49 agents53 commands18 hooks

Claude Code

> /plugin marketplace add nyldn/claude-octopus

Agent definition

performance.md
name: performance-principles
domain: performance
description: Critique principles for high-performance code

Performance Principles

Code MUST adhere to these performance requirements:

Database & Queries

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 *.

Caching & Memory

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.

I/O & Concurrency

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.

Algorithm & Code

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.

Checklist

When reviewing code, verify:

  • [ ] No N+1 query patterns
  • [ ] Database queries use indexes
  • [ ] Appropriate caching in place
  • [ ] No memory leaks
  • [ ] Async operations for I/O
  • [ ] Connection pooling configured
  • [ ] Efficient algorithms used
  • [ ] No unnecessary loops or iterations
  • [ ] Resources properly released
  • [ ] Pagination for large result sets
Read more
@nyldn
Ships withocto

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

4.3k70 skills49 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.3k
Star history of nyldn/claude-octopus on GitHub, a chart by star-history.com

Other agents on octo.

backend-architect

backend-architect

Agent

Expert backend architect for scalable API design, microservices, and distributed systems. Masters REST/GraphQL/gRPC, event-driven…

@nyldn@nyldnInstall Agent
cloud-architect

cloud-architect

Agent

Expert cloud architect for AWS/Azure/GCP multi-cloud design, IaC (Terraform/CDK), FinOps, serverless, security, and compliance.…

@nyldn@nyldnInstall Agent
code-reviewer

code-reviewer

Agent

Elite code reviewer for AI-powered analysis, security vulnerabilities, performance, and production reliability. Masters static…

@nyldn@nyldnInstall Agent
database-architect

database-architect

Agent

Expert database architect for data layer design, technology selection, schema modeling, and scalable architectures. Masters…

@nyldn@nyldnInstall Agent
debugger

debugger

Agent

Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues.

@nyldn@nyldnInstall Agent
docs-architect

docs-architect

Agent

Creates comprehensive technical documentation from existing codebases. Analyzes architecture, design patterns, and implementation…

@nyldn@nyldnInstall Agent

More agents from other plugins.

BUILT_IN_TOOLS

BUILT_IN_TOOLS

Agent

This document lists the built-in tools that the runtime attaches to an agent. It explains what each tool does and when the…

n8n10d209k
@n8n-io@n8n-ioInstall Agent
aris-fanout-leaf

aris-fanout-leaf

Agent

Read-only leaf worker for one bounded ARIS fan-out shard. Never delegates, writes files, or renders verdicts.

aris11d18k
@wanshuiyin@wanshuiyinInstall Agent
branch-diff-reviewer

branch-diff-reviewer

Agent

Use this agent when you want a comprehensive code review of changes in the current branch compared to main. This includes…

windmill11d18k
@windmill-labs@windmill-labsInstall Agent
GLOBAL

GLOBAL

Agent

本文件包含所有 Agent 必须遵守的通用规则。各 Agent 的 SOUL.md 可覆盖此处设定。

edict6w17k
@cft0808@cft0808Install Agent

Questions about performance.

Which coding agents can use performance?
performance installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.