github-pr-inline-reply

2
1
Source

Reply to inline PR review comments on GitHub pull requests using the GitHub API. Use this skill when you need to respond to individual review comments on a PR, acknowledge feedback, or mark comments as resolved by posting direct replies to comment threads.

Install

mkdir -p .claude/skills/github-pr-inline-reply && curl -L -o skill.zip "https://mcp.directory/api/skills/download/7576" && unzip -o skill.zip -d .claude/skills/github-pr-inline-reply && rm skill.zip

Installs to .claude/skills/github-pr-inline-reply

About this skill

GitHub PR Inline Reply Skill

This skill enables replying directly to inline review comments on GitHub pull requests.

When to use

  • Replying to individual PR review comments
  • Acknowledging reviewer feedback on specific lines of code
  • Marking review comments as addressed with a reply

API Endpoint

To reply to an inline PR comment, use:

POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies

With body:

{
  "body": "Your reply message"
}

Using gh CLI

gh api repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies \
  -X POST \
  -f body="Your reply message"

Workflow

  1. Get PR comments: First fetch the PR review comments to get their IDs:

    gh api repos/{owner}/{repo}/pulls/{pull_number}/comments
    
  2. Identify comment IDs: Each comment has an id field. For threaded comments, use the root comment's id.

  3. Post replies: For each comment you want to reply to:

    gh api repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies \
      -X POST \
      -f body="Fixed in commit abc123"
    

Example Replies

For accepted changes:

  • "Fixed in {commit_sha}"
  • "Accepted - fixed in {commit_sha}"

For rejected changes:

  • "Rejected - {reason}"
  • "Won't fix - {explanation}"

For questions:

  • "Good catch, addressed in {commit_sha}"

Notes

  • The comment_id is the numeric ID from the comment object, NOT the node_id
  • Replies appear as threaded responses under the original comment
  • You can reply to any comment, including bot comments (like Copilot reviews)

Resolving Conversations

To resolve (mark as resolved) PR review threads, use the GraphQL API:

  1. Get thread IDs: Query for unresolved threads:

    gh api graphql -f query='
    query {
      repository(owner: "{owner}", name: "{repo}") {
        pullRequest(number: {pull_number}) {
          reviewThreads(first: 50) {
            nodes {
              id
              isResolved
              comments(first: 1) {
                nodes { body path }
              }
            }
          }
        }
      }
    }'
    
  2. Resolve threads: Use the resolveReviewThread mutation:

    gh api graphql -f query='
    mutation {
      resolveReviewThread(input: {threadId: "PRRT_xxx"}) {
        thread { isResolved }
      }
    }'
    
  3. Resolve multiple threads at once:

    gh api graphql -f query='
    mutation {
      t1: resolveReviewThread(input: {threadId: "PRRT_xxx"}) { thread { isResolved } }
      t2: resolveReviewThread(input: {threadId: "PRRT_yyy"}) { thread { isResolved } }
    }'
    

The thread ID starts with PRRT_ and can be found in the GraphQL query response.

Note: This skill can be removed once the GitHub MCP server has added built-in support for replying to PR review comments and resolving threads. See: https://github.com/github/github-mcp-server/issues/1323 https://github.com/github/github-mcp-server/issues/1768

You might also like

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,5631,567

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,8321,487

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,7121,238

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,625909

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,909843

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,444796