pr-ready
它能做什么
这个技能让拉取请求恢复到可以合并的状态。适合拉取请求因检查失败、合并冲突或未推送的工作而被卡住的开发者。
适用场景
- ✓当拉取请求的 CI 检查失败,需要真正修复时。
- ✓当拉取请求与其基础分支出现合并冲突时。
- ✓当本地改动还没有提交或推送的时候。
技能链接
https://github.com/remotion-dev/remotion/blob/main/.agents/skills/pr-ready/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的拉取请求有一项检查失败,还存在合并冲突。请帮我把它处理到可以合并的状态。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查 git 状态和 CI 日志,然后修复每个失败的真正原因。它会仔细解决冲突,同时保留你的改动和上游的更新。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use this skill when a pull request is not ready because there is either:
- a CI failure
- a merge conflict
- uncommitted or unpushed changes
Bring the pull request back to a ready state.
Start by checking:
- The current git branch and working tree state with
git status. - Whether the local branch has commits that are not pushed yet.
- Whether the PR branch has merge conflicts with the base branch.
- The current PR checks or CI failures using the
ghCLI.
If there is a merge conflict:
- Update the local base branch reference.
- Rebase or merge the PR branch onto the base branch, following the repository's existing workflow.
- Resolve conflicts carefully and preserve both the PR intent and upstream changes.
- Run the relevant formatting, tests, or builds for the affected packages.
If there is a CI failure:
- Inspect the failing check logs with the
ghCLI. - Fix the underlying cause instead of retrying or bypassing the failure.
- Run the relevant local checks that cover the failure.
- Commit the fix if needed.
- Ask the user for confirmation before pushing if this creates unpushed commits.
If there are no CI failures, no merge conflicts, and no uncommitted or unpushed changes, report that the PR is already ready.
常见问题
它会通过重试失败的检查来让其通过吗?
不会。该技能说明要修复根本原因,而不是重试或绕过失败。
它会在未经询问的情况下推送改动吗?
不会。该技能说明,如果这会产生未推送的提交,应先征得确认再推送。
如果没有任何问题呢?
智能体会报告该拉取请求已经可以合并。
详情
作者的原始描述
Resolve CI failures, merge conflicts, or local branch changes to get a PR ready
repo: remotion-dev/remotion
热度
- GitHub 星标
- 70k
- 排名
- #3148
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …