Token导航 LogoToken导航

Agent Skill · 开发

interactive-diff-review(交互式差异审查)

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

interactive-diff-review 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 20,642。

总安装 216周安装 9GitHub Stars 公开资料未说明下载 72核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/hankjs/hank-skills --skill interactive-diff-review

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库和原始 README 进一步核验具体用法。

安装命令:npx skills add https://github.com/hankjs/hank-skills --skill interactive-diff-review。建议确认权限范围、维护状态及是否会触发联网、命令执行或文件读写。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/hankjs/hank-skills --skill interactive-diff-re…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

interactive-diff-review 怎么安装?

在终端执行 npx skills add https://github.com/hankjs/hank-skills --skill interactive-diff-review。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

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

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

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

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/hankjs/hank-skills --skill interactive-diff-review 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

interactive-diff-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

interactive-diff-review 用的人多吗?

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

interactive-diff-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
interactive-diff-review

交互式差异审查 · 本页

216—执行命令未明确未通过

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

SKILL.md 原文

Git Diff Review Skill

Interactive hunk-by-hunk code review. Resume → Parse → Review → Verify → Report → Apply → Commit.


Commands

Parse $ARGUMENTS to determine the command and diff target:

CommandUsageDescription
review/interactive-diff-review [target]Default. Full interactive review: parse → review → report
--verify/interactive-diff-review --verifyCheck report exists, matches current diff, and all hunks passed
--apply/interactive-diff-review --applyFix code based on rejected hunks' review suggestions
--commit/interactive-diff-review --commitGenerate and execute git commit (requires --verify pass first)

Target is optional: <commit>, <commit_a> <commit_b>, or omit for auto-detect (staged → workspace).

Commands can be combined: /interactive-diff-review --apply --commit will apply fixes then commit if verify passes.

Command Routing

  1. Parse $ARGUMENTS — extract command flags and remaining positional args (diff target).
  2. If no command flag is present → default to review.
  3. Route to the corresponding section below.

Workflow Checklist

Copy this checklist and check off items as you complete them:

Diff Review Progress:
- [ ] Step 0: Check for Existing Progress
  - [ ] 0.1 Check if diff-review-progress.md exists
  - [ ] 0.2 If exists, parse header and count pending vs reviewed hunks
  - [ ] 0.3 Ask user: Resume or Restart?
  - [ ] 0.4 If resume → skip to Step 2 (pending hunks only)
  - [ ] 0.5 If restart → delete progress file, continue to Step 1
- [ ] Step 1: Resolve & Parse
  - [ ] 1.1 Run resolve_diff.py to get diff + language
  - [ ] 1.2 Verify no error, inform user of diff source + language
  - [ ] 1.3 Run parse_hunks.py to split into hunks
  - [ ] 1.4 Handle edge cases ⚠️ Load references/edge-cases.md
  - [ ] 1.5 Write diff-review-progress.md ⚠️ Load references/progress-template.md
- [ ] Step 2: Interactive Review ⚠️ CORE LOOP
  - [ ] Load references/review-format.md
  - [ ] 2.1 Display hunk (index/total, file, type, diff body)
  - [ ] 2.2 Provide analysis (summary, impact, risks, suggestions)
  - [ ] 2.3 Collect decision via ask_user_input (Accept / Reject / Skip)
  - [ ] 2.4 If rejected, ask reason (open-ended text follow-up)
  - [ ] 2.5 Update diff-review-progress.md (hunk status, analysis, decision, reviewed counter)
  - [ ] 2.6 Show running tally, advance to next hunk
  - [ ] 2.7 Repeat 2.1–2.6 until all hunks done
  - [ ] 2.8 Loop back for any skipped hunks
- [ ] Step 3: Coverage Verification ⚠️ REQUIRED
  - [ ] 3.1 Re-run resolve_diff.py + parse_hunks.py
  - [ ] 3.2 Compare new hunks against progress file entries (file + header + body)
  - [ ] 3.3 If new/changed hunks → append to progress file, review them (back to Step 2)
  - [ ] 3.4 Confirm full coverage, set Phase to "verified"
