architecture
Clean Architecture, hexagonal layers, dependency injection.
- License 许可
- MIT
- 最近更新
- 2026-08-26
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- architecture
- description
- Clean Architecture, hexagonal layers, dependency injection.
03 SKILL.md 正文
Architecture - Capas
Clean Layers
domain/ → Entities, interfaces (CERO dependencies)
application/ → Use cases, DTOs
infrastructure/→ Repositories, API handlers
presentation/ → UI, Controllers
Dependency Rule
domain ← application ← infrastructure ← presentation
PROHIBIDO:
- ❌ Domain importa infrastructure
- ❌ Entities en presentation
Repository Pattern
// Interface en domain
interface UserRepository {
findById(id: string): Promise<User | null>;
create(user: CreateUserDTO): Promise<User>;
}
// Implementation en infrastructure
class PostgresUserRepository implements UserRepository {
async findById(id: string) { ... }
}
Forbidden
- ❌ Circular dependencies
- ❌ God classes (500+ lines)
- ❌ Domain importa infrastructure
04 同仓库更多 Skills
zustand-5
Zustand 5 state management patterns. Trigger: When managing React state with Zustand.
zod-4
Zod 4 schema validation patterns. Trigger: When using Zod for validation - breaking changes from v3.
x-bookmark-quote-posts
Workflow para revisar bookmarks de X/Twitter y convertirlos en drafts de quote posts. Accede a la sección de bookmarks vía browser headless, extrae posts recientes, y genera drafts con voz personal del usuario. No publica ni muta X — solo genera contenido para revisión. Trigger: X bookmarks, Twitter bookmarks, quote posts, bookmark automation, crear quote posts, revisar bookmarks, growth content X.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.