Maintainability Principles
Critique principles for maintainable, readable code
- Type
- Subagent
- Repository
- nyldn/claude-octopus
- GitHub stars
- 4.1k
- License
- MIT
- Repo last updated
- Sep 26, 2026
- Source file
- agents/principles/maintainability.md
What Maintainability Principles is
Maintainability Principles is a subagent published in the nyldn/claude-octopus repository on GitHub, which has about 4.1k stars. The repository describes itself as: “Run multiple AI models against the same research, design, or coding task. Surface disagreements before you ship.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Maintainability Principles and get back a compact result.
How to install Maintainability Principles
Claude Code
- Download maintainability.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/principles/maintainability.md, shared under the repository's MIT license. Read the full file on GitHub.
Code MUST adhere to these maintainability requirements:
Code Structure
- Single Responsibility - Functions and classes do ONE thing. Keep them focused and small.
- DRY (Don't Repeat Yourself) - Extract common logic into reusable functions. Avoid copy-paste.
- Separation of Concerns - Keep business logic, data access, and presentation separate.
Naming & Readability
- Clear Naming - Variables, functions, and classes describe their purpose. Avoid abbreviations.
- No Magic Numbers - Constants are named and explained. Avoid hardcoded values.
- Consistent Style - Follow project conventions. Use consistent formatting and patterns.
Error Handling
- Explicit Error Handling - All errors are caught and handled appropriately. No silent failures.
- Meaningful Error Messages - Errors include context for debugging. Log relevant details.
- Graceful Degradation - Handle edge cases. Provide fallbacks where appropriate.
Testing & Documentation
- Testability - Code is unit-testable. Dependencies are injectable. Pure functions preferred.
- Self-Documenting Code - Code is readable without comments. Complex logic has explanations.
- API Documentation - Public APIs have clear documentation. Include examples.
Design
- Loose Coupling - Minimize dependencies between modules. Use interfaces/abstractions.
- High Cohesion - Related functionality is grouped together. Modules have clear boundaries.
- 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
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Maintainability Principles?
Maintainability Principles is a subagent for Claude Code and Claude Cowork from the nyldn/claude-octopus repository on GitHub. Critique principles for maintainable, readable code
How do I install Maintainability Principles in Claude Code?
Download maintainability.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Maintainability Principles in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Maintainability Principles safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Strategy Analyst Expert strategy analyst specializing in market analysis, competitive intelligence, business case development, and strategic recommendations. Masters frameworks like Porter's Five Forces, SWOT, and business model canvas. Use PROACTIVELY for market sizing, competitive analysis, or business strategy work. Subagent · nyldn/claude-octopus
- Tdd Orchestrator Octopus-only TDD orchestrator. Use only when the user explicitly selects this agent or starts an Octopus workflow; never for an ordinary request. Subagent · nyldn/claude-octopus
- Test Automator Master AI-powered test automation with modern frameworks, self-healing tests, and comprehensive quality engineering. Build scalable testing strategies with advanced CI/CD integration. Use PROACTIVELY for testing automation or quality assurance. Subagent · nyldn/claude-octopus
- Ui Ux Designer Design UI/UX systems with style guides, color palettes, typography, and component specs. Bridges user research and frontend implementation using BM25 design intelligence. Use PROACTIVELY when designing interfaces or creating design systems. Subagent · nyldn/claude-octopus
- Marketing Strategist Expert marketing strategist specializing in campaign planning, growth funnels, SEO strategy, content marketing, brand positioning, and attribution modeling. Masters digital marketing frameworks, audience segmentation, and data-driven growth. Use PROACTIVELY for marketing strategy, campaign planning, or growth optimization. Subagent · nyldn/claude-octopus
- Legal Compliance Advisor Expert compliance advisor specializing in GDPR, CCPA, HIPAA, SOC 2, privacy policy review, contract analysis, and regulatory risk assessment. Masters data protection frameworks and compliance program design. Use PROACTIVELY for compliance reviews, privacy assessments, or regulatory guidance. Subagent · nyldn/claude-octopus
- Mermaid Expert Create Mermaid diagrams for flowcharts, sequences, ERDs, and architectures. Masters syntax for all diagram types and styling. Use PROACTIVELY for visual documentation, system diagrams, or process flows. Subagent · nyldn/claude-octopus
- Incident Responder Expert SRE incident responder for rapid resolution, observability, and incident management. Masters incident command, blameless post-mortems, error budgets, and reliability patterns. Use IMMEDIATELY for production incidents or SRE practices. Subagent · nyldn/claude-octopus