mcpField
O
openai-gh-address-comments

openai-gh-address-comments

github.com/trailofbitsDevelopment52275 installsUpdated 15w ago
Repository

About openai-gh-address-comments

A skill that guides an agent through reviewing comments on the current branch's open pull request and addressing selected feedback. It uses gh CLI and asks the user which comments to handle before applying changes.

Key features

  1. 01Find the current branch's open PR
  2. 02Fetch comments and review threads
  3. 03Number and summarize feedback
  4. 04Ask which comments to address
  5. 05Apply selected fixes

Use cases

  1. 01Reviewing feedback on an open PR
  2. 02Selecting specific review threads for changes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/trailofbits/skills-curated --skill openai-gh-address-comments

After installing, type/openai-gh-address-commentsin Claude Code to confirm it loaded.

Bundled filesscripts/fetch_comments.py

Details

From the project README

PR Comment Handler

Guide to find the open PR for the current branch and address its comments with gh CLI. Run all gh commands with elevated network access.

1) Inspect comments needing attention

  • Run scripts/fetch_comments.py which will print out all the comments and review threads on the PR

2) Ask the user for clarification

  • Number all the review threads and comments and provide a short summary of what would be required to apply a fix for it
  • Ask the user which numbered comments should be addressed

3) If user chooses comments

  • Apply fixes for the selected comments

Notes:

  • If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with gh auth login, then retry.

When to Use

When NOT to Use

Comments

Markdown supported