Token导航 LogoToken导航

Agent Skill · 研究检索

diff-review-doc(差异审查文档)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

diff-review-doc 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 71,089。

总安装 196周安装 8GitHub Stars 公开资料未说明下载 63核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add arcblock/agent-skills --skill "diff-review-doc"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

通过 npx skills add arcblock/agent-skills --skill "diff-review-doc" 安装。需确认文档内容准确性,避免传播错误信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/diff-review-doc

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add arcblock/agent-skills --skill "diff-review-doc";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

diff-review-doc 怎么安装?

在终端执行 npx skills add arcblock/agent-skills --skill "diff-review-doc"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

diff-review-doc 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

diff-review-doc 需要什么权限?

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

diff-review-doc 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

diff-review-doc 用的人多吗?

公开数据是累计安装 196 次,近一周安装 8 次,下载 63 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

diff-review-doc 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
diff-review-doc

差异审查文档 · 本页

196—需要联网MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
diff-review-doc
description
Generate comprehensive, reviewer-ready code review documents from git diffs. Use this when the user provides code changes (git diff output, file changes, or asks to review code changes) and wants a structured review document. Creates detailed analysis covering change overview, business flow, key code explanation, risk assessment, and review recommendations. Supports both manual diff input and automatic git workspace detection. Particularly useful for reviewing pull requests, feature branches, or any code changes requiring thorough documentation for reviewers.

Diff Review Doc

Generate comprehensive code review documents from git diffs, providing detailed analysis with real code snippets, business flow breakdown, and actionable review recommendations.

Workflow

1. Obtain Diff Content

If user provides diff directly:

  • Accept the diff content as-is
  • Parse to identify changed files and hunks

If no diff is provided:

  • Use scripts/get_diff.sh to retrieve changes:
  # Get all uncommitted changes (default)
  ./scripts/get_diff.sh

  # Get staged changes only
  ./scripts/get_diff.sh --staged

  # Compare with a branch
  ./scripts/get_diff.sh --branch main

  # Get changes from specific commit
  ./scripts/get_diff.sh --commit abc123

2. Analyze the Changes

Parse the diff to extract:

  • File paths and change types (added/modified/deleted)
  • Line-level changes (+/- lines)
  • Context around changes

Read relevant files:

  • For significant changes, read the full file to understand context
  • For large files (>500 lines), focus on changed sections with surrounding context
  • Pay special attention to backend files and large file changes

Identify patterns:

  • Consult references/patterns.md for common code issues
  • Look for anti-patterns, security vulnerabilities, performance issues
  • Check architectural concerns

3. Structure the Analysis

Follow this analysis framework:

  1. 改动概览 (Change Summary)

- Count files changed, lines added/removed - Identify change type (feature/bugfix/refactor/performance/security) - List key files with brief descriptions - Note dependency or configuration changes

  1. 业务流程分析 (Business Flow Analysis)

- Explain what functionality is being implemented/changed - Map out the complete business flow - Show data flow between components - Identify all affected modules

  1. 关键代码详解 (Key Code Analysis)

- For each significant file: - Show actual diff snippets (use real code from the diff) - Explain what the code does and why it changed - Highlight logic correctness, edge cases, error handling, performance - Prioritize backend files and large changes (>200 lines) - Include file paths with line numbers for reference

  1. 风险评估 (Risk Assessment)

- Categorize risks as High/Medium/Low - Identify breaking changes, security concerns, performance impacts - Suggest mitigation measures - Flag large file changes and backend-critical changes

4. Generate Review Recommendations

Consult references/review-checklist.md for comprehensive evaluation criteria:

  • 代码质量 (Code Quality): Readability, complexity, best practices
  • 架构设计 (Architecture): Modularity, coupling, extensibility, data flow
  • 功能验证 (Functionality): Business logic, error handling, data consistency
  • 安全性 (Security): Input validation, authentication, data protection (if applicable)
  • 性能 (Performance): Database queries, resource usage, caching (if applicable)

For each category:

  • Give a rating (1-5 stars)
  • List strengths (what's done well)
  • List issues (what needs improvement)
  • Provide specific, actionable recommendations

Final recommendation:

  • Must Fix: Critical issues that block merge
  • Should Fix: Important issues to address
  • Nice to Have: Optional improvements
  • Merge decision: Approve / Conditional / Needs Work

5. Write the Review Document

Use assets/review-template.md as the base structure:

  • Copy the template structure
  • Fill in all sections with actual analysis from steps 2-4
  • Ensure all code snippets are real (from the actual diff)
  • Include complete business flow explanation
  • Provide specific, actionable review suggestions

Output:

  • Save as a Markdown file (e.g., REVIEW.md)
  • Format for easy reading (proper headings, code blocks, lists)
  • Include generation timestamp

Key Principles

Base on Real Code

  • All code snippets must be extracted from the actual diff
  • Never use placeholder or example code
  • Show actual line numbers and file paths

Complete Business Context

  • Explain the full user journey and data flow
  • Connect frontend changes to backend logic
  • Show how pieces fit together

Actionable Review Suggestions

  • Be specific about what to check
  • Identify potential risks with clear explanations
  • Provide concrete improvement suggestions
  • Prioritize issues by severity

Focus on Critical Areas

  • Large file changes: >200 lines need detailed review
  • Backend changes: API, database, auth, integrations
  • Architectural changes: Design patterns, module boundaries
  • Security-sensitive code: Input validation, data access

Resources

scripts/get_diff.sh

Bash script to retrieve git diffs in various scenarios. Supports getting uncommitted changes, staged changes, branch comparisons, and specific commits.

references/review-checklist.md

Comprehensive checklist covering all aspects of code review: quality, architecture, functionality, security, performance, testing, compatibility, operations, and documentation.

Load this reference when generating review recommendations to ensure thorough evaluation.

references/patterns.md

Catalog of common code patterns to watch for, including anti-patterns, security vulnerabilities, performance issues, and architectural concerns.

Load this reference during analysis phase to identify potential issues in the code changes.

assets/review-template.md

Structured Markdown template for the review document. Provides consistent format with sections for change summary, business flow, code analysis, risk assessment, and review recommendations.

Use as the base structure and fill in with actual analysis.

平台分布

OpenCode

29.25%
按下载量换算18

Cursor

23.7%
按下载量换算15

Codex

18.72%
按下载量换算12

Claude Code

13.36%
按下载量换算8

Antigravity

6.65%
按下载量换算4

Gemini CLI

2.92%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills