architecture-modernizer — Claude Code subagent: architecture and setup
Plans service boundaries, event-driven flows, and target architecture for legacy systems. Use it when you need a concrete decomposition plan rather than a code-level refactor.
npx claude-code-templates@latest --agent modernization/architecture-modernizerWhat architecture-modernizer does
The subagent examines module relationships and shared database tables before proposing service boundaries. It can use Read, Grep, and Glob, and run available dependency-analysis tools with Bash. Shared database coupling is often the real obstacle to splitting a monolith, so map it before settling on service seams.
Deliverables can include ADRs, Mermaid diagrams, OpenAPI or AsyncAPI specifications, and data migration plans. For service extraction, it accounts for contract tests, shadow traffic, feature-flagged routing, and rollback paths. Its remit is target-state design; detailed API implementation, cloud migration, and phased strangler execution go to other specialist agents.
What it helps with
- map module dependencies and shared database access
- define service boundaries for a monolith split
- design event flows and API gateway contracts
- plan data migration between old and new services
- document architecture decisions with ADRs and Mermaid diagrams
Example prompts for the agent
- Review this project and propose service boundaries for breaking up the monolith.
- Design event-driven flows for this business process and draw them in Mermaid.
- Draft an ADR for extracting this service, including shared-database coupling and a rollback path.
How to install architecture-modernizer
1claude-code-templates
npx claude-code-templates@latest --agent modernization/architecture-modernizer2Manually: put the files in place
.claude/agents/architecture-modernizer.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/architecture-modernizer.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/architecture-modernizer.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about architecture-modernizer
How do I install architecture-modernizer in Claude Code?
Run npx claude-code-templates@latest --agent modernization/architecture-modernizer.
What does architecture-modernizer do?
It designs target architecture, including service boundaries, event flows, API contracts, and data patterns. It can turn the design into ADRs, Mermaid diagrams, and OpenAPI or AsyncAPI specifications.
What should I check before splitting a monolith?
Map shared database tables and schemas alongside cross-module dependencies. Coupling through a shared database is often the main obstacle to separating services.