Loading...
Loading...
Enforce Vertical Slice Architecture (VSA) when building applications in any language (Go, .NET/C#, Java, Kotlin, TypeScript, Python, etc.) and any type (web API, mobile backend, CLI, event-driven). Organize code by feature/use-case instead of technical layers. Each feature is a self-contained vertical slice with a single entry point that receives the router/framework handle and its dependencies. Use when the user says "vertical slice architecture", "VSA", "organizar por feature", "feature-based architecture", "slice architecture", or when building a new app or feature and the project already follows VSA conventions. Also use when reviewing or refactoring code to align with VSA principles.
npx skill4agent add mryll/skills vertical-slice-architectureSetupRegisterRouteMap{project}/
features/ # or internal/features/ (Go), Features/ (.NET)
{domain}/ # orders/, users/, kvs/
{operation}/ # create/, list/, delete/
handler # Single entry point + orchestration
request/response # DTOs
validator # Input validation (optional)
test # Co-located integration test
internal/ # Feature-private helpers (optional)
platform/ # or Infrastructure/ — shared cross-cutting concerns
middleware/ # Auth, error handling, idempotency
database/ # Connection pooling, circuit breakers
observability/ # Metrics, tracing, structured logging
opqueue/ # Operation queues, outbox patterns (if needed)
main # Composition root wires features + infrastructurefeatures/{domain}/{operation}/mainplatform/platform/httpx/| Language | Convention | Signature | DI mechanism |
|---|---|---|---|
| Go | | | Explicit params |
| .NET | | | DI container resolves deps in handler |
| Java/Kotlin | | Controller discovered by component scan | Spring DI (constructor injection) |
| TypeScript | | | Explicit params |
| Python | | | Explicit params or |
SetupV1SetupV2