ankyr-pr-resolver

Resolves GitHub PR review threads through a triage, fix, reply, and re-review loop.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/GuyErreich/AI_Agents --skill ankyr-pr-resolver-guyerreich
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ankyr-pr-resolver
Source: https://github.com/GuyErreich/AI_Agents/tree/main/plugins/ankyr-review/skills/ankyr-pr-resolver
Command: npx skills add https://github.com/GuyErreich/AI_Agents --skill ankyr-pr-resolver-guyerreich

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Addressing pull request review comments is repetitive and error-prone: threads get missed beyond the first page, fixes get pushed without approval, and threads get resolved before the fix actually lands on the remote branch. This Skill runs a controlled loop that fetches every unresolved thread, triages each one with the user in Plan mode, implements only approved fixes, and repeats until no unresolved issues remain. ## Core Features & Use Cases - Complete thread fetching: Uses GraphQL with full pagination so no review thread is silently missed, unlike REST tooling. - Approval-gated triage: Presents a per-thread table (fix, by design, or blocked) in Plan mode and waits for explicit user approval before touching code. - Scoped commit and push consent: Commits and pushes only the approved fix commits on the current PR branch, then posts threaded replies and resolves threads per strict rules. - Use Case: A pull request receives a dozen Copilot and human review comments. Invoke this Skill to fetch all threads, review the triage table, approve three fixes, and let it implement, validate, commit, push, reply, resolve, and re-review until the PR is clean. ## Quick Start Ask the agent to resolve the review comments on the current pull request using the PR resolver workflow.

Frequently Asked Questions about ankyr-pr-resolver

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

FAQPage Schema
How do I resolve GitHub PR review comments automatically?▼

Use a controlled loop that fetches all unresolved review threads via GraphQL, triages each as fix, by design, or blocked, and implements only user-approved fixes. After validation, it commits, pushes, replies on threads, resolves them, and re-reviews until clean.

How to fetch all PR review threads with the GitHub CLI?▼

Use gh api graphql with the reviewThreads query and paginate with the after cursor until hasNextPage is false. REST tooling paginates incorrectly and silently misses threads beyond the first page, so GraphQL is required.

Does it commit and push without my approval?▼

No. The workflow has a hard stop: it presents a triage table in Plan mode and waits for explicit approval before editing code, committing, pushing, or resolving threads. Approving the plan grants scoped consent to commit and push only the approved fixes.

When is a review thread marked as resolved?▼

A fix thread is resolved only after the fix is pushed to the remote PR branch and the reply cites the remote commit SHA. By-design and blocked threads are resolved after posting the in-thread reply, since no code change is needed.

What happens if the push fails during PR resolution?▼

The loop stops immediately: it posts replies noting the blocker, leaves fix threads unresolved, and reports the failure in chat. Threads are never resolved while a fix exists only locally.