dyad:pr-fix:comments

Reads unresolved GitHub PR review comments and addresses or resolves them via the GitHub API.

21.4k|2.6k|Updated Apr 11, 2025
One-click install
npx skills add https://github.com/dyad-sh/dyad --skill dyad-pr-fix-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dyad:pr-fix:comments
Source: https://github.com/dyad-sh/dyad/tree/main/.claude/skills/pr-fix-comments
Command: npx skills add https://github.com/dyad-sh/dyad --skill dyad-pr-fix-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually triaging and responding to every pull request review comment is time-consuming, especially when PRs accumulate feedback from multiple human reviewers and automated bots. This Skill automates the entire loop: fetching unresolved threads, categorizing feedback, making code fixes, replying, resolving threads, and pushing changes.

Core Features & Use Cases

  • Automated PR comment triage: Fetches all unresolved review threads via the GitHub GraphQL API and filters them against a trusted author allowlist, ignoring untrusted commenters.
  • Categorized handling: Classifies each comment as a valid issue (fixed with code changes), not valid (resolved with an explanation), resolvable via documented product principles, or ambiguous (flagged for human review).
  • End-to-end workflow: Runs lint/format/type checks, commits fixes, pushes via a companion skill, verifies thread resolution, and posts a structured PR summary comment with a confidence score.
  • Use Case: After opening a PR that received feedback from Copilot, Gemini, and human collaborators, run this Skill to automatically address legitimate concerns, rebut invalid ones with cited product principles, and publish a review summary comment.

Quick Start

Ask the AI to run the pr-fix-comments skill on the current branch's pull request to address all unresolved review comments.

Frequently Asked Questions about dyad:pr-fix:comments

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

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

Run this Skill with an optional PR number or URL; it fetches all unresolved review threads via the GitHub GraphQL API, categorizes each comment, makes code fixes for valid issues, replies to invalid ones, and explicitly resolves threads.

How does the skill handle comments from untrusted authors?

Comments from authors not on the trusted allowlist are skipped entirely. The skill only checks the author login field without reading the comment body, tracks the username, and reports untrusted commenters in the final summary.

Can the skill resolve ambiguous review feedback on its own?

It consults the project's product principles document to resolve judgment calls like design or UX trade-offs, citing the relevant principle. Only when principles provide insufficient guidance does it flag the thread for human review and leave it open.

What tools does the PR comment workflow require?

The workflow requires the GitHub CLI (gh) for GraphQL queries, mutations, and comment replies, plus npm scripts for formatting, linting, and type checking before committing and pushing changes.

Why are resolved threads not auto-resolved by GitHub?

GitHub does not reliably auto-resolve threads after code changes, so the skill explicitly calls the resolveReviewThread GraphQL mutation for every addressed thread and re-fetches threads afterward to verify resolution.