Skill: Diagram Generation — Arquitectura y Flujo
SkillDev toolsUse when you need to generate architecture or flow diagrams from code or infrastructure.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Skill: Diagram Generation — Arquitectura y Flujo skill
What this skill tells your AI
The instructions your AI receives, as published by gonzalezpazmonica/pm-workspace in .claude/skills/diagram-generation/SKILL.md and read by ahel’s review.
Propósito
Generar diagramas de arquitectura, flujo de datos y secuencia a partir de la infraestructura y código fuente de un proyecto. Exportar a Draw.io, Miro o formato local (Mermaid).
Triggers
- Comando
/diagram-generate— Genera diagrama completo - Petición directa: "genera el diagrama de arquitectura del proyecto X"
Contexto Requerido
CLAUDE.md(raíz) — Contexto globalprojects/{proyecto}/CLAUDE.md— Stack, arquitectura, reposprojects/{proyecto}/infrastructure/— Terraform, Docker, K8s si existendocs/rules/domain/diagram-config.md— Constantes y configuración
Fase 1: Detección de Componentes
Analizar el proyecto para identificar componentes arquitectónicos:
Fuentes de detección (prioridad)
- Infraestructura como código —
*.tf,docker-compose.yml,k8s/,helm/ - Código fuente —
*.csproj,package.json,pom.xml,go.mod, etc. - Documentación existente —
CLAUDE.mddel proyecto,architecture.md - Azure DevOps — Repos, pipelines, service connections
Para tipo orgchart: la fuente de datos es teams/{dept}/ (dept.md + team.md de cada equipo),
NO infraestructura de proyecto. Opcionalmente enriquecer con teams/members/{handle}.md.
Entidades a detectar
Detalle: @references/diagram-entities.md
| Entidad | Detección | Icono |
|---|---|---|
| Microservicio / API | *.csproj + Dockerfile | [Nombre] |
| Base de datos | ConnectionString, DbContext | [(DB)] |
| Cola / Bus | ServiceBus, RabbitMQ config | {{Cola}} |
| API Gateway | Ocelot, YARP, Kong | [[Gateway]] |
| Frontend / SPA | angular.json, next.config | (Frontend) |
| CDN / Cache | Redis, CloudFront | {Cache} |
Fase 2: Generación de Modelo Mermaid
Construir la representación en Mermaid según el tipo de diagrama:
Detalle: @references/mermaid-templates.md
Tipos soportados
- Architecture — C4-style con capas (Frontend, Backend, Data)
- Flow — Data flow entre componentes
- Sequence — Secuencia temporal de interacciones
- Orgchart — Jerarquía organizativa desde datos de
teams/
Fase 3: Exportar a Herramienta MCP
3.1 Draw.io
- Convertir Mermaid → XML Draw.io
- Crear o actualizar diagrama
- Si proyecto tiene
DRAWIO_FOLDER→ usar esa carpeta
3.2 Miro
- Verificar token OAuth válido
- Crear frame en board del proyecto
- Convertir entidades a shapes de Miro
3.3 Local (sin MCP)
- Guardar fichero
.mermaidenprojects/{p}/diagrams/local/ - Mostrar preview en respuesta
Fase 4: Guardar Metadata
Crear projects/{p}/diagrams/{tool}/{tipo}.meta.json:
{
"tool": "draw-io",
"type": "architecture",
"name": "System Architecture — {proyecto}",
"url": "https://...",
"remote_id": "...",
"local_mermaid": "diagrams/local/architecture.mermaid",
"created": "2026-02-26T...",
"elements": { "services": 4, "databases": 2, "queues": 1 }
}
Fase 5: Presentar Resultado
✅ Diagrama generado: {tipo} — {proyecto}
🔗 URL: {link}
📊 Elementos: {N} servicios, {N} DBs, {N} colas
📁 Metadata: projects/{p}/diagrams/{tool}/{tipo}.meta.json
Referencias
references/mermaid-templates.md— Plantillas por tiporeferences/diagram-entities.md— Detección de componentesreferences/draw-io-shapes.md— Mapeo entidades → shapesreferences/orgchart-shapes.md— Shapes de organigramareferences/orgchart-mermaid-template.md— Plantilla Mermaid para orgchart
Signals
- GitHub stars
- 50
- Forks
- 12
- Last commit
- Sep 2026
Others that do the same job
Advanced
- Catalog kind
- skill
- Gateway key
diagram-generation-gonzalezpazmonica- Source
- github.com/gonzalezpazmonica/pm-workspace