Skip to content

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

fix(skill): guide bot to offer fix commits when inline suggestions are impossible (#1342)

worktrunk-bot5f549f1eff5b
diff --git a/.claude/skills/review-pr/SKILL.md b/.claude/skills/review-pr/SKILL.md
index 7480c7327..3d16d6d7a 100644
--- a/.claude/skills/review-pr/SKILL.md
+++ b/.claude/skills/review-pr/SKILL.md
@@ -147,8 +147,9 @@ the same broken path across all workflow files.
rg 'env\.HOME' .github/workflows/
```
-If the same issue exists elsewhere, add inline suggestions fixing each
-occurrence.
+If the same issue exists in files already in the diff, add inline suggestions
+fixing each occurrence. If the occurrence is in a file **not in the diff**,
+offer to push a fix commit with the correction.
**Duplication check (mandatory for new functions/types):**
@@ -308,6 +309,9 @@ exact line — never as a code block in the review body. Inline suggestions let
the author apply with one click; code blocks in the body force them to find the
line and copy-paste manually.
+**Exception: lines outside the diff.** If a fix targets a file or line not in
+the diff, offer to push a fix commit instead.
+
**Anti-pattern — code block in review body:**
> The description on line 3 should be updated: