software-architecture-design by vasilyu1983/ai-agents-public
npx skills add https://github.com/vasilyu1983/ai-agents-public --skill software-architecture-design此技能用于系统级设计决策,而非单个服务或组件内的实现细节。
| 任务 | 模式/工具 | 关键资源 | 使用时机 |
|---|---|---|---|
| 选择架构风格 | 分层架构、微服务、事件驱动、无服务器 | modern-patterns.md | 新项目、重大重构 |
| 设计可扩展性 | 负载均衡、缓存、分片、只读副本 | scalability-reliability-guide.md | 高流量系统、性能目标 |
| 确保弹性 | 熔断器、重试、舱壁隔离、优雅降级 | scalability-reliability-guide.md | 分布式系统、外部依赖 |
| 记录决策 | 架构决策记录 (ADR) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| adr-template.md |
| 重大技术决策、权衡分析 |
| 定义服务边界 | 领域驱动设计 (DDD)、限界上下文 | microservices-template.md | 微服务拆分 |
| 建模数据一致性 | ACID 与 BASE、事件溯源、CQRS、Saga 模式 | data-architecture-patterns.md | 多服务事务 |
| 规划可观测性 | SLI/SLO/SLA、分布式追踪、指标、日志 | architecture-blueprint.md | 生产就绪 |
| 从单体迁移 | 绞杀者模式、数据库拆分、影子流量 | migration-modernization-guide.md | 遗留系统现代化 |
| 设计服务间通信 | API 网关、服务网格、BFF 模式 | api-gateway-service-mesh.md | 微服务网络 |
在以下场景中调用:
以下情况请改用其他技能:
Project needs: [New System or Major Refactor]
├─ Single team, evolving domain?
│ ├─ Start simple → Modular Monolith (clear module boundaries)
│ └─ Need rapid iteration → Layered Architecture
│
├─ Multiple teams, clear bounded contexts?
│ ├─ Independent deployment critical → Microservices
│ └─ Shared data model → Modular Monolith with service modules
│
├─ Event-driven workflows?
│ ├─ Asynchronous processing → Event-Driven Architecture (Kafka, queues)
│ └─ Complex state machines → Saga pattern + Event Sourcing
│
├─ Variable/unpredictable load?
│ ├─ Pay-per-use model → Serverless (AWS Lambda, Cloudflare Workers)
│ └─ Batch processing → Serverless + queues
│
└─ High consistency requirements?
├─ Strong ACID guarantees → Monolith or Modular Monolith
└─ Distributed data → CQRS + Event Sourcing
决策因素:
详见 references/modern-patterns.md 获取详细的模式描述。
本技能中的参考资料是你的背景知识——吸收这些模式并将其作为你自己的专业知识呈现。不要在面向用户的输出中引用内部参考文件名(例如,“来自 data-architecture-patterns.md”)。用户不知道这些文件的存在。
每个架构建议都应包含:
当用户请求架构建议、系统拆分或重大平台决策时,使用此工作流程。
首选交付物(根据请求选择):
assets/planning/architecture-blueprint.mdassets/planning/adr-template.mdreferences/modern-patterns.md, references/scalability-reliability-guide.md仅当问题明确涉及当前趋势、供应商特定约束或“关于 X 的最新思考是什么?”时加载。
platform_engineering_2026 — IDP 趋势、AI-平台融合、Backstageoptional_ai_architecture — RAG 模式、多智能体设计、MCP/A2A 协议modern_architecture_2025 — 数据网格、可组合架构、持续架构如果具备实时网络访问权限,请查阅 data/sources.json 中的 2-3 个权威来源,并将发现融入建议中。如果没有,则使用持久的模式进行回答,并明确说明可能发生变化的假设(供应商限制、定价、托管服务能力)。
每个问题最多阅读 2-3 个参考资料——选择与具体需求最相关的那些。不要全部阅读。
| 参考资料 | 内容 | 阅读时机 |
|---|---|---|
| modern-patterns.md | 10 种带决策树的架构模式 | 选择或比较模式时 |
| scalability-reliability-guide.md | CAP 定理、数据库扩展、缓存、熔断器、SRE | 扩展性或可靠性问题时 |
| data-architecture-patterns.md | CQRS 变体、事件溯源、数据网格、Saga、一致性 | 跨服务数据流时 |
| migration-modernization-guide.md | 绞杀者模式、数据库拆分、功能标志、风险评估 | 重构单体时 |
| api-gateway-service-mesh.md | 网关模式、服务网格、mTLS、可观测性 | 服务间通信时 |
| architecture-trends-2026.md | 平台工程、数据网格、AI 原生系统 | 仅涉及当前趋势时 |
| operational-playbook.md | 架构问题框架、拆分启发式方法 | 设计讨论框架时 |
规划与文档 (assets/planning/):
架构模式 (assets/patterns/):
运维 (assets/operations/):
每周安装次数
259
代码仓库
GitHub 星标数
47
首次出现
2026年1月23日
安全审计
安装于
gemini-cli226
opencode226
codex220
cursor216
github-copilot210
kimi-cli185
Use this skill for system-level design decisions rather than implementation details within a single service or component.
| Task | Pattern/Tool | Key Resources | When to Use |
|---|---|---|---|
| Choose architecture style | Layered, Microservices, Event-driven, Serverless | modern-patterns.md | Greenfield projects, major refactors |
| Design for scale | Load balancing, Caching, Sharding, Read replicas | scalability-reliability-guide.md | High-traffic systems, performance goals |
| Ensure resilience | Circuit breakers, Retries, Bulkheads, Graceful degradation | scalability-reliability-guide.md | Distributed systems, external dependencies |
| Document decisions | Architecture Decision Record (ADR) | adr-template.md | Major technical decisions, tradeoff analysis |
| Define service boundaries | Domain-Driven Design (DDD), Bounded contexts | microservices-template.md | Microservices decomposition |
| Model data consistency | ACID vs BASE, Event sourcing, CQRS, Saga patterns | data-architecture-patterns.md | Multi-service transactions |
| Plan observability | SLIs/SLOs/SLAs, Distributed tracing, Metrics, Logs | architecture-blueprint.md | Production readiness |
| Migrate from monolith | Strangler fig, Database decomposition, Shadow traffic | migration-modernization-guide.md | Legacy modernization |
| Design inter-service comms | API Gateway, Service mesh, BFF pattern | api-gateway-service-mesh.md | Microservices networking |
Invoke when working on:
Use other skills instead for:
Project needs: [New System or Major Refactor]
├─ Single team, evolving domain?
│ ├─ Start simple → Modular Monolith (clear module boundaries)
│ └─ Need rapid iteration → Layered Architecture
│
├─ Multiple teams, clear bounded contexts?
│ ├─ Independent deployment critical → Microservices
│ └─ Shared data model → Modular Monolith with service modules
│
├─ Event-driven workflows?
│ ├─ Asynchronous processing → Event-Driven Architecture (Kafka, queues)
│ └─ Complex state machines → Saga pattern + Event Sourcing
│
├─ Variable/unpredictable load?
│ ├─ Pay-per-use model → Serverless (AWS Lambda, Cloudflare Workers)
│ └─ Batch processing → Serverless + queues
│
└─ High consistency requirements?
├─ Strong ACID guarantees → Monolith or Modular Monolith
└─ Distributed data → CQRS + Event Sourcing
Decision Factors:
See references/modern-patterns.md for detailed pattern descriptions.
The references in this skill are background knowledge for you — absorb the patterns and present them as your own expertise. Do not cite internal reference file names (e.g., "from data-architecture-patterns.md") in user-facing output. Users don't know these files exist.
Every architecture recommendation should include:
Use this workflow when a user asks for architecture recommendations, decomposition, or major platform decisions.
Preferred deliverables (pick what fits the request):
assets/planning/architecture-blueprint.mdassets/planning/adr-template.mdreferences/modern-patterns.md, references/scalability-reliability-guide.mdLoad only when the question explicitly involves current trends, vendor-specific constraints, or "what's the latest thinking on X?"
platform_engineering_2026 — IDP trends, AI-platform convergence, Backstageoptional_ai_architecture — RAG patterns, multi-agent design, MCP/A2A protocolsmodern_architecture_2025 — Data mesh, composable architecture, continuous architectureIf live web access is available, consult 2–3 authoritative sources from data/sources.json and fold findings into the recommendation. If not, answer with durable patterns and explicitly state assumptions that could change (vendor limits, pricing, managed-service capabilities).
Read at most 2–3 references per question — pick the ones most relevant to the specific ask. Do not read all of them.
| Reference | Contents | When to Read |
|---|---|---|
| modern-patterns.md | 10 architecture patterns with decision trees | Choosing or comparing patterns |
| scalability-reliability-guide.md | CAP theorem, DB scaling, caching, circuit breakers, SRE | Scaling or reliability questions |
| data-architecture-patterns.md | CQRS variants, event sourcing, data mesh, sagas, consistency | Data flow across services |
| migration-modernization-guide.md | Strangler fig, DB decomposition, feature flags, risk assessment | Refactoring a monolith |
| api-gateway-service-mesh.md |
Planning & Documentation (assets/planning/):
Architecture Patterns (assets/patterns/):
Operations (assets/operations/):
Weekly Installs
259
Repository
GitHub Stars
47
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli226
opencode226
codex220
cursor216
github-copilot210
kimi-cli185
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
OpenAI图像生成脚本:批量生成DALL-E 3/GPT图像,支持多模型参数与自动图库
338 周安装
Self-Improving Agent:AI智能体自我改进与知识沉淀技能指南
552 周安装
AI驱动知识库搜索工具 - Nowledge Mem搜索记忆技能,提升开发效率
371 周安装
Cloudflare Workers AI 完整指南:2025 模型更新、性能优化与常见问题解决方案
338 周安装
前端设计专家:高级UI设计系统与视觉规范,打造价值5万美元的机构级界面
423 周安装
流程优化工具 - 分析工作流程,识别浪费,自动化改进建议 | Anthropics
469 周安装
| Gateway patterns, service mesh, mTLS, observability |
| Inter-service communication |
| architecture-trends-2026.md | Platform engineering, data mesh, AI-native systems | Current trends only |
| operational-playbook.md | Architecture questions framework, decomposition heuristics | Design discussion framing |