- [ ] Step 4: Generate Report
  - [ ] Load references/report-template.md
  - [ ] 4.1 Read diff-review-progress.md as input source
  - [ ] 4.2 Build Markdown report (detected language, diff order)
  - [ ] 4.3 Save to diff-review-report.md in the project root
  - [ ] 4.4 Set Phase to "completed" in progress file
  - [ ] 4.5 Present to user

Step 0: Check for Existing Progress

Before starting any review work, check if a progress file already exists.

0.1 Check for progress file

Look for diff-review-progress.md in the project root.

  • If the file does not exist → proceed to Step 1.
  • If the file exists → continue to 0.2.

0.2 Parse progress state

Read diff-review-progress.md and extract:

  • Phase: current workflow phase
  • Reviewed counter: X / N
  • Pending hunks: count of hunks with Status: pending
  • Diff Source and Target Args: for context

0.3 Ask user

Present the state to the user and ask:

  • If there are pending hunks (Phase = reviewing): "Found an existing review in progress (X/N hunks reviewed, diff source:...). Resume or restart?"

- Resume: Skip to Step 2, only iterate through pending hunks. - Restart: Delete progress file, proceed to Step 1.

  • If all hunks are reviewed (Phase = verified or completed): "Found a completed review (N/N hunks reviewed). Regenerate the report, or restart a fresh review?"

- Regenerate: Skip to Step 4. - Restart: Delete progress file, proceed to Step 1.

  • If Phase = parsing (interrupted during Step 1): "Found an incomplete progress file (parsing was interrupted). Restarting fresh."

- Delete progress file, proceed to Step 1.

0.4 Resume flow

When resuming, re-read the progress file to build the hunk list. Filter to only Status: pending hunks. Enter Step 2 with these hunks. The progress file's existing reviewed hunks are preserved.

0.5 Restart flow

Delete diff-review-progress.md and proceed to Step 1 from scratch.


Step 1: Resolve & Parse

1.1 Run resolver

python scripts/resolve_diff.py                       # auto: staged → workspace
python scripts/resolve_diff.py <commit>              # single commit
python scripts/resolve_diff.py <commit_a> <commit_b> # commit range

Returns JSON: {source, ref, language, diff, error}

1.2 Verify & inform

If error is non-null → report to user and stop. Otherwise tell the user which diff source was resolved and what language was detected.

1.3 Save diff & run parser

Extract the diff field from Step 1.1's JSON output and write it to a temporary file, then parse:

# Write the diff field to a temp file (agent should use Write tool or shell redirect)
# e.g. write resolve output's .diff value to /tmp/diff.txt

python scripts/parse_hunks.py --file /tmp/diff.txt

Returns JSON: {total, hunks: [{index, file, header, body, type, status, reason}]}

1.4 Edge cases

Load references/edge-cases.md and handle accordingly.

1.5 Write progress file

Load references/progress-template.md for the format specification.

Create diff-review-progress.md in the project root with:

  • Header metadata (date, diff source, language, target args, total hunks, reviewed = 0/N, phase = reviewing)
  • One section per hunk with: type, status = pending, header, empty analysis/decision, diff body

Set Phase to reviewing (parsing is complete, ready for review loop).


Step 2: Interactive Review

Before starting this step, load references/review-format.md for display format, analysis fields, and decision collection details.

All UI text uses the detected language from Step 1. Technical terms remain in English.

Loop through each hunk (or pending hunks only if resuming): display → analyze → collect decision → update progress file → show tally → next.

Progress file updates

After each hunk decision (2.3/2.4), use the Edit tool to update diff-review-progress.md:

  1. Update the hunk's Status — change pending to ✅ Accepted or ❌ Rejected.
  2. Fill in Analysis — replace the empty Analysis section with the summary, impact, risks, and suggestions.
  3. Fill in Decision — replace the empty Decision section with the accept/reject decision and rejection reason if applicable.
  4. Update the Reviewed counter — increment the Reviewed: X / N line in the header.

The progress file is the source of truth — if context is lost, the review can resume from it.

After the first pass, loop back for any skipped hunks.


