搜索

PythonReactSEOPDF
GitHub Skill

gh-address-comments

The agent is capable of extraordinary work in this domain. These guidelines unlock that potential—they don't constrain it. Use judgment, adapt to context, and push boundaries when appropriate.. Use when When the user asks to address review comments on an open GitHub PR..

jscraik☆ 1 仓库 Stars1 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

PR Comment Handler

Compliance

  • Check against GOLD Industry Standards guide in ~/.codex/AGENTS.override.md

Philosophy

  • Respect reviewer intent; clarify before changing behavior.
  • Prefer minimal, verifiable fixes over sweeping refactors.
  • Keep changes traceable to specific comments and evidence.
  • Explain the why in responses, not just the what.
  • Optimize for reviewer trust and project continuity.

Guiding questions

  • What is the reviewer’s intent and expected outcome?
  • Why is this comment raised now (correctness, design, consistency, or risk)?
  • What is the smallest change that resolves the issue?
  • How will this change be verified (tests, lint, evidence)?

When to use

  • When the user asks to address review comments on an open GitHub PR.
  • When the user wants to respond to reviewer feedback using gh CLI.
  • When the user needs a summary of PR review threads before fixing.
  • When the user asks to verify gh auth or fetch PR comments.

Inputs

  • Current git branch and repository context.
  • gh CLI authenticated session and repo access.
  • User-selected comment numbers to address.

Outputs

  • A numbered summary of review threads and proposed fixes.
  • Code changes addressing selected comments.
  • A response plan for each addressed comment (path + rationale + verification).

Constraints / Safety

  • Redact secrets/PII by default.
  • Do not change unrelated code while addressing specific comments.
  • Do not run gh commands without auth; prompt to authenticate first.
  • Avoid destructive git operations; ask before any risky action.

Example prompts

  • "Address the open PR comments on my current branch."
  • "Summarize reviewer feedback and fix comments 2 and 4."
  • "Use gh to fetch PR review threads and propose fixes."

Remember

The agent is capable of extraordinary work in this domain. These guidelines unlock that potential—they don't constrain it. Use judgment, adapt to context, and push boundaries when appropriate.

Variation rules

  • Vary depth of fixes based on comment severity (nit vs correctness vs design).
  • Vary response style by reviewer role (maintainer vs peer) and repo norms.
  • Vary evidence depth by change risk (simple edits vs behavior changes).
  • Prefer different approaches when prior fixes failed or feedback repeats.

Empowerment principles

  • Empower the user to pick which comments to address first.
  • Empower reviewers with concise evidence of the change (path + rationale).
  • Empower maintainers with clear trade-offs and rollback options.
  • Empower teams to defer non-blocking comments explicitly.

Anti-patterns to avoid

  • Changing unrelated code while addressing a single comment.
  • Responding without confirming ambiguous intent.
  • Hiding trade-offs or breaking tests to “satisfy” a comment.
  • Anti-pattern: replying before verifying CI status or local tests.
  • Anti-pattern: bundling multiple comment fixes without labeling them.

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.

Validation

  • Run any relevant checks or scripts when available.
  • Fail fast and report errors before proceeding.

Procedure

  1. Clarify scope and inputs.
  2. Execute the core workflow.
  3. Summarize outputs and next steps.

Antipatterns

  • Do not add features outside the agreed scope.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-31
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!