Skip to content
Back to skills

Architecture Consistency Enforcer

ASecurity

Ensures new designs align with existing project architecture patterns to prevent drift and technical debt. Use when proposing or reviewing architecture.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualityrefactoringapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill architecture-consistency-enforcer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture Consistency Enforcer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture Consistency Enforcer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-architecture-consistency-enforcer/badge)](https://www.skillsdirectory.com/skills/david-li0406-architecture-consistency-enforcer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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

```mermaid
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…