architecture-diagram
Skill1 starsChanged 7 months agoMITView on GitHub
Generate architecture diagrams in Mermaid, PlantUML, or diagrams.net formats
44 other projects use a version of this.
Adopted by
Most recently taken up by
- nohemi20231/design-skillstheir own version, first seen Nov 8, 2026
- seayniclabs/homelab-infra-mcptheir own version, first seen Nov 8, 2026
- ashleysbrain/skillstheir own version, first seen Nov 8, 2026
- ZhouYinLong-lab/Dog-Skillstheir own version, first seen Nov 8, 2026
- delorenj/skillstheir own version, first seen Nov 7, 2026
- d-o-hub/github-template-ai-agentstheir own version, first seen Nov 3, 2026
Used with
Projects with it also use competitor-news-monitor, blocked-page-recovery and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
aivrarSkillcompetitor-news-monitor
Watch named companies for material news; cited digests.
Also in 6 projects that use this
aivrarSkillblocked-page-recovery
Recover blocked/paywalled/WAF'd pages via fallbacks.
Also in 6 projects that use this
john-data-chenSkillteams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
Also in 8 projects that use this
john-data-chenSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 5 projects that use this
Tommy-ywSkillsongwriting-and-ai-music
Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.
Also in 9 projects that use this
mae616Skillp5js
p5.js(クリエイティブコーディング)のProcessing由来「コードでスケッチ」思想を軸に、setup/drawループ・座標系・インタラクション・パフォーマンス最適化を整理する。p5.js、Processing、クリエイティブコーディング、ジェネラティブアート、インタラクティブ表現、ビジュアルプログラミング、Canvas描画、パーティクル、フラクタル、ノイズ表現に関する相談で必ず使うこと。ユーザーが「コードでアート」「動くビジュアル」「インタラクティブな描画」と言った場合にも適用する。
Also in 9 projects that use this
- +3 more from aivrar
Other versions44 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 44
- NousResearch/hermes-agent★ 262ksame name
- lahfir/agent-desktop★ 19ksame name
- vercel-labs/agent-desktop★ 19ksame name
- Cocoon-AI/architecture-diagram-generator★ 7.4ksame name
- Tommy-yw/RunbookHermes★ 546same name
- Mathews-Tom/armory★ 340same name
- aivrar/portable-hermes-agent★ 239same name
- konraddzbik/architecture-diagram-skill★ 143same name
- proyecto26/system-design-skills★ 118same name
- microsoft/github-copilot-modernization★ 48same name
34 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository206 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-healthSkill
- skill-validatorSkill
- accessibilitySkill
- agent-debugSkill
- agent-evaluateSkill
- ai-governanceSkill
- ai-system-reviewSkill
- api-docs-generateSkill
- api-examplesSkill
- api-mockSkill
- api-test-generateSkill
- api-validateSkill
- ask-mattSkill
- assumption-mapSkill
- boilerplateSkill
- brainstormSkill
- branch-finishSkill
- briefingSkill
- browser-testing-with-devtoolsSkill
- bundle-analyzeSkill
- cache-strategySkill
- canarySkill
- carefulSkill
- cavemanSkill
- changelog-autoSkill
- chaos-testSkill
- ci-setupSkill
- ci-sweepSkill
- cleanprojectSkill
- click-path-auditSkill
- codebase-designSkill
- code-review-checklistSkill
- code-tourSkill
- commitSkill
- completion-verifySkill
- complexity-reduceSkill
- component-librarySkill
- config-cleanupSkill
- config-generateSkill
- conflict-resolveSkill
- container-optimizeSkill
- context-budgetSkill
- context-engineeringSkill
- context-restoreSkill
- context-saveSkill
- continuous-learningSkill
- contributingSkill
- cost-trackSkill
- councilSkill
- create-todosSkill
- cross-modal-reviewSkill
- database-connectSkill
- db-diagramSkill
- ddd-modelSkill
- debug-root-causeSkill
- debug-sessionSkill
- debug-systematicSkill
- decision-logSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 42 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 100
Import/export analysis (module dependencies)
“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
# Analyze project structure
echo "=== Architecture Analysis ==="
# Detect project type
if [ -d "src/components" ] || [ -d "components" ]; then
echo "Frontend components detected"
fi
if [ -d "src/api" ] || [ -d "api" ] || [ -d "routes" ]; then
echo "API/Backend layer detected"
fi
if [ -d "src/models" ] || [ -d "models" ]; then
echo "Data models detected"
fi
if [ -d "src/services" ] || [ -d "services" ]; then
echo "Service layer detected"
fi
# Count major components
echo ""
echo "Component counts:"
find src -type f -name "*.js" -o -name "*.ts" -o -name "*.jsx" -o -name "*.tsx" 2>/dev/null | wc -l | xargs echo "Files:"
find src -type d -maxdepth 2 2>/dev/null | wc -l | xargs echo "Directories:"
# Identify framework
if grep -q "\"next\"" package.json 2>/dev/null; then
echo "Framework: Next.js"
elif grep -q "\"react\"" package.json 2>/dev/null; then
echo "Framework: React"
elif grep -q "\"vue\"" package.json 2>/dev/null; then
echo "Framework: Vue"
elif grep -q "\"express\"" package.json 2>/dev/null; then
echo "Framework: Express (Node.js)"
fiPhase 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:
graph TB
subgraph Frontend
UI[User Interface]
Components[React Components]
Store[State Management]
end
subgraph Backend
API[API Layer]
Services[Business Services]
Models[Data Models]
end
subgraph Infrastructure
DB[(Database)]
Cache[(Redis Cache)]
Queue[Message Queue]
end
UI --> Components
Components --> Store
Components --> API
API --> Services
Services --> Models
Models --> DB
Services --> Cache
Services --> QueueData Flow Diagram:
flowchart LR
User((User)) --> UI[User Interface]
UI --> Auth{Authentication}
Auth -->|Valid| API[API Gateway]
Auth -->|Invalid| Login[Login Page]
API --> Service[Business Logic]
Service --> DB[(Database)]
DB --> Service
Service --> API
API --> UI
UI --> UserSequence Diagram:
sequenceDiagram
participant User
participant Frontend
participant API
participant Service
participant DB
User->>Frontend: Click Action
Frontend->>API: HTTP Request
API->>Service: Process Request
Service->>DB: Query Data
DB-->>Service: Return Results
Service-->>API: Format Response
API-->>Frontend: JSON Response
Frontend-->>User: Update UISystem Architecture:
graph TB
subgraph Client Layer
Web[Web App]
Mobile[Mobile App]
end
subgraph API Gateway
Gateway[API Gateway]
Auth[Auth Service]
end
subgraph Services
UserService[User Service]
ProductService[Product Service]
OrderService[Order Service]
end
subgraph Data Layer
PostgreSQL[(PostgreSQL)]
Redis[(Redis)]
S3[S3 Storage]
end
Web --> Gateway
Mobile --> Gateway
Gateway --> Auth
Auth --> Gateway
Gateway --> UserService
Gateway --> ProductService
Gateway --> OrderService
UserService --> PostgreSQL
ProductService --> PostgreSQL
OrderService --> PostgreSQL
ProductService --> Redis
OrderService --> S3PlantUML Diagrams
Class Diagram:
@startuml
class User {
+id: string
+email: string
+name: string
+authenticate()
+updateProfile()
}
class Product {
+id: string
+name: string
+price: number
+getDetails()
}
class Order {
+id: string
+userId: string
+items: Product[]
+total: number
+createOrder()
+processPayment()
}
User "1" -- "*" Order
Order "*" -- "*" Product
@endumlComponent Diagram:
@startuml
package "Frontend" {
[React Components]
[Redux Store]
[API Client]
}
package "Backend" {
[Express Server]
[Auth Middleware]
[Business Logic]
}
package "Data" {
database "PostgreSQL"
database "Redis"
}
[React Components] --> [Redux Store]
[React Components] --> [API Client]
[API Client] --> [Express Server]
[Express Server] --> [Auth Middleware]
[Auth Middleware] --> [Business Logic]
[Business Logic] --> PostgreSQL
[Business Logic] --> Redis
@endumlDeployment Diagram
Infrastructure Visualization:
graph TB
subgraph Cloud Provider
subgraph Frontend
CDN[CDN / CloudFront]
Static[Static Hosting]
end
subgraph Application
LB[Load Balancer]
App1[App Server 1]
App2[App Server 2]
App3[App Server 3]
end
subgraph Data
Primary[(Primary DB)]
Replica[(Read Replica)]
Cache[(Redis Cluster)]
end
subgraph Queue
MQ[Message Queue]
Worker1[Worker 1]
Worker2[Worker 2]
end
end
Users((Users)) --> CDN
CDN --> Static
Users --> LB
LB --> App1
LB --> App2
LB --> App3
App1 --> Primary
App2 --> Primary
App3 --> Primary
App1 --> Replica
App2 --> Replica
App3 --> Replica
App1 --> Cache
App2 --> Cache
App3 --> Cache
App1 --> MQ
MQ --> Worker1
MQ --> Worker2
Worker1 --> Primary
Worker2 --> PrimaryPhase 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:
# System Architecture
## Component Diagram
```mermaid
[diagram content]Data Flow
[diagram content]This automatically renders on GitHub, GitLab, and many documentation platforms.
## 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 queriesDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

