Gentleman Architecture Agents

screenshot of Gentleman Architecture Agents

Claude Code agents that enforce the Scope Rule architectural pattern for Angular, Next.js & Astro - Battle-tested patterns from Google Developer Expert & Microsoft MVP

Overview

The Claude Code Scope Rule Architects collection introduces a powerful suite of specialized agents tailored for enforcing the Scope Rule architectural pattern across various frontend frameworks. This open-source initiative is designed to aid developers in making consistent, clear architectural decisions, ensuring the maintenance of clean and scalable codebases. By adhering to the Scope Rule—a guiding principle that dictates code placement based on its usage scope—developers can achieve streamlined project structures that enhance traceability and efficiency.

The Scope Rule asserts that code utilized by multiple features should reside in global/shared directories, while code used by a single feature should remain localized. This strict adherence fosters an architecture that is not only functional but also communicative, scalable, and free from architectural debt, making it a must-have for developers seeking to optimize their frontend workflows.

Features

  • Perfect Traceability: Easily locate code based on its functionality and usage scope, improving maintainability.

  • Screaming Architecture: Structure your project so that it clearly communicates its purpose, laying the groundwork for intuitive code understanding.

  • Scalable Organization: Enjoy a naturally growing organizational structure that evolves with your application's complexity.

  • Zero Architectural Debt: Prevent the pitfalls of disorganized code placements commonly seen in large projects, maintaining clean and efficient architecture.

  • Specialized Agents:

    • Angular Agent: Tailored specifically for Angular 20+ projects, this agent supports modern coding patterns with features like standalone components and signals-based state management.
    • Next.js Agent: Optimized for Next.js 15+, offering performance-first architecture with default Server Components and effective route organization.
    • Astro Agent: Designed for Astro 5+, this agent promotes a static-first approach with selective hydration and seamless multi-framework support.
  • Co-location Benefits: Promote a development environment where related code is easily accessible, facilitating collaboration and refactoring efforts.

  • Framework-Specific Best Practices: Each agent is designed to integrate seamlessly with their respective frameworks, guiding developers through best practices for architectural decisions.