agentsclimarketplace

Architecture

Skill xiaobei930/cc-best/skills/architecture

Architecture design skill: ADR records, system design checklists, scalability assessment, architecture patterns. Use for complex system design and architecture decisions.From its SKILL.md

Install
npx -y skills add xiaobei930/cc-best --skill architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

5.0 KB, ~1.8k tokens by cl100k_base, as published. Nobody here has run it

架构设计技能

本技能提供架构设计的完整指南,包括 ADR 记录、设计检查清单、可扩展性评估、架构模式速查等最佳实践。

子文件

架构决策记录 (ADR)

对于重要的架构决策,创建 ADR 记录:

ADR 模板 (docs/decisions/ADR-XXX.md)

# ADR-XXX: [决策标题]

## 状态

Proposed | Accepted | Deprecated | Superseded by ADR-YYY

## 上下文

[描述导致这个决策的背景、问题或需求]

## 决策

[明确说明做出的决策]

## 理由

[解释为什么选择这个方案]

## 备选方案

### 方案 A: [名称]

- 优点: ...
- 缺点: ...

### 方案 B: [名称]

- 优点: ...
- 缺点: ...

## 后果

### 正面

- [好处1]
- [好处2]

### 负面

- [代价1]
- [代价2]

### 风险

- [风险1] → 缓解: [措施]

## 相关决策

- ADR-XXX: [相关决策]

## 日期

YYYY-MM-DD

何时创建 ADR

场景是否需要 ADR
选择主要技术栈(框架、数据库)✅ 必须
定义核心架构模式✅ 必须
引入新的外部依赖⚠️ 视影响范围
API 设计重大变更✅ 必须
简单的实现细节❌ 不需要

系统设计检查清单

设计方案前,检查以下维度:

功能性需求

  • 用户故事是否清晰完整
  • API 契约是否定义明确
  • 数据模型是否满足需求
  • 边界条件是否考虑

非功能性需求

  • 性能: 响应时间目标?吞吐量要求?
  • 可扩展性: 预期用户量?数据增长?
  • 可用性: 可接受的停机时间?
  • 安全性: 认证授权?数据保护?

技术设计

  • 架构图是否清晰
  • 组件职责是否明确
  • 数据流是否完整
  • 错误处理策略是否定义
  • 测试策略是否规划

运维考虑

  • 部署策略是否明确
  • 监控告警是否规划
  • 日志策略是否定义
  • 回滚方案是否准备

可扩展性评估

扩展阶段规划

阶段用户量架构要求
MVP<1K单体应用足够
成长期1K-10K优化数据库查询,添加缓存
扩展期10K-100K服务拆分,读写分离
规模化>100K微服务,分布式缓存,多区域

常见瓶颈与解决方案

瓶颈解决方案
数据库读取慢索引优化 → 读写分离 → 缓存层
API 响应慢异步处理 → 消息队列 → CDN
内存不足分页加载 → 流式处理 → 扩容
并发冲突乐观锁 → 分布式锁 → 事件溯源

架构模式速查

后端模式

模式适用场景复杂度
分层架构大多数 CRUD 应用
六边形架构需要高可测试性
CQRS读写负载差异大
事件溯源需要完整审计轨迹
微服务团队多、规模大

前端模式

模式适用场景
组件组合构建复杂 UI
状态提升组件间共享状态
Context + Reducer全局状态管理
自定义 Hooks复用有状态逻辑
渲染属性灵活的组件复用

数据访问模式

模式说明
Repository抽象数据访问层
Unit of Work事务管理
DAO数据访问对象
Active Record模型直接操作数据库

架构评审清单

在提交设计方案前:

  • 是否遵循现有架构模式
  • 是否考虑了向后兼容性
  • 是否有明确的错误处理策略
  • 是否考虑了监控和可观测性
  • 是否有性能基准和目标
  • 是否考虑了安全性
  • 是否有回滚方案

与 /cc-best:lead 角色的配合

/cc-best:lead 技术设计
    ↓
  需要架构决策?
    ├─ 是 → 创建 ADR 记录
    └─ 否 → 继续设计
    ↓
  设计检查清单
    ↓
  任务分解
    ↓
  /cc-best:dev 开始实现

记住: 架构决策要记录理由——ADR 不是文档负担,而是未来自己和团队的决策参考。

What ships with it: 2 files

14.7 KB alongside SKILL.md

Gives 0 of the 12 instructions most architecture codebase skills give in ~1.8k tokens

Counted across 858 of the 1,304 authors here whose files we hold, read 2026-09-06

  • Apply the deletion test to identify shallow modulesin 32 of 858, across 31 files
  • Read domain glossary and ADRs before exploringin 22 of 858, across 19 files
  • Use Tailwind and Mermaid via CDN for reportsin 21 of 858, across 18 files
  • Document architecture decision recordsin 20 of 858, across 12 files
  • Offer to record ADRs for rejected candidatesin 17 of 858, across 14 files
  • Limit primary navigation to four to seven itemsin 17 of 858, across 7 files
  • Write HTML report to the system temp directoryin 17 of 858, across 14 files
  • Read product marketing context before asking questionsin 16 of 858, across 6 files
  • Use Mermaid graph TD for visual sitemapsin 15 of 858, across 5 files
  • Ensure every page has at least one internal linkin 15 of 858, across 5 files
  • Use ASCII tree format for page hierarchy draftsin 15 of 858, across 5 files
  • Enforce lowercase URLs with hyphensin 15 of 858, across 5 files

Said here and by no other author read

  • verify functional requirements before finalizing design
  • check non-functional requirements including performance and security
  • evaluate scalability based on user growth stages
  • plan deployment and monitoring strategies
  • ensure backward compatibility in design
  • define error handling strategies clearly

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.