Skip to content
Automation
Agent

maintainability

Critique principles for maintainable, readable code

From plugin
octo
4.3k49 skills49 agents53 commands18 hooks

Claude Code

> /plugin marketplace add nyldn/claude-octopus

Agent definition

maintainability.md
name: maintainability-principles
domain: maintainability
description: Critique principles for maintainable, readable code

Maintainability Principles

Code MUST adhere to these maintainability requirements:

Code Structure

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.

Naming & Readability

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.

Error Handling

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.

Testing & Documentation

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.

Design

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.

Checklist

When reviewing code, verify:

  • [ ] Functions are small and focused
  • [ ] No code duplication
  • [ ] Clear, descriptive naming
  • [ ] No magic numbers or strings
  • [ ] Consistent code style
  • [ ] Proper error handling
  • [ ] Code is testable
  • [ ] Complex logic is documented
  • [ ] Dependencies are minimized
  • [ ] No over-engineering
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…

n8n11d209k
@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.

aris12d18k
@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…

windmill12d18k
@windmill-labs@windmill-labsInstall Agent
GLOBAL

GLOBAL

Agent

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

edict6w17k
@cft0808@cft0808Install Agent

Questions about maintainability.

Which coding agents can use maintainability?
maintainability 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.