reply-to-pr-threads

Featured

Draft, confirm, and post replies to GitHub PR review threads. Handles per-category reply formatting, re-fetches thread resolution state so auto-resolved threads are skipped, and posts via GraphQL. Use when the user asks to "reply to PR threads", "post PR thread replies", or "draft PR reply messages".

Code & Development 402 stars 30 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
87
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Reply to PR Threads Draft replies for a processed review-thread list, confirm with the user, and post the surviving drafts. ## Step 1: Re-fetch Thread State Auto-detect owner, repo, and PR number from the current branch if not provided, then query the current resolution state: ```bash gh api graphql -f query=' query($owner: String!, $repo: String!, $pr: Int!) { repository(owner: $owner, name: $repo) { pullRequest(number: $pr) { reviewThreads(first: 100) { nodes { id isResolved } } } } }' -f owner='{owner}' -f repo='{repo}' -F pr={pr_number} ``` Drop threads whose `isResolved` is now true. Reviewers or bots such as CodeRabbit may resolve threads after the original fetch, and drafting replies for them is wasted work. ## Step 2: Run `/github-voice` Skill Run the `/github-voice` skill to load voice rules and the insider-vs-outsider detection. ## Step 3: Draft Replies Use the processed-thread list from conversation context. Each entry has: thread id, file path, line, category (`fix`, `skip`, `answer`, or `clarify`), and per-category payload. Keep every reply to one or two sentences. No bullet-point reasoning. No bolded labels. **fix**: payload is a commit SHA, optionally with a divergence note. ``` Fixed in <commit-sha>. ``` Only add a brief sentence after the SHA when the fix meaningfully diverges from what the reviewer suggested. Otherwise the SHA alone is enough. **skip**: payload is the skip reasoning. State the reasoning directl...

Details

Author
tobihagemann
Repository
tobihagemann/turbo
Created
6 months ago
Last Updated
2 days ago
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category