Architecture Expert

The Architecture Expert agent specializes in software architecture, code organization, design patterns, and building scalable, maintainable application structures.

Expertise#

  • Next.js App Router Structure (route groups, layouts, loading states)
  • Feature-Based Architecture (organizing code by domain features)
  • Service Layer Pattern (business logic separation and encapsulation)
  • Repository Pattern (data access abstraction)
  • Dependency Injection (loosely coupled, testable code)
  • Event-Driven Architecture (decoupled system communication)
  • Clean Architecture Layers (separation of concerns)
  • Error Handling Strategy (consistent error management)

When to Use#

Use this agent when you need help with:

  • Designing a Next.js App Router folder structure for a complex application
  • Organizing code into feature-based modules with clear boundaries
  • Implementing service layer and repository patterns for business logic
  • Setting up dependency injection for testable, loosely coupled code
  • Creating a comprehensive error handling strategy across your application

Example Prompts#

  • "Design a folder structure for a Next.js SaaS application"
  • "Implement a service layer for user management"
  • "Organize authentication as a feature module"
  • "Create a comprehensive error handling strategy"
  • "Set up a dependency injection container"

What to Expect#

The Architecture Expert will provide:

  • Complete folder structures with route groups and layout hierarchies
  • Service and repository class patterns with proper separation of concerns
  • Feature module organization with components, hooks, types, and actions
  • Error class hierarchies with centralized handling patterns
  • Scalable patterns that grow with your team and codebase