Skip to main content
在 Manus 中运行任何 Skill
一键导入

hexagonal-architecture

星标2
分支0
更新时间2026年7月9日 00:38

Ports & Adapters (hexagonal) design discipline for keeping business logic independent of frameworks, transport, and persistence. Covers the inward dependency rule, inbound/outbound port modelling, use-case orchestration with injected ports, edge adapters, the single composition root, per-boundary test strategy, a slice-by-slice strangler migration playbook, and the cross-language mapping of the same boundary rules onto TypeScript, Java, Kotlin, and Go layouts. Use when: standing up a new feature where testability and long-term change cost matter; refactoring a framework-heavy or layered service where domain logic is tangled with I/O; exposing one use case over multiple interfaces (HTTP, CLI, queue worker, cron); or swapping infrastructure (DB, third-party API, message bus) without rewriting business rules.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly