Agent skill
resolve-pr-comments
Address GitHub PR review comments end-to-end, fetch unresolved review threads (via `gh` GraphQL), implement fixes, reply with what changed, and resolve threads using the bundled scripts. Use when asked to “address PR comments”, “resolve review threads”, or “clear requested changes”.
Install this agent skill to your Project
npx add-skill https://github.com/frmlabz/frm-stack/tree/main/capabilities/general/skills/resolve-pr-comments
SKILL.md
Resolve PR Comments
Use this workflow when asked to “address PR comments”, “resolve review threads”, or “clear requested changes” on a GitHub pull request.
Preconditions
- You are in the repo working tree for the PR.
gh auth statussucceeds and you have permission to comment/resolve threads.jqis installed (used by the helper scripts).
Workflow
-
Identify the PR for the current branch
- Prefer:
gh pr view --json number,url,headRefName,baseRefName --jq '{number,url,headRefName,baseRefName}' - If no PR exists for the current branch, stop and ask the user what PR to target.
- Prefer:
-
Fetch unresolved review threads
- Run:
bash skills/resolve-pr-comments/scripts/fetch-unresolved-review-threads.sh - If you need to target a different PR explicitly:
bash skills/resolve-pr-comments/scripts/fetch-unresolved-review-threads.sh 137 - This prints a JSON object with
{ pr, threads }wherethreadsincludes onlyisResolved=false.
- Run:
-
Triage and decide action per thread
- If the comment is valid: implement the fix (prefer smallest change that satisfies intent).
- If it’s incorrect / not applicable: reply explaining why (with concrete reasoning), then resolve.
- If it requires product/architecture decision: reply with options + ask for direction; do not resolve unless the reviewer explicitly said it’s optional.
- If it’s outdated (
isOutdated=true): still reply with what changed + where, then resolve.
-
Implement fixes
- Locate the referenced code by:
- using
path/linefrom the thread (when present), and/or - searching for identifiers mentioned in the comment.
- using
- Keep fixes scoped; do not refactor unrelated code.
- Add/adjust tests where the comment implies a behavioral requirement.
- Locate the referenced code by:
-
Reply + resolve
- Reply (keep it short; include file path and what changed):
bash skills/resolve-pr-comments/scripts/reply-and-resolve-review-thread.sh '<THREAD_ID>' '<REPLY_BODY>' - For longer replies, pass the body via stdin:
cat <<'EOF' | bash skills/resolve-pr-comments/scripts/reply-and-resolve-review-thread.sh '<THREAD_ID>' -- (write reply)
EOF
- If you need to reply without resolving yet:
bash skills/resolve-pr-comments/scripts/reply-to-review-thread.sh '<THREAD_ID>' '<REPLY_BODY>'
- Reply (keep it short; include file path and what changed):
Notes
- Prefer resolving threads only after the code is updated (or you’ve explained why no change is needed).
- If CI is required for confidence, mention it in the reply (“will resolve after CI is green”) and avoid resolving prematurely.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
testing
Shared database testing patterns with testcontainers and Vitest. Use when writing backend tests, setting up test files, debugging test failures, or configuring Vitest. Triggers on "write tests", "test setup", "testcontainers", "vitest config", "test isolation", or when creating new test suites.
db-workflow
Database workflow with Postgres, Kysely, and Atlas migrations. Use when modifying database schema, creating migrations, generating TypeScript types, or troubleshooting database issues. Triggers on "schema change", "migration", "db-migrate", "kysely", "atlas", or when editing db/schema.sql.
mobile-auth
Better Auth integration with Expo/React Native. Use when working on mobile authentication, session management, or debugging auth issues in the mobile app. Triggers on "mobile auth", "expo auth", "better-auth expo", "session provider", "SecureStore", or when editing apps/frontend/mobile auth files.
react-useeffect
React useEffect best practices from official docs. Use when writing/reviewing useEffect, useState for derived values, data fetching, or state synchronization. Teaches when NOT to use Effect and better alternatives.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
Didn't find tool you were looking for?