Step 3: Coverage Verification

  1. Re-run resolve_diff.py + parse_hunks.py with same arguments as Step 1 (read Target Args from progress file if needed).
  2. Read diff-review-progress.md to get the reviewed hunks.
  3. Compare new hunks against progress file entries by file + header + body.
  4. New/changed hunks found → append them to the progress file as pending, update Total Hunks, then go back to Step 2 for those hunks only.
  5. Confirm full coverage. Set Phase to verified in the progress file. Only proceed to Step 4 when all hunks are decided.

Step 4: Generate Report

Before starting this step, load references/report-template.md for the full template.

  1. Read diff-review-progress.md as the input source — all hunk data, analysis, and decisions come from the progress file.
  2. Build the report in the detected language (technical terms in English), ordered by original diff sequence.
  3. Save to diff-review-report.md in the project root and present to user.
  4. Set Phase to completed in the progress file.

Command: --verify

Validates that the review is complete and current.

  1. Check diff-review-report.md exists in project root. If not → error: "No report found. Run review first."
  2. Re-run resolve_diff.py + parse_hunks.py with same target args to get current hunks.
  3. Parse the report's Overview table to extract reviewed hunks (file + type + status).
  4. Compare:

- Every current hunk has a matching entry in the report (by file path + hunk header + body hash). - No extra entries in report that don't exist in current diff (stale entries).

  1. Check that all hunks have status ✅ Accepted (no ❌ Rejected, no missing).
  2. Output result:

- PASS: "Verification passed. All N hunks reviewed and accepted. Ready to commit." - FAIL — unreviewed hunks: List the unmatched hunks. - FAIL — rejected hunks: List the rejected hunks with their reasons. - FAIL — stale report: Report doesn't match current diff. Suggest re-running review.


Command: --apply

Fixes code based on review suggestions for rejected hunks.

  1. Check diff-review-report.md exists. If not → error.
  2. Parse the report to find all ❌ Rejected hunks and their rejection reasons + analysis suggestions.
  3. For each rejected hunk (in diff order): a. Read the relevant file and locate the code region from the hunk. b. Based on the rejection reason and the review analysis, generate a fix. c. Apply the fix using Edit tool. d. Show the user what was changed and why.
  4. After all fixes applied, inform the user:

- "Applied fixes for N rejected hunks. Run --verify or re-run review to confirm."

Note: --apply does NOT re-run the review. The user should run review again or --verify after applying.


Command: --commit

Generates and executes a git commit. Requires verification to pass first.

  1. Run the --verify flow internally (same as above).
  2. If verify FAILS → stop and show the failure reason. Do not commit.
  3. If verify PASSES: a. Parse the report to build a commit message:

- Subject line: summarize the changes (max 72 chars), in detected language. - Body: list the key changes from the report overview (accepted hunks grouped by file). b. Show the proposed commit message to the user for confirmation. c. On user approval: - git add -A (or stage the specific files from the review). - git commit with the message. d. Show the commit result.


Parameter Reference

ParameterTypeDescription
(none)—Default review command, auto-detect diff source
<commit>stringCommit hash, short hash, tag, or ref
<commit_a> <commit_b>stringCommit range
--verifyflagRun verification check on existing report
--applyflagApply fixes for rejected hunks
--commitflagVerify + generate git commit

Language

  • Detected from git log --oneline -10 by resolve_diff.py.
  • All UI, analysis, and report use detected language; technical terms stay English.
  • Mixed-language commits → most frequent wins.
  • No history → fall back to user's conversation language.

File Structure

git-diff-review/
├── SKILL.md                          # This file — workflow orchestration
├── scripts/
│   ├── resolve_diff.py               # Diff source + language detection
│   └── parse_hunks.py                # Unified diff → structured hunks
└── references/
    ├── review-format.md              # Step 2: display, analysis, decisions
    ├── report-template.md            # Step 4: Markdown report template
    ├── progress-template.md          # Steps 1-2: progress document format
    └── edge-cases.md                 # Step 1.4: edge case handling

Generated Files (project root)

FileCreated ByPurpose
diff-review-progress.mdStep 1Persistent review state — survives context loss
diff-review-report.mdStep 4Final review report

平台分布

Codex

35.66%
按下载量换算26

Claude

27.75%
按下载量换算20

Cursor

17.51%
按下载量换算13

Gemini CLI

10.18%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/hankjs/hank-skills --skill interactive-diff-review 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

继续浏览同类 Skills