agentleFS
ulises-jeremiasulises-jeremias/agent-toolkit/skills/forge/gh-address-comments/SKILL.md

gh-address-comments

Skill18 starsChanged 3 months agoMITView on GitHub

Triage and address open GitHub PR review and conversation comments using the gh CLI. Use

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use codebase-migrate, email-draft-polish and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • composio-communitySkill

    codebase-migrate

    Run large codebase migrations and multi-file refactors. Uses the Composio CLI to coordinate issue tracking, batched PRs, and CI verification while the agent executes the transforms locally across hundreds of files.

    Also in 3 projects that use this

  • composio-communitySkill

    email-draft-polish

    Draft, rewrite, or condense emails with target tone, length, and audience; use for cold outreach, replies, status updates, or escalations where clarity and brevity matter.

    Also in 3 projects that use this

  • ArogyaReddySkill

    meeting-insights-analyzer

    Analyzes meeting transcripts and recordings to uncover behavioral patterns, communication insights, and actionable feedback. Identifies when you avoid conflict, use filler words, dominate conversations, or miss opportunities to listen. Perfect for professionals seeking to improve their communication and leadership skills.

    Also in 3 projects that use this

  • JetBrainsSkill

    create-plan

    Research the codebase and create an implementation plan with architecture notes, design document, and track decomposition. Use when starting a new feature or large change.

    Also in 3 projects that use this

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 3 projects that use this

  • GoogleSkill

    internal-comms

    A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

    Also in 3 projects that use this

  • +3 more from composio-community

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verify auth: Run gh auth status. If it fails, stop and ask the user to re-authenticate.

    line 33
  2. Very specific:

    Resolve the PR: Use gh pr view --json number,url,title to confirm a PR is associated with the current branch.

    line 35
  3. Distinctive:

    Fetch all threads in one pass: Run the bundled script:

    line 37
  4. Distinctive:

    Ask which to address: Wait for the user to pick numbers before changing code.

    line 48
  5. Very specific:

    If gh hits rate limits or auth errors mid-run, stop and surface the message — do not silently retry.

    line 61

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Address GitHub PR Comments

Find the open PR for the current branch and walk through its review/conversation comments using gh. Pair with github-cli-workflow when you also need to push changes or update the PR description.

When to use

  • The current branch has an open PR and reviewers left comments.
  • The user asks to "address comments", "resolve review threads", or "respond to PR feedback".
  • You need a summarized view of inline comments + reviews + conversation threads in one call.

Prerequisites

  • gh (GitHub CLI) installed and on PATH (covered by bootstrap).
  • gh auth status exits 0. If not, ask the user to run gh auth login once (workflow + repo scopes recommended).
  • python3 (used by the bundled inspection script).

doctor already reports gh auth status under "Integrations" — confirm it is green before invoking this skill.

Workflow

  1. Verify auth. Run gh auth status. If it fails, stop and ask the user to re-authenticate.
  2. Resolve the PR. Use gh pr view --json number,url,title to confirm a PR is associated with the current branch. If none, surface that and stop.
  3. Fetch all threads in one pass. Run the bundled script:

    python3 ~/.local/share/agent-toolkit/skills/gh-address-comments/scripts/fetch_comments.py \
      > /tmp/pr-comments.json

    The script paginates conversation comments, review submissions, and inline review threads (including resolved/outdated state) via gh api graphql.

  4. Summarize for the user. Number every thread/comment and provide a one-line intent for each (e.g. [3] tests/foo.test.ts:12 — reviewer asks for a null check).
  5. Ask which to address. Wait for the user to pick numbers before changing code.
  6. Apply fixes. For each accepted comment, edit the relevant file and stage the change. Do not push or merge from this skill — delegate to github-cli-workflow.
  7. Optional: reply or resolve. Once the user confirms, you can post replies with gh pr comment <pr> --body "..." or resolve threads via the GraphQL resolveReviewThread mutation when explicitly requested.

Boundaries

  • This skill reads PR feedback and edits files; it does not push, merge, or change PR metadata. Use github-cli-workflow for those steps.
  • Scope is the open PR for the current branch. For arbitrary PR numbers, ask the user to switch branches first.
  • If gh hits rate limits or auth errors mid-run, stop and surface the message — do not silently retry.

Bundled resources

  • scripts/fetch_comments.py — paginated GraphQL fetch (stdlib only, shells out to gh api graphql). Output is a single JSON document on stdout.

Validation

  • skills check reports the gh requirement.
  • doctor shows gh auth status under Integrations.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.