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 maintainable, readable 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 maintainable, readable code
name: maintainability-principles domain: maintainability description: Critique principles for maintainable, readable code
Code MUST adhere to these maintainability requirements:
1. **Single Responsibility** - Functions and classes do ONE thing. Keep them focused and small.
2. **DRY (Don't Repeat Yourself)** - Extract common logic into reusable functions. Avoid copy-paste.
3. **Separation of Concerns** - Keep business logic, data access, and presentation separate.
4. **Clear Naming** - Variables, functions, and classes describe their purpose. Avoid abbreviations.
5. **No Magic Numbers** - Constants are named and explained. Avoid hardcoded values.
6. **Consistent Style** - Follow project conventions. Use consistent formatting and patterns.
7. **Explicit Error Handling** - All errors are caught and handled appropriately. No silent failures.
8. **Meaningful Error Messages** - Errors include context for debugging. Log relevant details.
9. **Graceful Degradation** - Handle edge cases. Provide fallbacks where appropriate.
10. **Testability** - Code is unit-testable. Dependencies are injectable. Pure functions preferred.
11. **Self-Documenting Code** - Code is readable without comments. Complex logic has explanations.
12. **API Documentation** - Public APIs have clear documentation. Include examples.
13. **Loose Coupling** - Minimize dependencies between modules. Use interfaces/abstractions.
14. **High Cohesion** - Related functionality is grouped together. Modules have clear boundaries.
15. **YAGNI** - Don't build for hypothetical future requirements. Solve current problems.
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…