Address review

From saffron-health/opencode-gui · View interactive version

Address review is an AI agent skill from the GitHub repository saffron-health/opencode-gui. Address PR review comments systematically. Use when responding to code review feedback on a pull request.

How to use this skill

Skill file

Address PR review comments systematically.

Process

  1. Get review comments: Use gh api graphql to fetch all review threads and comments for the PR. (If a PR number is not provided in the input, look up the PR for the current branch).
  1. Analyze comments: Review all the feedback to understand what changes are needed
  1. Address each comment systematically: For each review comment:
  1. Quality assurance: Run type-check, build, and lint to ensure all changes are correct
  1. Commit and push: Stage and commit all changes with an appropriate message and push.
  1. Mark comments resolved: Query PR review threads with gh api graphql to get thread IDs and outdated status. Resolve all addressed threads using mutation { resolveReviewThread(input: {threadId: "THREAD_ID"}) { thread { isResolved } } }. Always resolve outdated threads.

Implementation Pattern

// Query review threads:
gh api graphql -f query='query { repository(owner: "owner", name: "repo") { pullRequest(number: N) { reviewThreads(first: 100) { nodes { id isResolved isOutdated comments { nodes { body } } } } } } }'

// Resolve thread:
gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "THREAD_ID"}) { thread { isResolved } } }'

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.