tackle-gh-commentslisted
Install: claude install-skill desplega-ai/ai-toolbox
# Tackle GitHub PR comments
Review threads and their resolved state live **only in GraphQL**. The REST API
cannot read `isResolved` and cannot resolve a thread, and `gh pr view --comments`
shows issue comments while hiding inline review threads entirely. So this skill
drives everything through GraphQL via `scripts/gh-pr-comments.ts`, authenticated
with `gh auth token`.
## The loop
1. **Fetch** — `list` the unresolved threads.
2. **Verify each claim before acting on it.** Bot reviewers are often right and
sometimes confidently wrong. Read the code the comment points at.
3. **Fix what is real**, in a commit separate from the original work so the
reviewer can see what changed in response.
4. **Reply to every thread**, including ones you are declining.
5. **Resolve** each thread.
6. **Verify** nothing is left open, then push.
Push last. A thread that resolves before the fix is pushed reads as dismissed.
## Commands
```bash
SKILL="${CLAUDE_PLUGIN_ROOT}/skills/tackle-gh-comments/scripts/gh-pr-comments.ts"
bun $SKILL list # unresolved threads in the current PR
bun $SKILL list --pr 1044 --all # explicit PR, include resolved
bun $SKILL json # machine-readable, for scripting
bun $SKILL handle --thread <id> --body "..." # reply + resolve
bun $SKILL reply --thread <id> --body "..." # reply only
bun $SKILL resolve --thread <id> # resolve only
bun $SKILL verify # exit 1 if any thread is unresolved
```