architecture-intelligence
Usar cuando se diseña o revisa la arquitectura de un proyecto nuevo o existente.
by gonzalezpazmonica★ 52 GitHub stars
Install architecture-intelligence in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Architecture Intelligence — Skill
Detección, análisis y recomendación de patrones de arquitectura para los 16 lenguajes soportados.
Algoritmo de Detección
La detección de patrones sigue 4 fases con scoring acumulativo:
Fase 1: Análisis de Estructura de Carpetas (peso: 40%)
Buscar carpetas que correspondan a patrones conocidos:
| Patrón | Carpetas esperadas |
|---|---|
| Clean Architecture | Domain/, Application/, Infrastructure/, Presentation/ |
| Hexagonal | ports/, adapters/, domain/ o core/ |
| DDD | Carpetas por dominio: orders/, users/, billing/ |
| CQRS | commands/, queries/, handlers/ |
| MVC | controllers/, models/, views/ |
| MVVM | viewmodels/, views/, models/ |
| Microservices | Múltiples Dockerfile, docker-compose.yml, API gateway config |
Fase 2: Análisis de Imports/Dependencias (peso: 30%)
Verificar dirección de dependencias:
- Clean/Hexagonal: Domain NO importa Infrastructure → ✅
- Domain importa Infrastructure → ❌ violación
- Dependencias circulares → ❌ violación
- Buscar: MediatR, Axon, EventStore → CQRS/Event-Driven
Fase 3: Análisis de Naming Conventions (peso: 20%)
Buscar sufijos/prefijos indicativos:
*Controller,*Service,*Repository→ MVC/Layered*Command,*Query,*Handler→ CQRS*Aggregate,*ValueObject,*DomainEvent→ DDD*Port,*Adapter→ Hexagonal*ViewModel,*Presenter→ MVVM/MVP*UseCase,*Interactor→ Clean Architecture
Fase 4: Análisis de Configuración (peso: 10%)
Buscar ficheros de configuración:
docker-compose.ymlcon múltiples servicios → Microservices- DI container config → Clean/Hexagonal
- Event bus config → Event-Driven
- API gateway config → Microservices
Scoring
Cada patrón recibe score 0-100. Se reporta:
- Patrón principal: score más alto
- Patrones secundarios: scores >30 que no son el principal
- Nivel de adherencia: Alto (>80), Medio (50-80), Bajo (<50)
- Violaciones: reglas rotas del patrón detectado
Fitness Functions — Templates
Regla: No dependencias inversas entre capas
RULE: "Domain layer independence"
CHECK: Files in {domain_folder} do NOT import from {infrastructure_folder}
SEVERITY: CRITICAL
Regla: Naming conventions
RULE: "Controller naming"
CHECK: Files in {controllers_folder} end with "Controller" suffix
SEVERITY: WARNING
Regla: No dependencias circulares
RULE: "No circular dependencies"
CHECK: Module dependency graph has no cycles
SEVERITY: CRITICAL
Regla: Tamaño de módulos
RULE: "Module size limit"
CHECK: Each module/package has ≤ {max_files} files
SEVERITY: WARNING
Integración con Language Packs
Para cada lenguaje, cargar el reference correspondiente:
- Detectar lenguaje del proyecto (por extensiones, package manager, framework)
- Cargar
references/patterns-{lang}.mdpara markers específicos - Combinar con reglas genéricas de
@docs/rules/domain/architecture-patterns.md
Output
Los templates de output están definidos en cada comando (/arch-detect, /arch-suggest, /arch-recommend).
Output se genera en output/architecture/{proyecto}-{tipo}.md.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- DOMAIN.md
- references/patterns-dotnet.md
- references/patterns-go.md
- references/patterns-java.md
- references/patterns-legacy.md
- references/patterns-mobile.md
- references/patterns-php.md
- references/patterns-python.md
- references/patterns-ruby.md
- references/patterns-rust.md
- references/patterns-terraform.md
- references/patterns-typescript.md
FAQ
What does the architecture-intelligence skill do?
Usar cuando se diseña o revisa la arquitectura de un proyecto nuevo o existente.
How do I install the architecture-intelligence skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the architecture-intelligence skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…