
architecture-guardian
by d-oit
SKILL.md
name: architecture-guardian description: Enforce clean architecture principles, proper layering rules, dependency flow, module boundaries, and interface design. Use when designing new features, refactoring code, or reviewing architecture.
Architecture Guardian
Enforce clean architecture principles, proper layer separation, and well-defined boundaries between architectural layers.
Quick Reference
- Core Guidance - Detailed methodology and implementation
- Layering Rules - Layer separation principles
- Dependency Flow - Allowed and prohibited dependencies
- Interface Design - API and interface design
- Module Boundaries - Module coupling and cohesion
When to Use
- Designing new feature modules
- Refactoring existing architecture
- Creating new interfaces between layers
- Reviewing code for architectural compliance
- Setting up dependency injection
- Decoupling modules
Core Methodology
Enforce clean architecture through systematic layering, dependency flow control, and boundary management.
Key Principles:
- Layer separation (Presentation, Application, Domain, Infrastructure)
- Upward dependency flow (depends on abstractions, not implementations)
- Clear module boundaries (bounded contexts)
- Interface-based design (depend on contracts, not concretions)
- SOLID principles adherence
Quality Gates:
- No circular dependencies
- No layering violations
- Clear public APIs
- Proper dependency directions
- Single responsibility per module
Integration
- domain-expert: Ensures proper domain modeling
- typescript-guardian: Type safety in interfaces
- feature-module-architect: Structures features correctly
- tech-stack-specialist: Framework and tool configuration
Best Practices
✓ Keep layers strictly separated ✓ Depend on abstractions, not concretions ✓ Define clear public APIs ✓ Use repository interfaces in domain layer ✓ Implement dependency inversion ✓ Enforce bounded contexts ✓ Design interfaces with segregation principle ✗ Mix responsibilities across layers ✗ Leak infrastructure into domain ✗ Create tight coupling between features ✗ Allow circular dependencies ✗ Make interfaces too large (segregate) ✗ Skip dependency flow validation
Content Modules
See detailed modules:
- Core Guidance - Implementation details and patterns
- Layering Rules - Layer separation
- Dependency Flow - Dependency management
- Interface Design - API design patterns
- Module Boundaries - Coupling and cohesion
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です