跳到正文
Skillpedia
通用编程70k · #3148

pr-ready

它能做什么

这个技能让拉取请求恢复到可以合并的状态。适合拉取请求因检查失败、合并冲突或未推送的工作而被卡住的开发者。

适用场景

  • ✓当拉取请求的 CI 检查失败,需要真正修复时。
  • ✓当拉取请求与其基础分支出现合并冲突时。
  • ✓当本地改动还没有提交或推送的时候。

技能链接

https://github.com/remotion-dev/remotion/blob/main/.agents/skills/pr-ready/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 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:

  1. The current git branch and working tree state with git status.
  2. Whether the local branch has commits that are not pushed yet.
  3. Whether the PR branch has merge conflicts with the base branch.
  4. The current PR checks or CI failures using the gh CLI.

If there is a merge conflict:

  1. Update the local base branch reference.
  2. Rebase or merge the PR branch onto the base branch, following the repository's existing workflow.
  3. Resolve conflicts carefully and preserve both the PR intent and upstream changes.
  4. Run the relevant formatting, tests, or builds for the affected packages.

If there is a CI failure:

  1. Inspect the failing check logs with the gh CLI.
  2. Fix the underlying cause instead of retrying or bypassing the failure.
  3. Run the relevant local checks that cover the failure.
  4. Commit the fix if needed.
  5. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能