← スキル一覧に戻る

architecture-consistency-enforcer
by hohai99
⭐ 0🍴 1📅 2026年1月22日
SKILL.md
name: architecture-consistency-enforcer description: Ensures new designs align with existing project architecture patterns to prevent drift and technical debt. Use when proposing or reviewing architecture. triggers: [design-proposal, architecture-review, structural-refactor] outputs: [architecture-review-report, drift-analysis]
Architecture Consistency Enforcer
Purpose
Maintains the structural integrity of the project. This skill ensures that the codebase doesn't become a "ball of mud" by enforcing consistent patterns for data flow, error handling, and component organization.
When to use this skill
- When designing new components or services
- During architectural reviews of migrations
- When refactoring existing core structures
Enforcement Steps
- Extract Patterns: Identify how the project currently handles common tasks (e.g., Dependency Injection, API routing).
- Compare Proposal: Check if the new design introduces a "second way" of doing things.
- Flag Architectural Drift: Identify deviations and mark them for review.
- Favor Consistency: If a local improvement creates global inconsistency, it must be justified or rejected.
Decision Tree
flowchart TD
A[Review Design] --> B{Matches Existing Pattern?}
B -->|Yes| C[Approve - Consistent]
B -->|No| D{Significant Improvement?}
D -->|No| E[Reject - Enforce Consistency]
D -->|Yes| F{Justified in Design Doc?}
F -->|No| G[Request Justification for Drift]
F -->|Yes| H[Approve as New Pattern]
Review Checklist
- Separation of Concerns: Is business logic leaking into the transport layer?
- Dependency Direction: Are abstractions depending on details? (Violation of DIP)
- Error Strategy: Does it follow the global error handling pattern?
- Data Flow: Is the flow predictable and uni-directional where expected?
How to provide feedback
- Be specific: "This service uses a Singleton pattern, but the project uses Dependency Injection."
- Explain why: "Mixing patterns makes the code harder to test and maintain."
- Suggest alternatives: "Recommend passing the repository via constructor instead of using Instance()."
Local consistency beats global perfection.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です