Repository navigation
fix(bot): guide claude-mention toward inline suggestions and push offers - #1435
Merged
Merged
Conversation
Two issues caused the bot to post prose comments instead of inline suggestions in #1423: 1. The claude-mention prompt had no guidance about using inline suggestions when providing code feedback on PRs. Added explicit instructions to use the review-pr skill for inline suggestions. 2. The review-pr skill blocked push offers on human PRs entirely. Updated section 7 to allow offering (not auto-pushing) a commit for mechanical fixes on human PRs. Closes #1433 Co-Authored-By: Claude Opus 4.6 <[email protected]>
max-sixty
reviewed
Mar 11, 2026
|
|
||
| Only do this for mechanical changes where correctness is obvious. For human PRs, | ||
| leave inline suggestions for the author instead. | ||
| Only push mechanical changes where correctness is obvious. |
Owner
There was a problem hiding this comment.
I think we can remove this sentence
Collaborator
Author
There was a problem hiding this comment.
Done — removed it in 6402aef. It was already covered by the "mechanical and correctness is obvious" language in the paragraph above.
| ) | ||
| || format( | ||
| 'A user commented on an issue/PR where you previously participated ({0}). Read the full context (description, recent comments, CI status). Only respond if the comment is directed at you, asks a question you can help with, or requests changes you can make. If the conversation is between humans and doesn''t need your input, exit silently without commenting. Note: if you are the author of the PR or issue, commenters are probably expecting the author to engage — lean toward responding.', | ||
| 'A user commented on an issue/PR where you previously participated ({0}). Read the full context (description, recent comments, CI status). Only respond if the comment is directed at you, asks a question you can help with, or requests changes you can make. If the conversation is between humans and doesn''t need your input, exit silently without commenting. Note: if you are the author of the PR or issue, commenters are probably expecting the author to engage — lean toward responding. When providing code suggestions on a PR, use the review-pr skill — post inline suggestions on the exact diff lines (never code blocks in a conversation comment) and offer to push a commit for mechanical fixes.', |
Owner
There was a problem hiding this comment.
some of this (and maybe the change above) seems too verbose; repeating things that are in the skill
Collaborator
Author
There was a problem hiding this comment.
Agreed — trimmed both prompts down to just When suggesting code changes on a PR, use the review-pr skill for inline suggestions. The skill already has all the detail; the prompt just needs to nudge toward loading it.
Remove the redundant "Only push mechanical changes" sentence from review-pr skill (already covered above) and shorten the workflow prompt additions to a brief nudge rather than repeating the skill. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude-mentionprompt: Added explicit guidance to use thereview-prskill for inline suggestions when providing code feedback on PRs — both for@worktrunk-botmentions and bot-engaged conversation comments. This tells the bot to post inline suggestions on exact diff lines (not prose in a conversation comment) and to offer pushing a commit for mechanical fixes.review-prskill section 7: Updated from "bot PRs only" to also allow offering to push a commit on human PRs when fixes are mechanical and correctness is obvious. The bot still posts inline suggestions first and only pushes after the author accepts.Addresses both failures from #1423: the bot will now (a) use inline
suggestionblocks instead of conversation comments, and (b) offer to push the changes.Test plan
claude-mentionon a PR with a review request and verify inline suggestions are postedCloses #1433
🤖 Generated with Claude Code