Skip to content

fix(bot): guide claude-mention toward inline suggestions and push offers - #1435

Merged
max-sixty merged 2 commits into
mainfrom
fix/mention-inline-suggestions
Mar 11, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/mention-inline-suggestions

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • claude-mention prompt: Added explicit guidance to use the review-pr skill for inline suggestions when providing code feedback on PRs — both for @worktrunk-bot mentions 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-pr skill 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 suggestion blocks instead of conversation comments, and (b) offer to push the changes.

Test plan

  • Trigger claude-mention on a PR with a review request and verify inline suggestions are posted
  • Verify the bot offers to push mechanical fixes on human PRs
  • Verify bot PRs still get direct pushes without asking

Closes #1433

🤖 Generated with Claude Code

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]>
Comment thread .claude/skills/review-pr/SKILL.md Outdated

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.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this sentence

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — removed it in 6402aef. It was already covered by the "mechanical and correctness is obvious" language in the paragraph above.

Comment thread .github/workflows/claude-mention.yaml Outdated
)
|| 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.',

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some of this (and maybe the change above) seems too verbose; repeating things that are in the skill

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@max-sixty
max-sixty merged commit 8d2e47d into main Mar 11, 2026
26 checks passed
@max-sixty
max-sixty deleted the fix/mention-inline-suggestions branch March 11, 2026 04:59
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.

[bot] offer to push changes

2 participants