architecture-boundary-enforcer

Enforce clean architectural boundaries across domain, app, HTTP, and infra layers.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/eboody/eran.codes --skill architecture-boundary-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-boundary-enforcer
Source: https://github.com/eboody/eran.codes/tree/main/archive/skills/architecture-boundary-enforcer
Command: npx skills add https://github.com/eboody/eran.codes --skill architecture-boundary-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures strict adherence to architectural boundaries, preventing code tangling and maintaining clear separation of concerns across domain, application, HTTP, and infrastructure layers, including secure handling of authentication and session data.

Core Features & Use Cases

  • Architectural Review: Validates the placement of types and traits across different code layers.
  • Data Transfer Object (DTO) & Model Separation: Enforces distinct structures for network transport versus internal domain representation.
  • Auth & Security Flow: Reviews the secure handling of credentials, hashing, and session management.
  • Use Case: When introducing a new API endpoint, use this skill to verify that request DTOs do not leak infrastructure details and that authentication logic is correctly implemented within the application layer.

Quick Start

Use the architecture-boundary-enforcer skill to review the proposed changes for the new user registration flow.

Frequently Asked Questions about architecture-boundary-enforcer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce architectural boundaries between domain and infrastructure layers?

Enforcing architectural boundaries involves validating type ownership and dependency direction across domain, app, HTTP, and infra layers to prevent code tangling. This Skill reviews placement and dependency flows to maintain separation of concerns.

How do I prevent DTOs from leaking infrastructure details in my API?

Preventing DTO leakage requires enforcing distinct structures for network transport versus internal domain representation. This Skill validates Data Transfer Object and model separation to ensure request DTOs do not expose internal infrastructure details.

Where should authentication and session management logic be placed in clean architecture?

Authentication and session management logic should be placed within the application layer. This Skill reviews the secure handling of credentials, hashing, and session data to ensure auth flows are correctly implemented across architectural boundaries.

What is the best way to review validation placement and error handling across code layers?

The best way to review validation placement is by mapping request flows and validating boundary conditions against local documentation. This Skill checks validation placement and error handling across domain, app, HTTP, and infra layers.

Does this architectural boundary enforcement approach work for existing codebase refactoring?

Yes, this boundary enforcement approach works for refactoring existing codebases by reviewing dependency direction and type ownership. It requires adherence to local documentation and a defined workflow for mapping request flows during the refactoring process.

When should I avoid bypassing architectural boundaries for quick API endpoint implementation?

You should never bypass architectural boundaries when introducing a new API endpoint, as it causes code tangling. Use boundary enforcement to verify that request DTOs, validation, and authentication logic remain correctly separated across layers.