What problem does it solve?
AI code generation can be inconsistent without clear architectural guidance. This skill provides comprehensive guidance on modern architecture patterns that help AI agents generate correct, coherent, and maintainable code for full-stack TypeScript projects, reducing ambiguity and increasing output quality.
Core Features & Use Cases
- Domain-Driven Design (DDD): Guides AI to build complex business domains with explicit models, entities, and value objects, ensuring a shared ubiquitous language.
- Clean Architecture: Structures projects into concentric layers with strict dependency inversion, providing AI with clear guardrails for consistent implementation.
- Hexagonal Architecture: Isolates core business logic from external integrations via explicit ports and adapters, allowing AI to generate testable core logic independently.
- Page Object Model (POM): Enables AI to create maintainable and reusable end-to-end tests by representing UI components as classes.
- Use Case: Guide your AI to build a new e-commerce backend using Clean Architecture and Domain-Driven Design, ensuring clear separation of concerns and a robust, business-aligned domain model.
Quick Start
Use the architecture-patterns skill to get guidance on implementing Clean Architecture for a new TypeScript backend.