一键导入
architecture-patterns
Hexagonal, Clean, and Screaming architecture patterns for maintainable systems
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Hexagonal, Clean, and Screaming architecture patterns for maintainable systems
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review existing Architecture Decision Records. Flag ADRs whose aging signals may have triggered given current state. Categorizes each as valid / aged / superseded and suggests follow-up actions.
Author an Architecture Decision Record (ADR). Captures decisions with implications beyond the current change — lasts months, affects multiple files, hard to reverse. Records context, alternatives considered, consequences, and aging signals so the decision can be revisited when conditions change.
4-phase loop-detection and recovery protocol. Fires when an agent detects it is stuck or repeating the same tool call with no progress — before tool-loop-detection circuit-breaks at 30 calls.
Socratic exploration of requirements before implementation. Refines spec through targeted questions. Use when user asks to 'explore options', 'refine requirements', or mentions 'unclear requirements'.
Generate structured changelog from git history. Groups commits by type, filters noise, produces Keep a Changelog format. Single source of truth — no /commands wrapper.
Generate pipe-delimited commits: Tipo|IdTarea|YYYYMMDD|Descripción. Single source of truth — no /commands wrapper.
| name | architecture-patterns |
| description | Hexagonal, Clean, and Screaming architecture patterns for maintainable systems |
| version | 1.0.0 |
| allowed-tools | ["Read","Grep","Glob","Edit","Write"] |
| load_when | ["designing_system_architecture","reviewing_architectural_decisions","refactoring_for_scalability"] |
| inputs | [{"name":"system_description","type":"string","required":true},{"name":"constraints","type":"string","required":false}] |
| outputs | [{"name":"architecture_decision","type":"structured_report","format":"Pattern | Rationale | Trade-offs | Implementation steps"}] |
| constraints | ["prefer_hexagonal_over_layered_for_complex_domains","domain_layer_must_not_depend_on_infrastructure","ports_and_adapters_for_all_external_dependencies"] |
Skill para implementar, auditar y refactorizar módulos siguiendo Clean Architecture y Domain-Driven Design en NestJS.
references/clean-architecture-layers.md)new — rompe DI y testabilidad.shared/ solo debe tener infraestructura (DB, email, cache), no reglas de negocio.| Need | Reference |
|---|---|
| Capas Clean Architecture y regla de dependencias | references/clean-architecture-layers.md |
Estructura src/modules/<context>/<module>/ y reglas de comunicación | references/bounded-contexts.md |
| Plantilla completa de un módulo (module/controller/service) | references/module-structure.md |
| Aggregates, Value Objects y Domain Events (DDD) | references/ddd-tactical.md |
| Repository Pattern con interfaz | references/repository-pattern.md |
| Cuándo usar DTO vs Type vs Interface y dónde van | references/dto-types-interfaces.md |
| Workflow paso a paso para refactor de un módulo | references/refactor-workflow.md |
dto/, types/, interfaces/, entities/ separadasnew en services)