manastalukdar/ai-devstudio/architecture-diagram
Claude Code and agent skill by manastalukdar/ai-devstudio
- community
Checking that the SKILL.md file is still in the repository.
Generate architecture diagrams in Mermaid, PlantUML, or diagrams.net formats
Install
npx vskill@latest install manastalukdar/ai-devstudio/architecture-diagramSKILL.md
Architecture Diagram Generator
I'll analyze your codebase and generate visual architecture diagrams showing component relationships, data flow, and system structure.
Arguments: $ARGUMENTS - diagram type or format (e.g., "mermaid", "plantuml", "component", "data-flow")
Strategic Analysis Process
<think> Effective architecture diagrams require understanding:
- Project Structure Analysis
- What's the application architecture? (monolith, microservices, serverless)
- What layers exist? (frontend, backend, database, services)
- How do components communicate?
- What are the major modules and their responsibilities?
- Are there clear architectural patterns? (MVC, MVVM, Clean Architecture)
- Diagram Type Selection
- Component diagram: Show major components and relationships
- Sequence diagram: Show interaction flows
- Data flow diagram: Show how data moves through system
- Deployment diagram: Show infrastructure and deployment
- Class diagram: Show object-oriented structure
- Entity-relationship: Show database schema
- Format Decision
- Mermaid: Simple, version-controllable, GitHub/GitLab rendering
- PlantUML: More features, complex diagrams, requires rendering
- Diagrams.net (Draw.io): Visual editing, XML format
- ASCII art: Terminal-friendly, simple visualizations
- Detail Level
- High-level overview: Major components only
- Medium detail: Components + key interactions
- Detailed: All modules, functions, data flows
- Focus on what's most valuable for documentation
</think>
Phase 1: Architecture Discovery
MANDATORY FIRST STEPS:
- Analyze project structure and file organization
- Identify architectural patterns from code
- Map component dependencies
- Detect technology stack and frameworks
Let me analyze your project architecture:
Phase 2: Component Relationship Mapping
I'll map relationships between components:
Analysis Methods:
- Import/export analysis (module dependencies)
- API endpoint mapping (request/response flows)
- Database relationship detection (foreign keys, relations)
- Event system mapping (event emitters/listeners)
- Service dependencies (dependency injection patterns)
Using Native Tools:
- Grep to find import statements and dependencies
- Glob to identify component files by pattern
- Read key architectural files (routers, services, models)
- Pattern detection for architectural styles
I'll analyze:
- Frontend component hierarchy
- Backend route handlers and middleware
- Service layer dependencies
- Database entity relationships
- External API integrations
Phase 3: Diagram Generation
Based on analysis, I'll generate appropriate diagrams:
Mermaid Diagrams (Default)
Component Diagram:
Data Flow Diagram:
Sequence Diagram:
System Architecture:
PlantUML Diagrams
Class Diagram:
Component Diagram:
Deployment Diagram
Infrastructure Visualization:
Phase 4: Diagram Output
I'll create diagram files in your project:
File Creation:
docs/architecture/components.mmd- Component diagramdocs/architecture/data-flow.mmd- Data flow diagramdocs/architecture/deployment.mmd- Deployment diagramdocs/architecture/sequence.mmd- Sequence diagramsdocs/architecture/README.md- Documentation with rendered diagrams
Markdown Integration:
[diagram content]
[diagram content]
Token Optimization
Expected range: 1,400–4,200 tokens (initial), 500 tokens (cache hit)
Caching: Caches architecture analysis in .claude/cache/architecture/ for 7 days. Invalidated when source structure changes.
Early exit: Returns cached diagram immediately if project structure has not changed.
Patterns used: Grep-before-Read, early exit, caching, Bash for system queries
Security
- Security scanPassedPattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/architecture-diagram/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/manastalukdar/ai-devstudio/architecture-diagram)