hunk-review
它能做什么
这个指引会让你的智能体去查阅已安装的 Hunk 指南,以便处理一个已打开的审查会话。适合在 Hunk 终端查看器中审查代码修改的人。
适用场景
- ✓当你有一个正在运行的 Hunk 审查会话,并希望智能体在其中移动时。
- ✓当你希望智能体在差异中添加行内评论时。
- ✓当你想在 Hunk 中以交互方式审查修改时。
技能链接
https://github.com/modem-dev/hunk/blob/main/.agents/skills/hunk-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我在分支上打开了 Hunk。请逐一查看这些修改,并在有风险的地方留下评论。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会让你的智能体加载并遵循与你已安装的 Hunk 版本一起提供的审查指南。该指南涵盖读取当前焦点、在文件和代码块之间移动、重新加载以及添加评论。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
hunk-review
This file is a pointer. The instructions live in the installed hunk CLI so they always match its version.
Before anything else, load them and follow them:
hunk skill show hunk-review
Hunk versions before 0.24 do not have hunk skill show. If it fails, print the bundled skill's path instead, then read that file and follow it:
hunk skill path hunk-review
If hunk is not on PATH, ask the user to install Hunk first: https://hunk.dev/docs/start/install/
常见问题
我的智能体需要访问正在运行的 Hunk 吗?
需要。这个技能通过 Hunk 命令行工具工作,因此会话必须正在运行。
如果命令失败怎么办?
技能会建议输出随附指南的文件路径,并直接阅读该指南。
我在哪里获取 Hunk?
技能会指向 Hunk 网站上的官方安装页面。
详情
作者的原始描述
Interacts with live Hunk diff review sessions via CLI. Inspects review focus, navigates files, hunks, and exact lines, reloads session contents, adds inline review comments, and paints attention marks on character ranges. Use when the user has a Hunk session running or wants to review diffs interactively.
repo: modem-dev/hunk
热度
- GitHub 星标
- 9.7k
- 排名
- #12217
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …