resolve-pr-comments
Resolve PR Comments
Analyze unresolved PR review comments, fix valid concerns, and draft responses for comments that do not require code changes.
When explicitly invoked with extra text, treat that text as the PR number or URL. If no PR reference is provided, infer it from the current branch.
Process
-
Preferred execution
- If subagents are available, use
github-dev:pr-comment-resolverand pass the PR reference. - Otherwise follow the manual steps below.
- If subagents are available, use
-
Fetch unresolved comments
- If a PR number or URL is provided, use it directly.
- Otherwise auto-detect the PR from the current branch with
gh pr view --json number,headRefName. - Fetch inline comments with
gh api repos/{owner}/{repo}/pulls/{number}/comments. - Fetch review-level comments with
gh pr view <number> --json reviews,comments. - Filter to unresolved or pending threads.
-
Resolve each comment
- If the comment is valid, fix the code and search the codebase for the same problem in other locations.
- Fix all matching occurrences, not just the location mentioned in the comment.
- If the comment does not require a code change, draft a concise reply.
- If the comment is from a bot, reply with a direct factual sentence and no pleasantries.
-
Reply style
- Start in lowercase.
- Use simple language and short sentences.
- Avoid end punctuation when possible.
- Be concise and polite when replying to real people.
-
Never auto-submit
- Present all draft responses before posting them.
- Reply comments are posted directly with
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/replies -f body="...". - Add a random 3-5 second delay between posted replies with
sleep $((RANDOM % 3 + 3)).
More from fcakyon/claude-codex-settings
paper-search-usage
This skill should be used when user asks to "search for papers", "find research papers", "search arXiv", "search PubMed", "find academic papers", "search IEEE", "search Scopus", or "look up scientific literature".
91gcloud-usage
This skill should be used when user asks about "GCloud logs", "Cloud Logging queries", "Google Cloud metrics", "GCP observability", "trace analysis", or "debugging production issues on GCP".
62setup
This skill should be used when the user asks "how to setup GitHub CLI", "configure gh", "gh auth not working", "GitHub CLI connection failed", "gh CLI error", or needs help with GitHub authentication.
53azure-usage
This skill should be used when user asks to "query Azure resources", "list storage accounts", "manage Key Vault secrets", "work with Cosmos DB", "check AKS clusters", "use Azure MCP", or interact with any Azure service.
48pr-workflow
This skill should be used when user asks to "create a PR", "make a pull request", "open PR for this branch", "submit changes as PR", "push and create PR", or runs /create-pr or /pr-creator commands.
47mongodb-usage
This skill should be used when user asks to "query MongoDB", "show database collections", "get collection schema", "list MongoDB databases", "search records in MongoDB", or "check database indexes".
47