.claude/skills/diagram-generation/SKILL.md
Generar diagramas de arquitectura y flujo desde infraestructura y código
npx skillsauth add gonzalezpazmonica/pm-workspace diagram-generationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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).
/diagram-generate — Genera diagrama completoCLAUDE.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ónAnalizar el proyecto para identificar componentes arquitectónicos:
*.tf, docker-compose.yml, k8s/, helm/*.csproj, package.json, pom.xml, go.mod, etc.CLAUDE.md del proyecto, architecture.mdPara 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.
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} |
Construir la representación en Mermaid según el tipo de diagrama:
Detalle: @references/mermaid-templates.md
teams/DRAWIO_FOLDER → usar esa carpeta.mermaid en projects/{p}/diagrams/local/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 }
}
✅ Diagrama generado: {tipo} — {proyecto}
🔗 URL: {link}
📊 Elementos: {N} servicios, {N} DBs, {N} colas
📁 Metadata: projects/{p}/diagrams/{tool}/{tipo}.meta.json
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 orgcharttesting
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
tools
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
tools
Sistema proactivo de bienestar individual
development
Search the web to resolve context gaps — documentation, versions, CVEs, best practices. Auto-starts SearxNG Docker if available, falls back to WebSearch.