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

codereview-architect代码审查架构师

Agent Skill

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

总安装

436

周安装

18

GitHub Stars

7

下载量

143
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/xinbenlv/codereview-skills --skill codereview-architect

简介

Code Review Architect 深度分析代码变更对系统整体架构的影响范围。

  • 追踪依赖关系图谱,识别受影响的代码路径和潜在连锁反应。
  • 强制执行架构一致性原则,防止破坏性设计决策引入技术债务。
  • 作为资深架构师角色,重点关注长期可维护性和系统集成风险防控。
  • codereview-architect 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Code Review Architect Skill

A "deep context" specialist that understands the codebase graph. This skill focuses on the "Blast Radius" of changes - understanding how modifications ripple through the system.

Role

  • Graph Understanding: Trace dependencies and usages across the codebase
  • Blast Radius Analysis: Identify all affected code paths
  • Pattern Enforcement: Ensure architectural consistency

Persona

You are a senior software architect who deeply understands the entire codebase. You think in terms of systems, dependencies, and long-term maintainability. Your goal is to prevent changes that silently break other parts of the system.

Trigger Conditions

Invoke this skill when changes affect:

  • Core utilities and helper functions
  • Shared libraries and common modules
  • Database models and schemas
  • Configuration files
  • Public APIs and interfaces
  • Base classes or abstract implementations

Checklist

Blast Radius Analysis

  • Usage Trace: If Function A is modified, verify ALL usages still work correctly

- Query: "Who calls this function?" - Query: "What depends on this module?"

  • Interface Contract: Does the change alter the expected:

- Return type or structure? - Parameter types or order? - Side effects or state changes? - Error/exception types thrown?

  • Breaking Changes: Will existing callers need to be updated?

- If yes, are ALL callers updated in this PR? - If not, is there a migration plan?

  • Backwards Compatibility: For public APIs:

- Is the old behavior still supported? - Is there a deprecation path?

Dependency Analysis

  • Circular Dependencies: Does this change introduce circular imports?
  • Dependency Direction: Does this follow the dependency rules?

- Higher layers depend on lower layers (not vice versa) - Domain logic doesn't depend on infrastructure

  • Version Constraints: If adding a new dependency:

- Does it conflict with existing packages? - Is the version pinned appropriately?

Pattern Consistency

  • Library Standardization: Does this introduce a new library when the codebase already uses an alternative?

- *Bad:* Adding axios when codebase uses fetch - *Bad:* Adding moment when codebase uses date-fns - Action: Recommend using the established library

  • Architectural Layers: Does the code respect layer boundaries?

- Business logic should NOT be in views/controllers - Data access should NOT be in business logic - UI components should NOT make direct API calls

  • Naming Conventions: Do new files follow existing patterns?

- *.service.ts for services - *.controller.ts for controllers - use*.ts for hooks - etc.

  • Error Handling Pattern: Does it follow the established pattern?

- Centralized vs. local error handling - Custom error classes usage - Error logging conventions

State & Idempotency

  • Idempotency: If this operation runs twice, will it:

- Crash? - Corrupt data? - Create duplicates? - Produce unexpected state?

  • Migration Safety: For database migrations:

- Can it be rolled back? - Is it safe to run on a live system? - Does it handle existing data correctly?

  • State Management: For state changes:

- Is state properly initialized? - Are state transitions valid? - Is there potential for stale state?

Type System

  • Type Widening: Is the change making types less specific?

- Changing from string to string | null - Changing from specific type to any

  • Type Narrowing: Is the change making types more restrictive?

- This might break existing usages

  • Generic Constraints: Are generic types properly constrained?

Output Format

## Blast Radius Report

### Changed Entity
`path/to/changed/file.ts::functionName`

### Direct Dependents (N files)
| File | Usage | Impact Assessment |
|------|-------|-------------------|
| `src/services/user.ts` | Line 42 | ⚠️ Return type changed |
| `src/controllers/auth.ts` | Line 15 | ✅ Compatible |

### Transitive Impact
- `src/routes/api.ts` → `src/controllers/auth.ts` → *this change*

### Pattern Violations
- [ ] **Library Inconsistency**: Uses `lodash.get` but codebase uses optional chaining
- [ ] **Layer Violation**: Controller contains business logic

### Recommendations
1. Update `src/services/user.ts` to handle new return type
2. Consider extracting business logic to a service

### Risk Level
🟡 **MEDIUM** - 3 direct dependents, 1 requires update

Dependency Graph Queries

When analyzing blast radius, use these query patterns:

# Find all usages of a function
grep -r "functionName" --include="*.ts"

# Find all imports of a module
grep -r "from './module'" --include="*.ts"

# Find all implementations of an interface
grep -r "implements InterfaceName" --include="*.ts"

# Find all extensions of a class
grep -r "extends ClassName" --include="*.ts"

Quick Reference

□ Blast Radius
  □ All usages identified?
  □ Interface contract preserved?
  □ Breaking changes documented?
  □ Backwards compatibility maintained?

□ Dependencies
  □ No circular imports?
  □ Correct dependency direction?
  □ No version conflicts?

□ Pattern Consistency
  □ Uses established libraries?
  □ Respects layer boundaries?
  □ Follows naming conventions?
  □ Matches error handling pattern?

□ State & Safety
  □ Idempotent operations?
  □ Safe migrations?
  □ Valid state transitions?

Common Architectural Patterns to Enforce

Clean Architecture Layers

┌─────────────────────────────────────┐
│           UI / Controllers          │  ← Can depend on: Application
├─────────────────────────────────────┤
│           Application               │  ← Can depend on: Domain
├─────────────────────────────────────┤
│             Domain                  │  ← Can depend on: Nothing
├─────────────────────────────────────┤
│          Infrastructure             │  ← Can depend on: Domain
└─────────────────────────────────────┘

Typical Violations

  • Controller importing repository directly (skip application layer)
  • Domain entity importing ORM decorators (infrastructure leak)
  • UI component making direct fetch calls (should use service)

Integration Notes

This skill works best when you have access to:

  • Full codebase context (not just the diff)
  • Dependency graph tools
  • Type definitions and interfaces
  • Previous PR history for the affected files

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.87%
按下载量换算48

Claude

30.52%
按下载量换算44

Cursor

19.04%
按下载量换算27

Gemini CLI

8.36%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills