pr-feedback-quality-gate
它能做什么
这个工具可以帮助你处理编程项目中代码评审的反馈意见,确保修改正确无误后再提交。
适用场景
- ✓代码收到其他程序员的评论时。
- ✓你的代码在与项目其他部分合并时出现冲突时。
- ✓完成修改、再次提交评审之前。
技能链接
https://github.com/nexu-io/open-design/blob/main/skills/pr-feedback-quality-gate/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的代码请求有一些评论,我该如何安全地查看并修改它们?”
每周 5 个新技能,1 分钟读完。
工作原理
它会检查你的代码状态,创建一个单独的空间来进行修改,并在提交更改之前确保运行了相关验证。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
PR Feedback Quality Gate
Use this when a PR has review feedback, merge conflicts, pending checks, or needs a monitored follow-up after a fix.
Workflow
- Inspect PR state first: comments, reviews, mergeability, checks, branch, and local worktree status. Keep unrelated local changes out of the PR.
- Use an isolated worktree for review fixes or conflict resolution when the main checkout is dirty, behind remote, or being used by another agent.
- Make the smallest safe fix. Preserve the original bug invariant and any
newer upstream structure introduced by
main. - Run the narrow validation first, then the repository-required gates. For
this repo, include
pnpm guard; add package typechecks/builds/tests when touched files require them. - Before commit or push, run a read-only cross-review of the staged or proposed diff. Forbid file edits and git write or coordination commands.
- Treat cross-review as evidence, not authority. Accept only findings grounded in the diff, repository rules, user goal, or validation results. Downgrade or reject style preferences, broad scope expansion, and suggestions that conflict with safety or ownership boundaries; record the reason briefly.
- If accepted blockers remain, fix them, rerun validation, and repeat the review. Commit and push only after validation passes and there are no accepted blockers.
Monitoring cadence
- Active review or failing checks: check often enough to unblock quickly.
- Clean or approved PR waiting for merge: check about every 12 hours.
- Merged PR: reduce to daily lightweight observation for CI, release, or regression signals, and stop making code changes unless asked.
Report
Always report PR state, actions taken, cross-review verdict, accepted or rejected findings, validation run, commits pushed, skipped checks with reasons, remaining risks, and next step.
常见问题
什么是 “pull request”(PR)?
它是一种请求,用于把你的代码改动合并到主项目中。
什么是 “review comments”?
它们是其他程序员对你代码提出的建议或疑问。
什么是 “merge conflicts”?
当两段代码同时修改同一处内容,而系统无法判断该保留哪个改动时,就会出现合并冲突。
详情
作者的原始描述
Safely track pull request feedback, resolve review comments or merge conflicts, validate fixes, and use a read-only cross-review before committing or pushing follow-up changes.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1216
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …