📚 Enterprise
v1.0.0Base Pattern Cata记录Reference cata记录 for Fowler's 11 enterprise base patterns from Chapter 18 of PEAA. Use when another 技能 or user says 'we need a Gateway here', 'this shoul...
详细分析 ▾
运行时依赖
版本
Enterprise Base Pattern Catalog v1.0.0 – 初始发布 - 为 Fowler 的 11 个企业级基础模式(PEAA 第 18 章)提供参考目录,含定义、原理及现代对应。 - 依据模式名称或问题描述精准识别对应基础模式,并区分相近模式。 - 生成简洁设计笔记与多语言实现草图。 - 若问题超出基础模式范畴,自动路由至其他选择器。 - 面向架构师、高级工程师与技术负责人;无需代码库,亦可利用现有代码生成定制输出。
安装命令
点击复制技能文档
--- name: enterprise-base-pattern-catalog description: "Fowler《PEAA》第18章11种企业级基础模式的速查目录。当其他技能或用户说“这里需要Gateway”“这应该是个Value Object”“用Special Case代替null”“测试用Service Stub”“把接口和实现分离”时调用。覆盖全部11种基础模式:Gateway(封装外部系统)、Mapper(解耦子系统)、Layer Supertype(每层共享基类)、Separated Interface(依赖倒置打包)、Registry(服务定位器)、Value Object(值-身份不可变对象)、Money(货币运算,无float,按比例分配)、Special Case/Null Object(替代null检查)、Plugin(运行时绑定实现)、Service Stub(外部服务测试替身)、Record Set(通用表格数据结构)。识别描述问题适合的模式,给出权威定义与现代语言对照,区分Gateway(通用外部访问包装)与Table Data Gateway(数据访问模式),指出Registry vs DI容器权衡,并输出简短设计备注与实现草图。若问题不属于基础模式,则路由到对应家族选择器。" version: 1.0.0 homepage: https://github.com/bookforge-ai/bookforge-skills/tree/main/books/patterns-of-enterprise-application-architecture/skills/enterprise-base-pattern-catalog metadata: {"openclaw":{"emoji":"📚","homepage":"https://github.com/bookforge-ai/bookforge-skills"}} status: draft source-books:
- id: patterns-of-enterprise-application-architecture
- base-patterns
- design-patterns
- software-design
- software-architecture
- enterprise-patterns
- value-object
- gateway-pattern
- null-object
- dependency-inversion
- service-stub
- testing-patterns
- type: text
- type: codebase
- Read
- Grep
- Glob
- "选择数据源架构模式(Transaction Script、Data Mapper、Active Record)——用data-source-pattern-selector"
- "选择领域逻辑模式——用domain-logic-pattern-selector"
- "实现Unit of Work、Lazy Load或并发模式——用专用实现技能"
- "完整实现 walkthrough——本技能仅提供草图与引用,非完整代码"