architecture

Identify and remediate architectural boundary violations using Clean Architecture, DDD, and hexagonal patterns.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/larsboes/pai-marketplace --skill architecture-larsboes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture
Source: https://github.com/larsboes/pai-marketplace/tree/main/marketplace/plugins/coding/skills/architecture
Command: npx skills add https://github.com/larsboes/pai-marketplace --skill architecture-larsboes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Architectural design and governance are often inconsistent across domains, services, and infrastructure, leading to brittle systems and unclear boundaries.

Core Features & Use Cases

  • Provides a practical framework for applying Clean Architecture, DDD tactical/strategic patterns, hexagonal architecture, CQRS, and event sourcing.
  • Supplies mode-based guidance (review, check, fix, design-module, design-workflow) to evaluate and evolve architectures.
  • Offers reference content on persistence mapping, domain-driven design, and integration patterns to guide implementation and governance.

Quick Start

Run the architecture review mode on your codebase to identify boundary violations and recommended pattern improvements.

Frequently Asked Questions about architecture

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

FAQPage Schema
How do I identify architectural boundary violations in my codebase?

Identify architectural boundary violations by running a review mode analysis on your codebase to detect module boundary breaks and cross-context coordination issues across domain, service, and infrastructure layers. It evaluates Clean Architecture, DDD, and hexagonal patterns to pinpoint structural inconsistencies.

What's the best way to apply DDD and hexagonal architecture patterns to an existing project?

Apply DDD and hexagonal patterns using mode-driven guidance that walks through review, check, fix, design-module, and design-workflow stages. It maps persistence, domain modeling, and integration patterns to align existing code with scalable design principles.

Can I use this to design CQRS and event sourcing workflows from scratch?

Yes, you can design CQRS and event sourcing workflows using the design-workflow mode. It provides practical mapping patterns and reference materials for scalable domain modeling, supporting both greenfield design and evolving existing systems.

Does this approach support strategic domain-driven design with context maps?

Yes, context maps are fully supported as part of strategic DDD. It evaluates bounded contexts and cross-context coordination, applying tactical and strategic patterns to ensure clear domain boundaries and integration governance.

How do I fix Clean Architecture layer violations in my service layer?

Fix Clean Architecture layer violations by running the fix mode, which remediates dependencies breaching domain, service, and infrastructure boundaries. It applies targeted pattern improvements to restore proper module separation and scalable design.