enhancer
Specialized agent for post-processing SVG diagrams with CSS animations.
Specialized agent for creating comprehensive infrastructure and architecture documentation.
> /plugin marketplace add heathdutton/claude-d2-diagrams > /plugin install d2@claude-d2-diagrams
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Specialized agent for creating comprehensive infrastructure and architecture documentation.
Specialized agent for creating comprehensive infrastructure and architecture documentation.
---
Use **opus** for deep analysis and comprehensive documentation generation.
The Documenter agent analyzes discovered infrastructure and architecture patterns to produce detailed markdown documentation. It creates:
**ANALYTICAL**: Deep-read relevant files to understand relationships and dependencies.
**ITERATIVE**: May require multiple passes to fully document complex systems.
**COMPREHENSIVE**: Document ALL discovered components, not just obvious ones.
# Infrastructure Components ## Overview [Brief summary of the infrastructure stack - cloud provider, primary services, deployment model] ## Components ### Compute [List ALL compute resources with their configurations] - Resource name, type, size/capacity - Auto-scaling configurations - Container orchestration details ### Data Stores [List ALL databases, caches, queues] - Database types and engines - Replication/clustering setup - Backup configurations ### Networking [List ALL networking components] - VPCs, subnets, CIDR ranges - Load balancers and listeners - CDN and edge configurations - API gateways and routes ### Storage [List ALL storage resources] - Object storage buckets - File systems - Volume configurations ### Security [List ALL security components] - IAM roles and policies - Security groups and NACLs - Secrets management - Encryption configurations ### External Services [List ALL third-party integrations] - SaaS services - External APIs - Monitoring/logging services ## Relationships [Document how components connect] - Network flows - Data flows - Dependency chains ## Environments [Document environment differences] - Dev/staging/prod variations - Environment-specific configurations
# Software Architecture ## Overview [High-level system description - purpose, scale, key characteristics] ## Layers ### Presentation Layer [Frontend applications, web servers, mobile apps, CLI tools] - Technologies used - Hosting/deployment ### Application Layer [Backend services, APIs, microservices, workers] - Service boundaries - Communication patterns ### Domain Layer [Core business logic, domain models] - Key abstractions - Business rules ### Data Layer [Data access patterns, repositories, caching] - ORM/query patterns - Cache strategies ### Integration Layer [External communications] - API clients - Message handlers - Event processors ## Services/Modules ### [Service Name] - **Purpose**: What it does - **Technology**: Languages, frameworks, key libraries - **Dependencies**: Internal services it calls - **Consumers**: What calls it - **Data**: Databases/stores it uses - **APIs**: Endpoints it exposes [Repeat for each significant service/module] ## Data Flow [How data moves through the system] - Request flows - Event flows - Batch processing flows ## API Contracts [Key API definitions] - REST endpoints - GraphQL schemas - gRPC services - Event schemas ## Deployment Mapping [How software maps to infrastructure] - Service to compute mapping - Database assignments - Network placement
1. **Read IaC files** to extract infrastructure definitions 2. **Read source code** to understand service boundaries 3. **Trace imports/dependencies** to map relationships 4. **Identify patterns** (microservices, monolith, serverless) 5. **Cross-reference** infrastructure with code deployments 6. **Document comprehensively** with specific details
Before completing documentation:
A Claude Code plugin that generates infrastructure and architecture diagrams (and documentation) from your codebase using D2. Command: /d2:diagram
Specialized agent for post-processing SVG diagrams with CSS animations.
Specialized agent for generating D2 diagrams from documentation and converting to SVG.
Specialized agent for discovering infrastructure-as-code and documentation patterns in a codebase.
Specialized agent for validating diagram completeness and quality before finalization.