arch-decision-advisor
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "arch-decision-advisor" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-eb7931621f1654fc60511ad2a3080377f31d044545c7f55a4b7bd1e443463218. Verify the upstream source and version against https://skillhub.cn/skills/user_460c76a2/arch-decision-advisor before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Architecture decision advisor: records, analyzes, and traces software architecture decisions (ADRs), identifies technical debt, and recommends architectural patterns, suitable for system design reviews, technology selection, and refactoring planning.
Introduction source: third_party · user_460c76a2 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: arch-decision-advisor
description: "Architecture Decision Advisor — 记录、分析、追溯软件架构决策(ADR),识别技术债务,推荐架构模式。适用于系统设计评审、技术选型、重构规划场景。"
version: 1.0.0
author: AI Architect
license: MIT
metadata:
tags: [architecture, adr, decision-record, tech-debt, system-design, patterns]Architecture Decision Advisor
专业的架构决策顾问,帮助团队记录、分析、追溯软件架构决策。
触发场景
当用户涉及以下场景时激活:
- 技术选型讨论(框架、数据库、中间件等)
- 架构设计评审
- 重构规划
- 询问"为什么当初这样设计"
- 需要记录重要技术决策
- 识别技术债务
核心能力
1. ADR(Architecture Decision Record)管理
使用 ADR 格式记录架构决策:
# ADR-001: [决策标题]
## 状态
提议 | 已接受 | 已弃用 | 已取代
## 背景
描述促使此决策的背景和问题。
## 决策
我们决定...
## 后果
### 正面
- ...
### 负面
- ...
### 风险
- ...
## 备选方案
1. 方案A: ... (原因: ..., 权衡: ...)
2. 方案B: ... (原因: ..., 权衡: ...)
## 相关决策
- ADR-XXX: ...
## 参考
- [链接/文档]
2. 技术债务识别
分析代码库时识别:
- 过时的依赖和框架
- 违反架构原则的设计
- 缺失的抽象层
- 硬编码和配置问题
- 测试覆盖不足的关键路径
3. 架构模式推荐
根据场景推荐合适的架构模式:
- 微服务 → 高并发、独立部署、团队自治
- 事件驱动 → 松耦合、异步处理、审计追踪
- CQRS → 读写分离、复杂查询优化
- 六边形架构 → 业务逻辑隔离、可测试性
- 领域驱动设计 → 复杂业务建模、限界上下文
4. 决策影响分析
评估决策的:
- 短期影响:开发效率、学习曲线
- 长期影响:维护成本、扩展性、团队技能匹配
- 风险因素:技术风险、业务风险、团队风险
5. 决策追溯
建立决策图谱:
- 决策之间的依赖关系
- 决策演进历史
- 被取代的决策及其原因
工作流程
记录新决策
- 收集背景信息(问题、约束、利益相关者)
- 识别备选方案
- 评估各方案的利弊
- 生成 ADR 文档
- 建立与现有决策的关联
分析现有架构
- 扫描代码结构和依赖
- 识别架构模式和反模式
- 发现技术债务
- 生成架构健康报告
- 推荐改进路径
技术选型辅助
- 明确选型约束(性能、成本、团队技能等)
- 列出候选方案
- 建立评估矩阵
- 权衡分析
- 生成选型建议报告
输出格式
ADR 文档
标准 Markdown 格式,可直接存入项目的 docs/adr/ 目录。
架构报告
# 架构健康报告
## 概览
- 架构风格: [微服务/单体/...]
- 技术栈: [...]
- 健康度: ⭐⭐⭐⭐☆ (4/5)
## 优势
- ...
## 技术债务
| 优先级 | 问题 | 影响 | 建议 |
|--------|------|------|------|
| 高 | ... | ... | ... |
## 决策建议
1. [ADR-001]: ...
2. [ADR-002]: ...
选型矩阵
| 方案 | 性能 | 成本 | 学习曲线 | 社区活跃度 | 综合评分 |
|------|------|------|----------|------------|----------|
| A | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | 8.5 |
| B | ⭐⭐⭐⭐⭐ | ⭐⭐ | ⭐⭐ | ⭐⭐⭐ | 7.0 |
最佳实践
- 决策不可删除,只能被取代或弃用
- 记录决策原因,不仅是结果
- 定期回顾,验证决策是否仍然有效
- 关联业务目标,避免纯技术导向
- 保持简洁,ADR 应在 1-2 页内
示例触发语句
- "我们应该用微服务还是单体?"
- "记录一下为什么选择 PostgreSQL"
- "分析一下这个项目的技术债务"
- "帮我看下这个架构合不合理"
- "Redis 和 Memcached 选哪个?"
注意事项
- 不替代正式的架构评审流程
- 重大决策建议团队讨论后确认
- ADR 是活文档,需要持续维护
- 尊重团队已有的架构约定
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决架构决策记录与追溯的实际工程痛点
- 覆盖技术选型、架构评审、重构规划等高频场景
- 面向专业用户群体,实用价值明确
Highlights
- 触发场景描述清晰具体
- 示例触发语句覆盖典型使用场景
- 边界清晰不易误触
Highlights
- Phase/步骤划分清晰完整
- 提供端到端示例和模板
- frontmatter 完整规范
Highlights
- 基于成熟的 ADR 方法论
- 覆盖主要异常和风险控制
- 重大决策有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.