Token导航 LogoToken导航TokenDH.com
运维和基础设施操作浏览器github未标认证来源可访问clear审计异常

review审查

Agent Skill

review 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

659

周安装

28

GitHub Stars

17

下载量

231
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/0xdarkmatter/claude-mods --skill review

简介

适用于需要自动化审查代码变更质量的场景,如提交前检查或 PR 审核流程。

  • 核心能力包括语法高亮 diff 分析、语义结构对比、问题分类与模块追踪。
  • 通过自然语言指令或参数调用,支持 staged changes、all uncommitted 文件或特定 PR 编号。
  • 安装需通过 npx skills add 命令从 GitHub 仓库获取, 使用前请确认权限范围及是否涉及网络访问或文件操作。

SKILL.md

Review Skill - AI Code Review

Perform comprehensive code reviews on staged changes, specific files, or pull requests. Routes to expert agents based on file types and automatically creates tasks for critical issues.

Architecture

review [target] [--focus] [--depth]
    │
    ├─→ Step 1: Determine Scope
    │     ├─ No args → git diff --cached (staged)
    │     ├─ --all → git diff HEAD (all uncommitted)
    │     ├─ File path → specific file diff
    │     └─ --pr N → gh pr diff N
    │
    ├─→ Step 2: Analyze Changes (parallel)
    │     ├─ delta for syntax-highlighted diff
    │     ├─ difft for semantic diff (structural)
    │     ├─ Categorize: logic, style, test, docs, config
    │     └─ Identify touched modules/components
    │
    ├─→ Step 3: Load Project Standards
    │     ├─ AGENTS.md, CLAUDE.md conventions
    │     ├─ .eslintrc, .prettierrc, pyproject.toml
    │     ├─ Detect test framework
    │     └─ Check CI config for existing linting
    │
    ├─→ Step 4: Route to Expert Reviewers
    │     ├─ TypeScript → typescript-expert
    │     ├─ React/JSX → react-expert
    │     ├─ Python → python-expert
    │     ├─ Go → go-expert
    │     ├─ Rust → rust-expert
    │     ├─ Vue → vue-expert
    │     ├─ SQL/migrations → postgres-expert
    │     ├─ Claude extensions → claude-architect
    │     ├─ Multi-domain → parallel expert dispatch
    │     └─ All experts preload: security-ops + testing-ops context
    │
    ├─→ Step 5: Generate Review
    │     ├─ Severity: CRITICAL / WARNING / SUGGESTION / PRAISE
    │     ├─ Line-specific comments (file:line refs)
    │     ├─ Suggested fixes as diff blocks
    │     └─ Overall verdict: Ready to commit? Y/N
    │
    └─→ Step 6: Integration
          ├─ Auto-create tasks (TaskCreate) for CRITICAL issues
          ├─ Link to /save for tracking
          └─ Suggest follow-up: /testgen, /explain

Execution Steps

Step 1: Determine Scope

# Default: staged changes
git diff --cached --name-only

# Check if anything is staged
STAGED=$(git diff --cached --name-only | wc -l)
if [ "$STAGED" -eq 0 ]; then
    echo "No staged changes. Use --all for uncommitted or specify a file."
    git status --short
fi

For PR review:

gh pr diff $PR_NUMBER --patch

For specific file:

git diff HEAD -- "$FILE"

For baseline comparison (--base):

git diff $BASE_BRANCH...HEAD

Step 2: Analyze Changes

Run semantic diff analysis (parallel where possible):

With difft (semantic):

command -v difft >/dev/null 2>&1 && git difftool --tool=difftastic --no-prompt HEAD~1 || git diff HEAD~1

With delta (syntax highlighting):

command -v delta >/dev/null 2>&1 && git diff --cached | delta || git diff --cached

Categorize changes:

