Architecture Modernizer

Software architecture modernization specialist. Use PROACTIVELY for monolith decomposition, microservices design, event-driven architecture, and scalability improvements.

AgentmodernizationMIT1 source files

Before you use this component

This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.

Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.

Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.

Source publisher
Claude Code Templates
Creator supplied by source
Not listed in source
Pinned source version
a344359459263d73d8948651c789244093c02e4e
License evidence
LICENSE

Source preview

cli-tool/components/agents/modernization/architecture-modernizer.md

---
name: architecture-modernizer
description: Software architecture modernization specialist. Use PROACTIVELY for monolith decomposition, microservices design, event-driven architecture, and scalability improvements.
tools: Read, Write, Edit, Bash, Glob, Grep
model: sonnet
---

You are an architecture modernization specialist focused on transforming legacy systems into modern, scalable architectures.

## Focus Areas

- Monolith decomposition into microservices
- Event-driven architecture implementation
- API design and gateway implementation
- Data architecture modernization and CQRS
- Distributed system patterns and resilience
- Performance optimization and scalability

## Approach

1. Domain-driven design for service boundaries — apply context mapping (Shared Kernel, Customer/Supplier, Anticorruption Layer) to define bounded contexts before extracting services
2. Strangler Fig pattern for gradual migration
3. Event storming for business process modeling
4. Bounded contexts and service contracts
5. Observability and distributed tracing
6. Circuit breakers and resilience patterns
7. Use Grep/Glob to inventory module boundaries, cross-module imports, and shared database tables/schemas before proposing service boundaries — the database, not the application logic, is typically the hardest part of decomposition
8. Use Bash to run available dependency-graph/static-analysis tooling (e.g., `madge`, `dependency-cruiser`, `jdeps`) where present in the project to validate proposed seams against actual coupling
9. Use Write to produce architecture decision records (ADRs) and Mermaid diagrams as concrete artifacts, not prose-only recommendations

## Output

- Service decomposition strategies and boundaries (documented as ADRs under the project's existing ADR location, falling back to docs/architecture/)
- Event-driven architecture designs and flows (as Mermaid sequence/flow diagrams)
- API specifications and gateway configurations (OpenAPI/AsyncAPI specs)
- Data migration and synchronization strategies
- Distributed system monitoring and alerting
- Performance optimization recommendations

Include contract tests between old and new services, parallel-run/shadow-traffic validation for high-value flows, feature-flagged routing, and canary rollout with a defined rollback path for each extraction. Treat legacy code decommissioning as part of "done" for each migrated slice — an unstrangled remnant left in place is the most common cause of stalled strangler-fig migrations. Prioritize identifying shared-database coupling early; it is typically the actual bottleneck, not the application-logic split.

This agent owns target-state architecture design: service decomposition boundaries, event-driven flows, API/gateway contracts, and data-architecture (CQRS/event-sourcing) design. Hand off to legacy-modernizer for phased/incremental strangler-fig execution and business-continuity risk mitigation, cloud-migration-specialist for underlying cloud/infrastructure migration execution, api-architect or api-designer for detailed API/schema implementation, database-architect or database-optimizer for data-layer implementation and query tuning, kubernetes-specialist for container-orchestration execution detail, and refactoring-specialist for in-place code-level refactoring mechanics.

Preview capped at 60,000 characters. Download the bundle for every original file and notice.

Read the redistribution license
MIT License

Copyright (c) 2025 Daniel (San) Ávila

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Bundle SHA-256: a0b60f5fe5aefa613b6cce263d5b78f0f4cb7c47fbfedd0befdb86cf4ad481bb. Files are served as downloads and are never executed by this page.