Skip to content
Agentmart
Submit a tool

architecture-patterns

架构设计模式参考 —— 常见架构风格的决策框架、优劣对比与适用场景

Skill by Sweetteabittersugar

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sweetteabittersugar-architecture-patterns

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

架构设计模式参考 —— 常见架构风格的决策框架、优劣对比与适用场景

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/architecture-patterns

What's inside

Skill name
architecture-patterns
Description
架构设计模式参考 —— 常见架构风格的决策框架、优劣对比与适用场景
License
MIT
Instructions
34 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • SKILL.md.disabled

SKILL.md (first lines)

# 架构设计模式

## 概述
提供常见软件架构模式的系统化参考,覆盖分层架构、微服务、事件驱动、CQRS 等主流风格,帮助在项目早期做出合理的架构决策。

## 使用场景
- 新项目启动阶段的技术选型
- 现有系统架构评审与重构规划
- 跨团队架构方案讨论的对齐参考
- 架构决策记录(ADR)的撰写依据

## 核心原则
1. **简单优先**:能用单体就不用微服务,能用单数据库就不用分布式。复杂度增加必须有对应的业务收益。
2. **先定义边界再选模式**:架构模式服务于业务领域边界,而不是反过来削足适履。
3. **非功能需求驱动**:可扩展性、可靠性、性能、安全性等非功能需求才是选型的核心依据。
4. **演进式设计**:架构不需要在第一天完美——预留扩展点,允许通过迭代演进。
5. **记录决策理由**:每个架构决策都要写 ADR,记录当时的选择、备选方案和权衡理由。

## 常见模式速查
- **分层架构**:展示层 → 业务层 → 持久层 → 数据层,适合中小型项目
- **六边形架构(端口适配器)**:领域核心通过端口与外部解耦,适合复杂业务
- **CQRS**:读写分离,适合读写负载差异大的场景
- **事件驱动**:通过事件总线解耦服务,适合异步流程和高吞吐
- **微内核**:核心 + 插件,适合产品平台化
- **微服务**:独立部署的服务单元,适合大规模团队和系统

## 检查清单
- [ ] 是否能用更简单的架构满足需求?
- [ ] 架构选型是否由明确的非功能需求驱动?
- [ ] 模块/服务边界是否与业务领域对齐?
- [ ] 是否有 ADR 记录关键决策及其理由?
- [ ] 是否预留了合理的演进路径和扩展点?

From Sweetteabittersugar/agency, MIT.

More from Sweetteabittersugar/agency

Signals

Stars
3
Forks
1
Open issues
0
Last commit (this folder)
Jun 10, 2026 (4 months ago)
Last release
Aug 24, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Sweetteabittersugar

Cite this page

architecture-patterns skill. Agent Mart. https://agentmart.dev/skills/sweetteabittersugar-architecture-patterns (last updated 2026-10-24)