Back to list
hohai99

architecture-consistency-enforcer

by hohai99

0🍴 1📅 Jan 22, 2026

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

  1. Extract Patterns: Identify how the project currently handles common tasks (e.g., Dependency Injection, API routing).
  2. Compare Proposal: Check if the new design introduces a "second way" of doing things.
  3. Flag Architectural Drift: Identify deviations and mark them for review.
  4. 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

  1. Separation of Concerns: Is business logic leaking into the transport layer?
  2. Dependency Direction: Are abstractions depending on details? (Violation of DIP)
  3. Error Strategy: Does it follow the global error handling pattern?
  4. 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.

Score

Total Score

50/100

Based on repository quality metrics

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

Reviews

💬

Reviews coming soon