← ClaudeAtlas

fixpr-bot-commentslisted

Fix and reply to bot review comments (Copilot, Augment, Greptile, etc.) on a GitHub PR
event4u-app/agent-config · ★ 7 · AI & Automation · score 84
Install: claude install-skill event4u-app/agent-config
# /fix pr-bot-comments ## Input The user may or may not provide a PR URL. ### PR detection 1. If the user provides a GitHub PR URL → use that PR. 2. If no URL is provided → **try to detect the PR automatically:** - Determine the current Git branch (`git branch --show-current`). - Search for an open PR on that branch via the GitHub API (`GET /repos/{owner}/{repo}/pulls?head={owner}:{branch}&state=open`). - If exactly one PR is found → tell the user: "I found PR #{number} ({title}) on branch `{branch}`. Is that the one?" - Wait for confirmation before proceeding. - If no PR or multiple PRs are found → ask the user for the PR URL. 3. **Never** reuse a PR number from earlier in the conversation. ## Mode selection After the PR is confirmed, ask the user (use numbered options per `user-interaction` rule): ``` > 1. Interactive — ask before each comment > 2. Automatic — handle all independently ``` - **Option 1** → follow the "Interactive flow" below. - **Option 2** → follow the "Auto flow" below. ## Bot detection A comment is from a **bot** if the GitHub user has `type: "Bot"` or the login matches known bot accounts: `Copilot`, `github-actions[bot]`, `greptile[bot]`, `augment[bot]`, or any login ending in `[bot]`. ## Instructions (shared) 1. **Fetch all review comments** from the PR using the GitHub API (`/pulls/{number}/comments`). Use `per_page: 100`. Filter for **bot comments** that have **no reply yet** from a human user. 2. **For each unresolv