agentleFS
yeaight7yeaight7/agent-powerups/skills/gh-address-comments/SKILL.md

gh-address-comments

Skill6 starsChanged 4 months agoApache-2.0View on GitHub

Address actionable GitHub pull request review feedback. Use when the user wants to inspect unresolved review threads, requested changes, or inline review comments on a PR, then implement selected fixes.

32 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use email-draft-polish, codebase-migrate and 10 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.
  • ComposioHQSkill

    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 4 projects that use this

  • ComposioHQSkill

    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 4 projects that use this

  • petestewartSkill

    datadog-logs

    Query Datadog logs via the Logs Search API v2. Use when the user asks to "check the logs", "search logs", "find errors in Datadog", "look up logs for", "show me production logs", "check for errors", "search Datadog", or any request involving log search, error investigation, or production debugging that requires Datadog log data.

    Also in 3 projects that use this

  • MicrosoftSkill

    deploy-pipeline

    Triggers a Power Platform Pipeline deployment run for a Power Pages solution. Selects a target stage, validates the package, optionally configures deployment settings (environment variables, connection references), then deploys and polls for completion. Use when asked to: "deploy pipeline", "run pipeline", "trigger deployment", "deploy to staging", "deploy to production", "run power platform pipeline", "deploy solution via pipeline", "promote solution", "push to staging", "push to production".

    Also in 3 projects that use this

  • +8 more from ComposioHQ

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    Run all gh commands with elevated network access.

    line 10
  2. Distinctive:

    If the user provides a repository and PR number or URL, use that directly.

    line 15
  3. Very specific:

    If the request is about the current branch PR, use local git context: gh pr view --json number,url.

    line 16
  4. Very specific:

    Use gh api graphql whenever the task depends on unresolved review threads, inline review locations, or resolution state — it fetches …

    line 19
  5. Distinctive:

    Use flat comment reads only for lightweight top-level PR comment summaries.

    line 20
  6. Distinctive:

    If the user did not ask to fix everything, ask which threads to address.

    line 28
  7. Distinctive:

    If the user asks to fix everything, interpret that as all unresolved actionable threads and call out anything ambiguous.

    line 29
  8. Distinctive:

    Keep each code change traceable back to the thread or feedback cluster it addresses.

    line 32
  9. Distinctive:

    If a comment calls for explanation rather than code, draft the response rather than forcing a code change.

    line 33
  10. Distinctive:

    Do not reply on GitHub, resolve review threads, or submit a review unless the user explicitly asks for that write action.

    line 40
  11. Distinctive:

    If review comments conflict with each other or would cause a behavioral regression, surface the tradeoff before making changes.

    line 41
  12. Distinctive:

    If a comment is ambiguous, ask for clarification or draft a proposed response instead of guessing.

    line 42
  13. Distinctive:

    Do not treat flat PR comments as a complete representation of review-thread state.

    line 43
  14. Very specific:

    If gh hits auth or rate-limit issues mid-run, ask the user to re-authenticate and retry.

    line 44
  15. Very specific:

    If neither the connector nor gh can resolve the PR cleanly, tell the user whether the blocker is missing repository scope, missing PR …

    line 48

“Common” is measured: kept by at least 6 in 10 of the 30 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

GitHub PR Comment Handler

Use this skill when the user wants to work through requested changes on a GitHub pull request. Use the GitHub MCP or gh CLI for PR metadata and patch context. Treat thread-aware review data as a gh api graphql problem — the flat comment surface does not preserve full review-thread state.

Run all gh commands with elevated network access. If CLI auth is required, confirm gh auth status first and ask the user to authenticate with gh auth login if it fails.

Workflow

  1. Resolve the PR.
    • If the user provides a repository and PR number or URL, use that directly.
    • If the request is about the current branch PR, use local git context: gh pr view --json number,url.
  2. Inspect review context with thread-aware reads.
    • Use gh api graphql whenever the task depends on unresolved review threads, inline review locations, or resolution state — it fetches reviewThreads, isResolved, isOutdated, and file/line anchors.
    • Use flat comment reads only for lightweight top-level PR comment summaries.
  3. Cluster actionable review threads.
    • Group comments by file or behavior area.
    • Separate actionable change requests from informational comments, approvals, already-resolved threads, and duplicates.
  4. Confirm scope before editing.
    • Present numbered actionable threads with a one-line summary of the required change.
    • If the user did not ask to fix everything, ask which threads to address.
    • If the user asks to fix everything, interpret that as all unresolved actionable threads and call out anything ambiguous.
  5. Implement the selected fixes locally.
    • Keep each code change traceable back to the thread or feedback cluster it addresses.
    • If a comment calls for explanation rather than code, draft the response rather than forcing a code change.
  6. Summarize the result.
    • List which threads were addressed, which were intentionally left open, and what tests or checks support the change.

Write Safety

  • Do not reply on GitHub, resolve review threads, or submit a review unless the user explicitly asks for that write action.
  • If review comments conflict with each other or would cause a behavioral regression, surface the tradeoff before making changes.
  • If a comment is ambiguous, ask for clarification or draft a proposed response instead of guessing.
  • Do not treat flat PR comments as a complete representation of review-thread state.
  • If gh hits auth or rate-limit issues mid-run, ask the user to re-authenticate and retry.

Fallback

If neither the connector nor gh can resolve the PR cleanly, tell the user whether the blocker is missing repository scope, missing PR context, or CLI authentication, then ask for the missing repo/PR identifier or a refreshed gh login.

Quick Reference

# Check auth
gh auth status

# View PR
gh pr view <number> --json number,url,title,state

# List review threads (GraphQL)
gh api graphql -f query='
  query($owner:String!, $repo:String!, $pr:Int!) {
    repository(owner:$owner, name:$repo) {
      pullRequest(number:$pr) {
        reviewThreads(first:50) {
          nodes {
            id
            isResolved
            isOutdated
            comments(first:5) {
              nodes { body path line }
            }
          }
        }
      }
    }
  }
' -f owner=OWNER -f repo=REPO -F pr=NUMBER

Verification

  • Review state came from thread-aware GraphQL reads, not flat comments alone
  • Actionable threads were clustered, numbered, and scope-confirmed before any edit
  • Every change is traceable to the thread or feedback cluster it addresses
  • No GitHub replies, thread resolutions, or review submissions happened without an explicit user request
  • The summary lists addressed threads, intentionally open threads, and the tests or checks supporting the changes

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.