{"id":"fa6dab90-c161-4450-9441-29d6111357fe","shortId":"QSyLLj","kind":"skill","title":"fetch-pr-comments","tagline":"Fetch and summarize review feedback and conversation from a GitHub PR (unresolved review threads, review bodies, and PR conversation comments) without making changes. Use when the user asks to \"fetch PR comments\", \"show PR comments\", \"check PR for unresolved comments\", \"list revi","description":"# Fetch PR Comments\n\nFetch unresolved review comments, top-level review body comments, and PR conversation comments from a GitHub PR and present them in a readable summary. This is a read-only skill -- it does not evaluate, fix, or reply to any comments.\n\n## Step 1: Fetch Comments\n\nAuto-detect owner, repo, and PR number from current branch if not provided. Then run `scripts/fetch-pr-data.sh`, which handles full pagination (review threads, inner comment pages for long threads, reviews, issue comments) and emits a single merged JSON document:\n\n```bash\nbash <skill-dir>/scripts/fetch-pr-data.sh <owner> <repo> <pr_number>\n```\n\nOutput shape:\n\n```jsonc\n{\n  \"meta\":          { \"title\", \"url\", \"headRefName\", \"baseRefName\" },\n  \"reviewThreads\": [ { \"id\", \"isResolved\", \"isOutdated\", \"comments\": { \"nodes\": [ { \"author\", \"body\", \"path\", \"line\", \"originalLine\", \"diffHunk\" } ] } } ],\n  \"reviews\":       [ { \"author\", \"body\", \"state\" } ],\n  \"issueComments\": [ { \"author\", \"body\", \"createdAt\", \"url\" } ]\n}\n```\n\nFilter review threads to unresolved only. Filter reviews to those with a non-empty body, excluding `PENDING` state (unsubmitted drafts). Filter issue comments to those with a non-empty body.\n\n## Step 2: Present Results\n\nDisplay a summary header followed by comments grouped by file.\n\n**Summary header:**\n\n- PR title and link\n- Branch: `head` -> `base`\n- Total threads / unresolved threads\n\n**Top-level review comments (if any):**\n\nShow reviews with non-empty body before the file-grouped threads:\n\n```\n## Review Comments\n\n### @reviewer (CHANGES_REQUESTED)\n> Review body text here\n\n### @another-reviewer (COMMENTED)\n> Another review body here\n```\n\n**Issue comments (if any):**\n\nShow PR conversation comments after review comments, ordered by `createdAt`:\n\n```\n## Issue Comments\n\n### @commenter (2026-04-20)\n> Issue comment body here\n\n### @another-commenter (2026-04-21)\n> Another issue comment body here\n```\n\n**Inline threads grouped by file:**\n\nFor each file with unresolved threads, show:\n\n````\n## `path/to/file.ts`\n\n### Line 42 (by @reviewer)\n```diff\n<diffHunk from first comment>\n```\n> Comment body here\n\n### Line 10 (by @another-reviewer) [outdated]\n```diff\n<diffHunk from first comment>\n```\n> First comment body\n>\n> **@reply-author:** Reply body\n````\n\n**Formatting rules:**\n- Show top-level review body comments first, grouped under \"Review Comments\"\n- Show PR conversation comments next, grouped under \"Issue Comments\", ordered by `createdAt`\n- Then group threads by file path, in the order they appear\n- Within each file, order threads by line number\n- Show the `diffHunk` from the first comment in each thread as a fenced diff code block before the comment body. This is the code context the reviewer was looking at.\n- For the line number, use `line` if available. Fall back to `originalLine` for outdated comments where `line` is null.\n- Show all comments in a thread (the first is the original review comment; subsequent ones are replies)\n- Mark outdated threads with `[outdated]`\n- Use blockquotes for comment bodies\n- For threads with multiple comments, show each comment with its author\n- If there are zero unresolved threads, zero review body comments, and zero issue comments, say so and stop\n\nThen use the TaskList tool and proceed to any remaining task.\n\n## Rules\n\n- If the user wants to fix or reply to comments, direct them to use `/resolve-pr-comments`.","tags":["fetch","comments","turbo","tobihagemann","agent-skills","claude-code","claude-skills","developer-tools","skills"],"capabilities":["skill","source-tobihagemann","skill-fetch-pr-comments","topic-agent-skills","topic-claude-code","topic-claude-skills","topic-developer-tools","topic-skills"],"categories":["turbo"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/tobihagemann/turbo/fetch-pr-comments","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add tobihagemann/turbo","source_repo":"https://github.com/tobihagemann/turbo","install_from":"skills.sh"}},"qualityScore":"0.590","qualityRationale":"deterministic score 0.59 from registry signals: · indexed on github topic:agent-skills · 280 github stars · SKILL.md body (3,379 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T00:54:09.575Z","embedding":null,"createdAt":"2026-04-18T22:03:44.436Z","updatedAt":"2026-04-22T00:54:09.575Z","lastSeenAt":"2026-04-22T00:54:09.575Z","tsv":"'-04':281,291 '-20':282 '-21':292 '/resolve-pr-comments':511 '/scripts/fetch-pr-data.sh':137 '1':93 '10':320 '2':200 '2026':280,290 '42':312 'anoth':256,259,288,293,323 'another-comment':287 'another-review':255,322 'appear':371 'ask':32 'author':152,159,163,332,466 'auto':97 'auto-detect':96 'avail':417 'back':419 'base':221 'baserefnam':145 'bash':135,136 'block':395 'blockquot':452 'bodi':20,58,153,160,164,182,198,239,252,261,285,296,317,329,334,342,399,455,475 'branch':106,219 'chang':27,249 'check':40 'code':394,403 'comment':4,24,36,39,44,49,53,59,63,91,95,120,127,150,190,209,230,247,258,264,270,273,278,279,284,289,295,316,328,343,348,352,357,386,398,424,431,441,454,460,463,476,480,506 'context':404 'convers':11,23,62,269,351 'createdat':165,276,360 'current':105 'detect':98 'diff':315,326,393 'diffhunk':157,382 'direct':507 'display':203 'document':134 'draft':187 'emit':129 'empti':181,197,238 'evalu':85 'exclud':183 'fall':418 'feedback':9 'fenc':392 'fetch':2,5,34,47,50,94 'fetch-pr-com':1 'file':212,243,302,305,365,374 'file-group':242 'filter':167,173,188 'first':327,344,385,436 'fix':86,502 'follow':207 'format':335 'full':115 'github':14,66 'group':210,244,300,345,354,362 'handl':114 'head':220 'header':206,214 'headrefnam':144 'id':147 'inlin':298 'inner':119 'isoutd':149 'isresolv':148 'issu':126,189,263,277,283,294,356,479 'issuecom':162 'json':133 'jsonc':140 'level':56,228,340 'line':155,311,319,378,412,415,426 'link':218 'list':45 'long':123 'look':408 'make':26 'mark':446 'merg':132 'meta':141 'multipl':459 'next':353 'node':151 'non':180,196,237 'non-empti':179,195,236 'null':428 'number':103,379,413 'one':443 'order':274,358,369,375 'origin':439 'originallin':156,421 'outdat':325,423,447,450 'output':138 'owner':99 'page':121 'pagin':116 'path':154,366 'path/to/file.ts':310 'pend':184 'pr':3,15,22,35,38,41,48,61,67,102,215,268,350 'present':69,201 'proceed':491 'provid':109 'read':79 'read-on':78 'readabl':73 'remain':494 'repli':88,331,333,445,504 'reply-author':330 'repo':100 'request':250 'result':202 'revi':46 'review':8,17,19,52,57,117,125,158,168,174,229,234,246,248,251,257,260,272,314,324,341,347,406,440,474 'reviewthread':146 'rule':336,496 'run':111 'say':481 'scripts/fetch-pr-data.sh':112 'shape':139 'show':37,233,267,309,337,349,380,429,461 'singl':131 'skill':81 'skill-fetch-pr-comments' 'source-tobihagemann' 'state':161,185 'step':92,199 'stop':484 'subsequ':442 'summar':7 'summari':74,205,213 'task':495 'tasklist':488 'text':253 'thread':18,118,124,169,223,225,245,299,308,363,376,389,434,448,457,472 'titl':142,216 'tool':489 'top':55,227,339 'top-level':54,226,338 'topic-agent-skills' 'topic-claude-code' 'topic-claude-skills' 'topic-developer-tools' 'topic-skills' 'total':222 'unresolv':16,43,51,171,224,307,471 'unsubmit':186 'url':143,166 'use':28,414,451,486,510 'user':31,499 'want':500 'within':372 'without':25 'zero':470,473,478","prices":[{"id":"b6d3c1be-7fbe-48fa-a1e7-da58d63f69f0","listingId":"fa6dab90-c161-4450-9441-29d6111357fe","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"tobihagemann","category":"turbo","install_from":"skills.sh"},"createdAt":"2026-04-18T22:03:44.436Z"}],"sources":[{"listingId":"fa6dab90-c161-4450-9441-29d6111357fe","source":"github","sourceId":"tobihagemann/turbo/fetch-pr-comments","sourceUrl":"https://github.com/tobihagemann/turbo/tree/main/skills/fetch-pr-comments","isPrimary":false,"firstSeenAt":"2026-04-18T22:03:44.436Z","lastSeenAt":"2026-04-22T00:54:09.575Z"}],"details":{"listingId":"fa6dab90-c161-4450-9441-29d6111357fe","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"tobihagemann","slug":"fetch-pr-comments","github":{"repo":"tobihagemann/turbo","stars":280,"topics":["agent-skills","claude-code","claude-skills","developer-tools","skills"],"license":"mit","html_url":"https://github.com/tobihagemann/turbo","pushed_at":"2026-04-21T12:22:12Z","description":"A composable dev process for Claude Code, packaged as modular skills.","skill_md_sha":"45439948208bf1096ec5325bf2a704f2df7d037e","skill_md_path":"skills/fetch-pr-comments/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/tobihagemann/turbo/tree/main/skills/fetch-pr-comments"},"layout":"multi","source":"github","category":"turbo","frontmatter":{"name":"fetch-pr-comments","description":"Fetch and summarize review feedback and conversation from a GitHub PR (unresolved review threads, review bodies, and PR conversation comments) without making changes. Use when the user asks to \"fetch PR comments\", \"show PR comments\", \"check PR for unresolved comments\", \"list review comments\", \"what comments are on the PR\", \"show unresolved threads\", or \"summarize PR feedback\"."},"skills_sh_url":"https://skills.sh/tobihagemann/turbo/fetch-pr-comments"},"updatedAt":"2026-04-22T00:54:09.575Z"}}