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

architecture-review架构评论

Agent Skill

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

总安装

3,284

周安装

137

GitHub Stars

4

下载量

1,590
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/eyadsibai/ltk --skill 'Architecture Review'

简介

architecture-review 用于查找、检索和筛选相关信息。

  • 适合根据关键词、任务场景或来源线索快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Architecture Review

Comprehensive architecture analysis skill for understanding project structure, dependencies, and design patterns.

Core Capabilities

Project Structure Analysis

Understand and evaluate codebase organization:

Directory Structure Patterns:

  • Flat structure (small projects)
  • Feature-based organization
  • Layer-based organization (MVC, Clean Architecture)
  • Domain-driven design structure

Key files to identify:

  • Entry points (main.py, index.js, cmd/)
  • Configuration files
  • Test directories
  • Build/deploy configurations
  • Documentation

Structure assessment:

project/
├── src/          # Source code
├── tests/        # Test files
├── docs/         # Documentation
├── scripts/      # Utility scripts
├── config/       # Configuration
└── README.md     # Project overview

Dependency Analysis

Map and evaluate dependencies:

Internal Dependencies:

  • Module import graphs
  • Circular dependency detection
  • Coupling analysis
  • Cohesion measurement

External Dependencies:

  • Third-party package analysis
  • Version constraints
  • Transitive dependencies
  • License compatibility

Dependency visualization:

# Python - using pydeps
pydeps --cluster src/

# Python - using pipdeptree
pipdeptree --warn silence

# JavaScript
npm ls --all

Circular Import Detection

Identify and resolve circular dependencies:

Detection approach:

  1. Build import graph from source files
  2. Perform cycle detection (DFS)
  3. Report circular chains
  4. Suggest resolution strategies

Resolution strategies:

  • Extract shared code to new module
  • Use dependency injection
  • Lazy imports (import inside function)
  • Interface segregation

Design Pattern Recognition

Identify common patterns in code:

Creational Patterns:

  • Factory (object creation abstraction)
  • Singleton (single instance)
  • Builder (step-by-step construction)
  • Dependency Injection

Structural Patterns:

  • Adapter (interface conversion)
  • Decorator (dynamic behavior)
  • Facade (simplified interface)
  • Repository (data access abstraction)

Behavioral Patterns:

  • Strategy (algorithm selection)
  • Observer (event handling)
  • Command (action encapsulation)
  • State (state machine)

Architecture Evaluation

Layer Analysis

For layered architectures, verify:

Presentation Layer:

  • Controllers/Views
  • Input validation
  • Response formatting

Business Layer:

  • Domain logic
  • Business rules
  • Service orchestration

Data Layer:

  • Repositories
  • Data access
  • External integrations

Cross-cutting concerns:

  • Logging
  • Authentication
  • Error handling
  • Caching

Coupling & Cohesion

Coupling (lower is better):

  • Afferent coupling (Ca): Who depends on this module
  • Efferent coupling (Ce): What this module depends on
  • Instability: Ce / (Ca + Ce)

Cohesion (higher is better):

  • Single responsibility adherence
  • Related functionality grouping
  • Clear module boundaries

SOLID Principles Check

Evaluate adherence to:

S - Single Responsibility:

  • Each class has one reason to change
  • Clear, focused modules

O - Open/Closed:

  • Open for extension
  • Closed for modification

L - Liskov Substitution:

  • Subtypes substitutable for base types
  • Proper inheritance hierarchies

I - Interface Segregation:

  • Specific interfaces over general ones
  • No forced implementation of unused methods

D - Dependency Inversion:

  • Depend on abstractions
  • High-level modules independent of low-level

Analysis Workflow

Full Architecture Review

  1. Map structure: Understand directory layout
  2. Identify entry points: Find main execution paths
  3. Build dependency graph: Map internal/external deps
  4. Detect issues: Circular deps, high coupling
  5. Recognize patterns: Identify design patterns used
  6. Evaluate quality: Check SOLID, coupling/cohesion
  7. Report findings: Summarize with recommendations

Quick Architecture Check

For rapid assessment:

  1. Review key configuration files
  2. Check import structure of main modules
  3. Identify obvious architectural issues
  4. Note areas needing deeper review

Output Format

Structure Report

Project: my-project
Type: Web Application (FastAPI)
Architecture: Layered (API/Service/Repository)

Directory Structure:
├── api/          [Presentation Layer]
├── services/     [Business Layer]
├── repositories/ [Data Layer]
├── models/       [Domain Models]
└── utils/        [Shared Utilities]

Entry Points:
- main.py (FastAPI application)
- cli.py (Command line interface)

Dependency Report

Module Dependencies:
┌─────────────┬────────────┬────────────┐
│ Module      │ Imports    │ Imported By│
├─────────────┼────────────┼────────────┤
│ api.users   │ 5          │ 2          │
│ services.   │ 8          │ 4          │
│ repos.db    │ 3          │ 6          │
└─────────────┴────────────┴────────────┘

Circular Dependencies Found: 2
1. services.auth → services.user → services.auth
2. models.order → models.product → models.order

Quality Assessment

AspectScoreNotes
Structure8/10Clear layer separation
Coupling6/10Some tight coupling in services
Cohesion7/10Good module focus
SOLID7/10DI could be improved

Common Architectural Issues

High Priority

  1. Circular dependencies: Break cycles immediately
  2. God classes: Split into focused components
  3. Missing abstraction layers: Add interfaces

Medium Priority

  1. High coupling: Introduce dependency injection
  2. Inconsistent patterns: Standardize approaches
  3. Mixed responsibilities: Refactor to single responsibility

Low Priority

  1. Naming inconsistencies: Standardize naming
  2. Missing documentation: Add architecture docs
  3. Test organization: Align with source structure

Recommendations Template

For each finding, provide:

Issue: [Description]
Location: [Files/modules affected]
Impact: [Why this matters]
Recommendation: [How to fix]
Effort: [Low/Medium/High]
Priority: [High/Medium/Low]

Integration

Coordinate with other skills:

  • refactoring skill: For implementing architectural changes
  • documentation skill: For architecture documentation
  • code-quality skill: For detailed code analysis

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.74%
按下载量换算600

Claude

29.05%
按下载量换算462

Cursor

17.18%
按下载量换算273

Gemini CLI

8.63%
按下载量换算137

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills