/godmode:architectfrom godmode
Guides system architecture decisions with pattern evaluation, C4 diagrams, ADRs, and DDD bounded context mapping. Useful for greenfield projects or scaling systems.
Ships in godmode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
/godmode:architect/godmode:think identifies architecture as the primary concernUnderstand the system before recommending architecture:
ARCHITECTURE CONTEXT:
System: <name and purpose>
Stage: <greenfield | evolving | rewrite | migration>
Evaluate candidate patterns against the requirements. Always evaluate at least 3 patterns:
For each candidate (evaluate at least 3), fill:
PATTERN: <Name>
├── Structure: <one-line architecture summary>
├── Strengths: <key advantages for this system>
├── Weaknesses: <key disadvantages and operational cost>
└── Best when: <conditions where this pattern wins>
Candidate patterns: Modular Monolith, Microservices, Serverless/FaaS, Event-Driven, CQRS, Hexagonal (Ports & Adapters). Evaluate the top 3-6 for the system.
Present a structured comparison:
ARCHITECTURE COMPARISON — <system name>
Produce diagrams at all four C4 levels for the chosen architecture:
Who uses the system and what external systems does it interact with?
C4 CONTEXT DIAGRAM:
Users / Actors
What are the major deployable units?
C4 CONTAINER DIAGRAM:
<<System>> <System Name>
What are the major components within each container?
C4 COMPONENT DIAGRAM — <Container Name>:
<<Container>> API Service
What are the key classes/modules and their relationships?
C4 CODE DIAGRAM — <Component>:
Show key interfaces, classes, and their relationships.
Use the codebase's actual language idioms (classes for Java/C#,
Map bounded contexts and their relationships:
BOUNDED CONTEXT MAP:
For the recommended architecture, analyze non-functional requirements:
QUALITY ATTRIBUTES:
| Attribute | How the architecture addresses it |
Document the decision formally:
# ADR-<number>: <Architecture Decision Title>
## Status
docs/architecture/<system>-architecture.mddocs/adr/<number>-<decision>.md"architect: <system> — <pattern> architecture with C4 diagrams and ADR"/godmode:ddd to define domain boundaries and aggregates."/godmode:plan to decompose into implementation tasks."/godmode:api to design the API layer."Never ask to continue. Loop autonomously until architecture comparison matrix, C4 diagrams, and ADR are complete.
# Analyze architecture dependencies and coupling
npx madge --circular --extensions ts src/
npx dependency-cruiser --validate .dependency-cruiser.cjs src/
IF team size < 5: prefer modular monolith over microservices. WHEN afferent coupling > 10 on any module: refactor to reduce. IF circular dependencies > 0: break cycles before adding features.
Print on completion:
ARCHITECTURE: {system_name}
Pattern: {selected_pattern} (scored {weighted_total} vs {runner_up_score} for {runner_up})
C4 diagrams: {levels_produced} levels produced
Log every architecture session to .godmode/architect-results.tsv:
timestamp system pattern_selected patterns_compared c4_levels bounded_contexts quality_attrs adr_number verdict
Append one row per session. Create the file with headers on first run.
After EACH architecture decision:
1. MEASURE: Score the decision against the weighted comparison matrix.
2. COMPARE: Does the recommended pattern score highest? Are trade-offs documented honestly?
STOP when ANY of these are true:
- At least 3 patterns compared in weighted matrix with clear winner
- C4 Level 1 and Level 2 diagrams produced
Continuously audit architecture health with coupling metrics, dependency analysis, and SOLID violation detection:
ARCHITECTURE REVIEW LOOP:
current_iteration = 0
COUPLING ANALYSIS:
| Metric | Threshold | Measured | Status |
DEPENDENCY ANALYSIS:
| Check | Status | Details |
SOLID VIOLATION SCAN:
| Principle | Detection Signal | Count |
ARCHITECTURE HEALTH SCORECARD:
| Dimension | Score (1-10) | Weight | Weighted |
| Failure | Action |
|---|---|
| Architecture decision contested | Document tradeoffs in ADR. Prototype if needed. |
| Pattern doesn't fit after start | If < 30% done: pivot. If > 30%: adapt. Document. |
| Vendor lock-in risk | Add adapter/port layer. Abstract behind interface. |
| Performance bottleneck | Profile first. Add caching/async before restructuring. |
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
135 skills in this plugin
/a11yAccessibility. WCAG 2.1 AA/AAA, a11y audit, color contrast, keyboard navigation, screen reader, Axe, Pa11y, Lighthouse./agentAI agent development. ReAct/plan-and-execute/multi-agent architectures, tool design, memory systems, guardrails, orchestration (LangChain, LlamaIndex, CrewAI, AutoGen)./analyticsProduct analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation./angularAngular architecture. NgRx, Signals, RxJS, standalone components, lazy loading, dependency injection, Jasmine, Jest./apiAPI design and specification. REST, GraphQL, gRPC, OpenAPI, design an API, create API spec, validate my API, endpoint./apidocsAPI documentation. OpenAPI, Swagger, Redoc, contract-first development, spec-first, code-first, interactive docs.Other plugins' skills for the same job