Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix: improve PR reviewer to use inline suggestions and push bot PR fixes (#1172)

Maximilian Roos56fbcdd1008c
diff --git a/.claude/skills/pr-review/SKILL.md b/.claude/skills/pr-review/SKILL.md
index 309c065ba..e58a9aa54 100644
--- a/.claude/skills/pr-review/SKILL.md
+++ b/.claude/skills/pr-review/SKILL.md
@@ -147,7 +147,8 @@ the same broken path across all workflow files.
rg 'env\.HOME' .github/workflows/
```
-If the same issue exists elsewhere, flag it in the review.
+If the same issue exists elsewhere, add inline suggestions fixing each
+occurrence.
### 4. Submit
@@ -333,17 +334,20 @@ gh api graphql -F query=@/tmp/resolve-thread.graphql -f threadId="THREAD_ID"
Outdated comments (null line) are best-effort — skip if the original context
can't be located.
-<!-- TODO: change this step to make the fixes directly instead of requesting them -->
-### 7. Request fixes when the author won't respond
+### 7. Push mechanical fixes on bot PRs
-If the review found concrete, fixable issues on a PR where the author won't act
-on feedback (Dependabot, renovate, etc.), post a `@worktrunk-bot` comment:
+If the review found concrete, fixable issues on a bot PR (Dependabot, renovate,
+etc.) where there's no human author to act on feedback, commit and push the fix
+directly to the PR branch.
```bash
-gh pr comment <number> --body "@worktrunk-bot Please fix the issues from the review:
+gh pr checkout <number>
+git add <files>
+git commit -m "fix: <description>
-- [specific issue 1]
-- [specific issue 2]"
+Co-Authored-By: Claude <[email protected]>"
+git push
```
-For human PRs, leave suggestions for the author instead.
+Only do this for mechanical changes where correctness is obvious. For human PRs,
+leave inline suggestions for the author instead.