Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

architecture-review架构评论

Agent Skill

architecture-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,885

周安装

77

GitHub Stars

25

下载量

604
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:architecture-review(架构评论)
来源仓库:https://github.com/oimiragieo/agent-studio
仓库路径:skills/architecture-review
安装命令:
npx skills add https://github.com/oimiragieo/agent-studio --skill architecture-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill architecture-review

简介

architecture-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于架构设计、技术选型和系统分析等研究检索类任务。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令添加技能。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Architecture Review Skill

Step 1: Gather Architecture Context

Understand the current architecture by:

  1. Read project structure: Use Glob to map directory structure
  2. Identify key components: Find entry points, services, data layers
  3. Review dependencies: Check package.json, imports, module graph
  4. Understand data flow: Trace requests through the system

Step 2: Evaluate Design Principles

Check adherence to fundamental principles:

SOLID Principles:

  • Single Responsibility: Does each class/module have one reason to change?
  • Open/Closed: Can behavior be extended without modification?
  • Liskov Substitution: Are subtypes substitutable for base types?
  • Interface Segregation: Are interfaces focused and minimal?
  • Dependency Inversion: Do high-level modules depend on abstractions?

Other Principles:

  • DRY: Is logic duplicated unnecessarily?
  • YAGNI: Are there unused or speculative features?
  • Separation of Concerns: Are responsibilities properly divided?

Step 3: Check for Anti-Patterns

Identify common anti-patterns:

  • God Class/Module: Classes doing too much
  • Spaghetti Code: Tangled, hard-to-follow logic
  • Circular Dependencies: Modules that reference each other
  • Feature Envy: Classes that use other classes' data excessively
  • Shotgun Surgery: Changes that require touching many files
  • Leaky Abstractions: Implementation details exposed to consumers

Step 4: Assess Non-Functional Requirements

Evaluate against NFRs:

  • Scalability: Can the system handle increased load?
  • Maintainability: How easy is it to modify and extend?
  • Testability: Can components be tested in isolation?
  • Security: Are there potential vulnerabilities?
  • Performance: Are there obvious bottlenecks?
  • Observability: Can the system be monitored effectively?

Step 5: Generate Review Report

Create a structured report with:

  1. Summary: Overall assessment and key findings
  2. Strengths: What the architecture does well
  3. Concerns: Issues requiring attention (prioritized)
  4. Recommendations: Specific improvements with rationale
  5. Trade-offs: Acknowledge valid design trade-offs

</execution_process>

<best_practices>

  1. Be Constructive: Focus on improvements, not criticism
  2. Prioritize Issues: Not all problems are equally important
  3. Consider Context: Understand constraints and trade-offs
  4. Suggest Alternatives: Don't just identify problems
  5. Reference Patterns: Cite established patterns when relevant

</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>

Iron Laws

  1. ALWAYS review architecture before COMPLEX or EPIC implementation starts — architectural problems discovered after implementation cost 10-100x more to fix; review in the design phase.
  2. NEVER approve an architecture with undocumented single points of failure — every SPOF must be explicitly identified and have a documented mitigation plan.
  3. ALWAYS evaluate against non-functional requirements — performance, security, scalability, maintainability, and observability are non-optional; functional correctness without NFR compliance is incomplete.
  4. NEVER treat architectural trade-offs as implicit — every trade-off must be explicitly documented with rationale; hidden trade-offs become future surprises and unowned technical debt.
  5. ALWAYS check for circular dependencies before approving a design — circular module dependencies make testing, refactoring, and deployment order unpredictable and progressively harder to resolve.

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
No NFR evaluationDesign may pass functional tests but fail at scale or under attackAlways evaluate performance, security, scalability, observability
Reviewing only the happy pathSystems fail at error boundaries, not in the happy pathReview failure modes, retry behavior, and circuit breakers
Approving without trade-off documentationHidden trade-offs become future surprisesExplicitly document all trade-offs with rationale
Single point of failure left undocumentedSystem has silent fragility that surfaces under loadMap all SPOFs; require mitigation plans for each
Checking SOLID without anti-pattern catalogPrinciple adherence doesn't guarantee absence of anti-patternsCheck both principles AND concrete anti-patterns (God Class, Shotgun Surgery, etc.)
Architecture review after implementation startsToo late to fix structural issues without major reworkReview in design phase, before any code is written

Rules

  • Always provide constructive feedback with actionable recommendations
  • Prioritize issues by impact and effort to fix
  • Consider existing constraints and trade-offs

Related Workflow

This skill has a corresponding workflow for complex multi-agent scenarios:

  • Workflow: .claude/workflows/architecture-review-skill-workflow.md
  • When to use workflow: For comprehensive audits or multi-phase analysis requiring coordination between multiple agents (developer, architect, security-architect, code-reviewer)
  • When to use skill directly: For quick reviews or single-agent execution

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.06%
按下载量换算230

Claude

31.84%
按下载量换算192

Cursor

17.28%
按下载量换算104

Gemini CLI

9.5%
按下载量换算57

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills