Skip to content

fix(skill): add multi-line suggestion range minimization guidance#1311

Merged
max-sixty merged 1 commit into
mainfrom
hourly/review-22768912892
Mar 6, 2026
Merged

fix(skill): add multi-line suggestion range minimization guidance#1311
max-sixty merged 1 commit into
mainfrom
hourly/review-22768912892

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Adds guidance to the review-pr skill requiring that multi-line suggestion ranges be minimized to only lines that need changing
  • Prevents the bot from accidentally deleting correct code adjacent to a bug when posting fix suggestions

Context

In PR #1309 (run 22768248402), the review bot correctly identified a PowerShell syntax error (duplicate else blocks) but posted a suggestion with start_line: 18, line: 22 that would have removed the legitimate git-wt fallback branch along with the duplicate. The correct fix only needed to cover lines 20-22.

Closes #1310

Test plan

  • Verify the skill file renders correctly
  • Observe future review runs for correct suggestion ranges

🤖 Generated with Claude Code

The review bot posted a suggestion on PR #1309 with start_line covering
correct code (the git-wt elseif branch) along with the duplicate else
block. Applying it would have removed a legitimate fallback path.

Add explicit guidance to verify that every line in a multi-line suggestion
range actually needs changing before posting.

Closes #1310

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@max-sixty max-sixty merged commit 4c390e2 into main Mar 6, 2026
22 checks passed
@max-sixty max-sixty deleted the hourly/review-22768912892 branch March 6, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pr-review: multi-line suggestion removes correct code along with the bug

2 participants