respond-to-comments

Fixes code issues from GitHub PR review comments and resolves the review threads.

5|1|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/ai-hero/hero-skills --skill respond-to-comments-ai-hero
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: respond-to-comments
Source: https://github.com/ai-hero/hero-skills/tree/main/skills/respond-to-comments
Command: npx skills add https://github.com/ai-hero/hero-skills --skill respond-to-comments-ai-hero

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Addressing pull request review feedback is a repetitive cycle: read each comment, switch branches, fix the code, run checks, commit, push, reply, and resolve threads one by one. This Skill automates that entire respond-to-feedback loop on GitHub so reviewers see fixes and resolutions without manual bookkeeping. ## Core Features & Use Cases - Comment triage and fixing: Fetches all unresolved review threads via the GitHub CLI, categorizes them as actionable, questions, or acknowledged, then applies confirmed code fixes. - Full resolution cycle: Runs quality checks, commits with conventional messages, pushes, replies to each thread, resolves conversations via GraphQL, and posts a consolidated improvements summary comment. - Iterative review-agent loop: Optionally triggers and polls an external code review bot (e.g., Greptile, CodeRabbit) and repeats the fix cycle until zero unresolved comments remain or the iteration cap is hit. - Use Case: A reviewer leaves eight comments on your PR overnight. Invoke the skill with the PR number, confirm the plan, and it rebases onto the base branch, fixes the actionable items, pushes the commits, replies to and resolves every thread, and updates the PR description if scope changed. ## Quick Start Ask the assistant to address the review comments on PR 123 using the respond-to-comments skill and resolve the threads.

Frequently Asked Questions about respond-to-comments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I address GitHub PR review comments automatically?

Invoke the skill with a PR number or let it detect the PR from the current branch. It fetches unresolved review threads, categorizes them, applies confirmed code fixes, pushes commits, replies to each comment, and resolves the threads via the GitHub API.

How to resolve GitHub review threads from the command line?

The skill uses the GitHub CLI's GraphQL API with the resolveReviewThread mutation to mark threads resolved after posting a reply explaining each fix. It also posts one consolidated improvements comment summarizing all changes.

Does it work with automated review bots like Greptile or CodeRabbit?

Yes. When a Code Review Agent is configured in HERO.md, the skill can trigger the bot via comment, label, or push, poll for completion using check-runs, comments, or pipeline status, and loop through fix iterations until no unresolved bot comments remain.

What happens if I have uncommitted changes on the wrong branch?

The skill stops and asks before switching branches. You can stash the changes with a labeled stash entry or cancel; it never switches branches or pops stashes without explicit confirmation.

Can it handle rebase conflicts when the PR branch is behind the base?

It rebases onto the base branch before reviewing comments. If the rebase hits conflicts, it aborts, restores the branch, lists the conflicting files, and hands control back to the user rather than resolving conflicts automatically.