fix-pr

仓库创建 2026年7月4日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

把审阅反馈变成实际代码修改并自动回复,适合减轻维护负担的仓库。

▸ 风险提示

会自动提交/推送并在 PR 上回复,需要仓库写权限;检查后再运行。

这个 Skill 做什么

读取 PR 评论并实现修复、推送并回复每个 review 线程。

自动读取一个 PR 上的未解决 review 评论,按评论做代码修复、推送更新并在每个 review 线程里回复。适合需要快速处理 code review 反馈、清理 PR 队列的时候用。亮点是把“看评论—改代码—回复”这一整套流程串起来,省去手动逐条处理的麻烦。

▸ 展开 SKILL.md 英文原文

Reads all unresolved review comments and threads on a PR, implements the fixes, pushes, and replies to each thread. Local replacement for the agent-implement-pr GitHub workflow. Use when user says "fix pr comments", "address review", "/fix-pr", or wants to respond to PR review feedback.

开发编程GitHubPR 自动化代码修复通用
2
Stars
0
Forks
5
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/sgomez/developer-skills/main/skills/fix-pr/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/sgomez/developer-skills/main/skills/fix-pr/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Fix PR

Reads review comments, implements fixes, pushes, replies to threads.

## Invoke

```
/fix-pr         # fixes current branch PR
/fix-pr 42      # fixes PR #42
```

## Flow

### 1. Identify and check out the PR

```bash
gh pr view <PR> --json number,title,headRefName,state
```

Refuse if PR is closed or merged.

If the current branch is not the PR branch (the /developer pipeline runs this
in a fresh worktree), first confirm **where you are**:

```bash
git rev-parse --git-dir --git-common-dir   # two different paths = linked worktree
```

As a /developer worker you must be in a linked worktree; if both paths are
equal you are in the user's primary checkout — do not check anything out,
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有