重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
architecture-review by oimiragieo/agent-studio
npx skills add https://github.com/oimiragieo/agent-studio --skill architecture-review通过以下方式理解当前架构:
检查对基本原则的遵循情况:
SOLID 原则:
其他原则:
识别常见的反模式:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
根据非功能性需求进行评估:
创建结构化的报告,包含:
</execution_process>
<best_practices>
</best_practices>
Review the architecture of src/services/ for scalability and maintainability
示例响应结构:
## 架构审查:src/services/
### 摘要
服务层遵循合理的结构,但存在一些耦合问题...
### 优点
- API 处理器与业务逻辑之间分离清晰
- 很好地使用了依赖注入
### 关注点
1. **高优先级**:UserService 有 15 个方法(上帝类)
2. **中优先级**:OrderService 和 InventoryService 之间存在循环依赖
3. **低优先级**:验证逻辑中存在一些魔法数字
### 建议
1. 将 UserService 拆分为 UserAuthService 和 UserProfileService
2. 引入 EventBus 以解耦订单和库存
3. 将验证常量提取到配置中
</usage_example>
| 反模式 | 失败原因 | 正确方法 |
|---|---|---|
| 未评估非功能性需求 | 设计可能通过功能测试,但在扩展或受攻击时失败 | 始终评估性能、安全性、可扩展性、可观测性 |
| 只审查正常路径 | 系统在错误边界处失败,而非正常路径 | 审查故障模式、重试行为和熔断机制 |
| 未经权衡记录就批准 | 隐藏的权衡会成为未来的意外 | 明确记录所有权衡及其理由 |
| 单点故障未记录 | 系统存在静默的脆弱性,在负载下显现 | 映射所有单点故障;要求为每个制定缓解计划 |
| 检查 SOLID 原则但未检查反模式目录 | 遵循原则并不能保证没有反模式 | 同时检查原则和具体反模式(上帝类、霰弹式修改等) |
| 在实现开始后才进行架构审查 | 修复结构性问题为时已晚,需要大量返工 | 在设计阶段、编写任何代码之前进行审查 |
此技能对应一个用于复杂多智能体场景的工作流:
.claude/workflows/architecture-review-skill-workflow.md开始前:
cat .claude/context/memory/learnings.md
完成后:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.md假设中断:您的上下文可能会重置。如果不在内存中,则视为未发生。
每周安装次数
69
仓库
GitHub 星标数
22
首次出现
2026 年 1 月 27 日
安全审计
安装于
github-copilot68
gemini-cli67
amp66
codex66
kimi-cli66
opencode66
Understand the current architecture by:
Check adherence to fundamental principles:
SOLID Principles :
Other Principles :
Identify common anti-patterns:
Evaluate against NFRs:
Create a structured report with:
</execution_process>
<best_practices>
</best_practices>
Review the architecture of src/services/ for scalability and maintainability
Example Response Structure :
## Architecture Review: src/services/
### Summary
The service layer follows a reasonable structure but has some coupling issues...
### Strengths
- Clear separation between API handlers and business logic
- Good use of dependency injection
### Concerns
1. **High Priority**: UserService has 15 methods (God Class)
2. **Medium Priority**: Circular dependency between OrderService and InventoryService
3. **Low Priority**: Some magic numbers in validation logic
### Recommendations
1. Split UserService into UserAuthService and UserProfileService
2. Introduce EventBus to decouple Order and Inventory
3. Extract validation constants to configuration
</usage_example>
| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| No NFR evaluation | Design may pass functional tests but fail at scale or under attack | Always evaluate performance, security, scalability, observability |
| Reviewing only the happy path | Systems fail at error boundaries, not in the happy path | Review failure modes, retry behavior, and circuit breakers |
| Approving without trade-off documentation | Hidden trade-offs become future surprises | Explicitly document all trade-offs with rationale |
| Single point of failure left undocumented | System has silent fragility that surfaces under load | Map all SPOFs; require mitigation plans for each |
| Checking SOLID without anti-pattern catalog | Principle adherence doesn't guarantee absence of anti-patterns | Check both principles AND concrete anti-patterns (God Class, Shotgun Surgery, etc.) |
| Architecture review after implementation starts | Too late to fix structural issues without major rework | Review in design phase, before any code is written |
This skill has a corresponding workflow for complex multi-agent scenarios:
.claude/workflows/architecture-review-skill-workflow.mdBefore starting:
cat .claude/context/memory/learnings.md
After completing:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Weekly Installs
69
Repository
GitHub Stars
22
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot68
gemini-cli67
amp66
codex66
kimi-cli66
opencode66
代码库搜索技能指南:精准查找函数、追踪依赖、理解架构与定位错误
10,900 周安装