git diff --cached --name-only | while read file; do
    case "$file" in
        *.test.* | *.spec.*) echo "TEST: $file" ;;
        *.md | docs/*) echo "DOCS: $file" ;;
        *.json | *.yaml | *.toml) echo "CONFIG: $file" ;;
        *) echo "CODE: $file" ;;
    esac
done

Get diff statistics:

git diff --cached --stat

Step 3: Load Project Standards

# Claude Code conventions
cat AGENTS.md 2>/dev/null | head -50
cat CLAUDE.md 2>/dev/null | head -50

# Linting configs
cat .eslintrc* 2>/dev/null | head -30
cat .prettierrc* 2>/dev/null
cat pyproject.toml 2>/dev/null | head -30

# Test framework detection
cat package.json 2>/dev/null | jq '.devDependencies | keys | map(select(test("jest|vitest|mocha|cypress|playwright")))' 2>/dev/null

Check CI for existing linting:

cat .github/workflows/*.yml 2>/dev/null | grep -E "eslint|prettier|pylint|ruff" | head -10

Step 4: Route to Expert Reviewers

File PatternPrimary ExpertSecondary Expert
*.tstypescript-expert-
*.tsxreact-experttypescript-expert
*.vuevue-experttypescript-expert
*.pypython-expertsql-expert (if ORM)
*.gogo-expert-
*.rsrust-expert-
*.sql, migrations/*postgres-expert-
agents/*.md, skills/*, commands/*claude-architect-
*.test.*, *.spec.*cypress-expert(framework expert)
*.cy.ts, cypress/*cypress-experttypescript-expert
*.spec.ts (Playwright)typescript-expert-
playwright/*, e2e/*typescript-expert-
wrangler.toml, workers/*wrangler-expertcloudflare-expert
*.sh, *.bashbash-expert-

Invoke via Task tool:

Task tool with subagent_type: "[detected]-expert"
model: "sonnet"
Prompt includes:
  - Skill preloading (domain knowledge):
    "First, read these files for review context:
     - Read: skills/security-ops/references/owasp-detailed.md
     - Read: skills/testing-ops/SKILL.md"
  - Diff content
  - Project conventions from AGENTS.md
  - Linting config summaries
  - Requested focus area
  - Request for structured review output

Language-specific preloads (append to the preloading section above):

ExpertAdditional PreloadWhy
python-expertskills/python-pytest-ops/SKILL.mdPython test patterns for coverage review
go-expertskills/go-ops/SKILL.mdGo idioms, concurrency gotchas
rust-expertskills/rust-ops/SKILL.mdOwnership patterns, unsafe review
typescript-expertskills/typescript-ops/SKILL.mdType safety patterns

Step 5: Generate Review

The expert produces a structured review:

# Code Review: [scope description]

## Summary

| Metric | Value |
|--------|-------|
| Files reviewed | N |
| Lines changed | +X / -Y |
| Issues found | N (X critical, Y warnings) |

## Verdict

**Ready to commit?** Yes / No

[1-2 sentence summary of overall quality]

---

## Critical Issues

### `src/auth/login.ts:42`

**Issue:** SQL injection vulnerability in user input handling

**Risk:** Attacker can execute arbitrary SQL queries

**Fix:**
  • const query = SELECT * FROM users WHERE id = ${userId};

+ const query = SELECT * FROM users WHERE id = $1; + const result = await db.query(query, [userId]);


---

## Warnings

### `src/components/Form.tsx:89`

**Issue:** Missing dependency in useEffect

**Suggestion:** Add `userId` to dependency array
  • useEffect(() => { fetchUser(userId) }, []);

+ useEffect(() => { fetchUser(userId) }, [userId]);


---

## Suggestions

[Style improvements, optional enhancements]

---

## Praise

[Good patterns worth noting]

---

## Files Reviewed

| File | Changes | Issues |
| --- | --- | --- |
| `src/auth/login.ts` | +42/-8 | 1 critical |

Step 6: Integration

Auto-create tasks for CRITICAL issues:


TaskCreate: subject: "Fix: SQL injection in login.ts:42" description: "SQL injection vulnerability found in user input handling." activeForm: "Fixing SQL injection in login.ts:42"

Link with dependencies for related issues:


TaskCreate: #1 "Fix SQL injection in login.ts" TaskCreate: #2 "Fix SQL injection in register.ts" TaskUpdate: taskId: "2", addBlockedBy: ["1"]

After fixing issues:


TaskUpdate: taskId: "1" status: "completed"

Severity System

LevelIconMeaningActionAuto-Task?
CRITICAL:red_circle:Security bug, data loss risk, crashesMust fix before mergeYes
WARNING:yellow_circle:Logic issues, performance problemsShould addressNo
SUGGESTION:blue_circle:Style, minor improvementsOptionalNo
PRAISE:star:Good patterns worth notingRecognitionNo

Focus Modes

ModeWhat It Checks
--securityOWASP top 10, secrets in code, injection, auth issues
--perfN+1 queries, unnecessary re-renders, complexity, memory
--typesType safety, any usage, generics, null handling
--testsCoverage gaps, test quality, mocking patterns
--styleNaming, organization, dead code, comments
(default)All of the above

Depth Modes

ModeBehavior
--quickSurface-level scan, obvious issues only
--normalStandard review, all severity levels (default)
--thoroughDeep analysis, traces data flow, checks edge cases

Advanced Flags

--base <branch> - Baseline Comparison

Compare changes against a specific branch instead of HEAD:

/review --base main
/review src/ --base develop --thorough

--json - CI/CD Integration

Output review results as JSON:

{
  "summary": {
    "files_reviewed": 3,
    "lines_changed": { "added": 42, "removed": 8 },
    "issues": { "critical": 1, "warning": 2, "suggestion": 1 }
  },
  "verdict": {
    "ready_to_commit": false,
    "reason": "1 critical issue requires attention"
  },
  "issues": [...]
}

CI/CD usage:

- name: Code Review
  run: |
    claude "/review --json" > review.json
    if jq -e '.issues[] | select(.severity == "critical")' review.json; then
      exit 1
    fi

--fix - Auto-Apply Fixes

Automatically apply suggested fixes:

  1. Performs standard review
  2. For each fixable issue, prompts for confirmation
  3. Uses Edit tool to apply approved fixes
  4. Creates TaskUpdate for resolved issues

Non-interactive mode:

/review --fix --auto-approve

CLI Tool Integration

ToolPurposeFallback
deltaSyntax-highlighted diffsgit diff
difftSemantic/structural diffsgit diff
ghGitHub PR operationsManual diff
rgSearch for patternsGrep tool
jqParse JSON configsRead manually

Graceful degradation:

command -v delta >/dev/null 2>&1 && git diff --cached | delta || git diff --cached

Reference Files

For framework-specific checks, see:

  • framework-checks.md - React, TypeScript, Python, Go, Rust, Vue, SQL patterns

Integration

CommandRelationship
/explainDeep dive into flagged code
/testgenGenerate tests for issues found
/savePersist review findings to session state

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenCode

27%
按下载量换算62

Gemini CLI

23.87%
按下载量换算55

Antigravity

19.03%
按下载量换算44

Claude Code

13.79%
按下载量换算32

Codex

8.48%
按下载量换算20

windsurf

3.12%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills