Enterprise Architecture Pattern Stack Selector for Openclaw

A high-level architectural router skill that helps developers select and document a cohesive stack of patterns for enterprise applications based on Martin Fowler's PEAA framework.

quochungto
v1.0.0
Apr 21, 2026
0
378
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install bookforge-enterprise-architecture-pattern-stack-selector

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install bookforge-enterprise-architecture-pattern-stack-selector using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Enterprise Architecture Pattern Stack Selector?

The Enterprise Architecture Pattern Stack Selector is an expert-level tool designed for software architects and senior engineers who need to make critical structural decisions at the start of a project or during a major refactor. By analyzing the complexity of your domain logic, your technology stack, and existing constraints, this skill guides you through selecting the most appropriate patterns for every layer of an enterprise system—from data persistence to web presentation.

Built on the foundational principles of Martin Fowler's Patterns of Enterprise Application Architecture (PEAA), this skill acts as a central hub. It ensures that your choices are internally consistent, preventing common architectural mismatches like using a complex Data Mapper for a simple CRUD application or attempting to manage a rich Domain Model with basic Active Record patterns. By leveraging Openclaw Skills, teams can establish a shared technical vocabulary and a clear rationale for their architectural choices.

Enterprise Architecture Pattern Stack Selector Use Cases

  • Starting greenfield enterprise application design to establish a solid structural foundation.
  • Evaluating architectural patterns for a new subsystem within an existing legacy application.
  • Refactoring enterprise systems where the current logic is becoming tangled or duplicated.
  • Aligning distributed teams on a consistent pattern vocabulary for cross-layer development.
  • Conducting architecture reviews to audit if current persistence and domain logic patterns match system complexity.

How Enterprise Architecture Pattern Stack Selector Works

  1. Context Analysis: The skill gathers details about your tech stack (language, ORM, framework) and assesses the complexity of your business rules.
  2. Domain Logic Selection: It identifies the core domain pattern—Transaction Script, Domain Model, or Table Module—as this decision dictates all downstream architectural choices.
  3. Data Source Routing: Based on the domain logic choice, it recommends the optimal persistence pattern, such as Table Data Gateway or Data Mapper.
  4. Web Presentation Mapping: It selects the most efficient controller and view patterns (e.g., Front Controller vs. Page Controller) based on UI requirements.
  5. Concurrency and Distribution Audit: It applies the First Law of Distributed Object Design and selects offline locking strategies to prevent data corruption.
  6. Documentation Generation: Finally, it produces a comprehensive Pattern Stack Decision Record markdown file for the team's documentation.

Enterprise Architecture Pattern Stack Selector Setup

To install this skill and its dependencies via your CLI, use the following commands:

# Install the core pattern stack selector
clawhub install bookforge-enterprise-architecture-pattern-stack-selector

# Recommended: Install associated family selector skills for deeper analysis
clawhub install bookforge-domain-logic-pattern-selector
clawhub install bookforge-data-source-pattern-selector

Ensure you have your environment context or codebase ready for analysis to get the most accurate pattern recommendations.

Enterprise Architecture Pattern Stack Selector Data Schema & Taxonomy

The skill generates a Pattern Stack Decision Record, which is a structured Markdown document. The schema includes the following key sections:

Section Description
Subsystem Name and scope of the analyzed component.
Stack Details of the language, framework, and ORM in use.
Domain Logic Layer The chosen pattern (e.g., Domain Model) and its rationale.
Data Source Layer Persistence patterns and behavioral tools like Unit of Work.
Web Presentation Controller and View patterns selected for the UI layer.
Concurrency The offline locking strategy (Optimistic/Pessimistic).
Risks & Next Steps Identification of architectural growth risks and implementation guides.

Enterprise Architecture Pattern Stack Selector Advanced Features

  • Cross-Skill Routing: Automatically suggests and links to specialized family selector skills for deep-dive implementation guidance.
  • Framework Default Awareness: Recognizes default patterns in major frameworks like Spring Boot, Rails, Django, and ASP.NET Core to prevent "fighting the framework."
  • Automated Anti-Pattern Detection: Scans codebase metadata to warn against expensive mismatches between domain complexity and persistence layers.
  • Distribution Analysis: Enforces the First Law of Distributed Object Design, providing Remote Facade and DTO strategies only when strictly necessary.
  • Offline Concurrency Strategy: Sophisticated selection logic for Optimistic vs. Pessimistic Offline Locking based on user-editing workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*