/desplega:tackle-gh-comments runs instead · from desplega
Fetches GitHub PR review threads via GraphQL, verifies each claim against the code, fixes real issues in separate commits, replies, resolves threads, and pushes. Invoked by saying "tackle the PR comments" or similar.
This skill never runs in Claude Code
It ships in desplega at skills/, but /desplega:tackle-gh-comments (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
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.
list the unresolved threads and the findings outside threads.Push last. A thread that resolves before the fix is pushed reads as dismissed.
SKILL="${CLAUDE_PLUGIN_ROOT}/skills/tackle-gh-comments/scripts/gh-pr-comments.ts"
bun $SKILL list # unresolved threads and findings on head, current PR
bun $SKILL list --pr 1044 --all # explicit PR, add resolved threads and older findings
bun $SKILL json # machine-readable, for scripting
bun $SKILL findings # review bodies and PR comments on head, as JSON
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
Repo and PR number are inferred from the current checkout; --repo owner/name
and --pr N override. Thread ids are opaque GraphQL node ids — pass them back
verbatim.
Use heredocs for multi-line replies, so backticks and quotes survive the shell:
bun $SKILL handle --thread PRRT_xxx --body "$(cat <<'EOF'
Fixed in <sha> — ...
EOF
)"
Never fix on the reviewer's say-so alone. For each comment, find the specific evidence:
CLAUDE.md / AGENTS.md / the linked line range), then check whether
neighbouring code follows it. A rule the rest of the file already breaks is a
different conversation from one this PR introduces.When a fix is behaviour-preserving (a refactor the reviewer asked for), prove it: diff the before/after output, or run the test that covers it, and say so in the reply.
A reviewer flagging one instance often means the whole class should be enforced. Adding a lint/CI check is usually the right response — but the check is itself code that can be wrong, and a wrong rule is worse than no rule because it pressures the next person to delete working things to make CI green.
State what happened, with the commit sha, and enough reasoning that the next reader does not have to re-derive it.
Do not pad replies with thanks-for-the-review filler. One line of acknowledgement at most, then the substance.
Findings outside threads (review bodies, bot summary comments) have no
thread to resolve. Answer them with one PR comment (gh pr comment) that names
each finding and its outcome, with the same rules as above.
gh pr view --comments looks empty. It does not show inline review
threads. Use list.list after the push settles for one more sweep. To continue until
the PR is approved (re-trigger reviewers, wait, fix CI, repeat), use
desplega:babysit-pr.outdated flag) attach to lines that have since moved.
Still reply — the underlying point usually survives the diff.bun $SKILL verify exits 0.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub desplega-ai/ai-toolbox --plugin desplega26 skills in this plugin
/ask-userConventions for asking the user questions during a workflow via the AskUserQuestion tool. Other skills reference this to keep prompts consistent and structured./babysit-prKeep a GitHub PR moving until it is clean on its head commit. Each round fixes CI failures, handles review findings, rebases when needed, re-triggers the reviewers, and then waits in the background for the next event. Use when the user says "babysit the PR", "watch the PR until it's approved", "keep going until approved", "monitor the PR", or invokes /babysit-pr. Merges only when the user asks for it./brainstormingInteractive exploration of ideas through Socratic Q&A. Produces progressive documents that serve as lightweight pre-PRDs feeding into research./code-reviewingTwo-axis code review of a diff — Standards (is the code well built?) and Spec (does it actually solve the stated problem?) — run as parallel sub-agents and reported separately, never merged. Use when reviewing implementation output (a phase, a wave, a branch, a PR), when the user says "review the code", "review the diff", "review this phase", or when another desplega skill (implementing, v-implementing, verifying, delegate-work) calls for a per-phase or final code review. For reviewing DOCUMENTS (plans, research, brainstorms), use desplega:reviewing instead./commsRe-express something so it lands — re-explain your last reply in plain casual language, show the current topic visually (diagram, code-shape sketch, HTML artifact), do both at once, or rewrite artifact text into unambiguous ASD-STE100 English. Use when the user runs /desplega:comms, types /bro, says 'say it simpler', 'bro what', 'I don't follow', 'show me', 'draw this', 'visualize', 'disambiguate this', or 'STE100 rewrite'. Not for creative or marketing copy./delegate-workExecutor routing policy for ALL delegated work — pick the right model for every sub-agent and the right Codex variant for every implementation slice. Use whenever you are about to spawn a sub-agent/Task (research, review, QA, UI, search), whenever a desplega skill (implement-plan, v-implement, run-phase, run-step, research) is choosing executors for phases/steps, or when the user says "implement with codex", "delegate this", "which model should do this", or similar. Supersedes codex-implement (its worktree/exec mechanics live here).Other plugins' skills for the same job