跳到正文
Skillpedia
通用编程9.7k · #12217

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/modem-dev/hunk/blob/main/.agents/skills/hunk-review/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我在分支上打开了 Hunk。请逐一查看这些修改,并在有风险的地方留下评论。”

每周 5 个新技能,1 分钟读完。

工作原理

这个技能会让你的智能体加载并遵循与你已安装的 Hunk 版本一起提供的审查指南。该指南涵盖读取当前焦点、在文件和代码块之间移动、重新加载以及添加评论。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<!-- generated by `bun run generate:skill` -->

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能