rfix

star 1

Implement fixes for PR review comments and post responses

yki-t By yki-t schedule Updated 2/27/2026

name: rfix description: Implement fixes for PR review comments and post responses argument-hint: disable-model-invocation: true

review-fix

Task

Implement fixes for review comments and post responses.

Arguments

  • PR number or URL (required)

Workflow

  1. Identify Target Comments

    • Get review comments with gh pr view {number} --comments or gh api
    • List unresolved review comments
    • Address all comments by default (user can specify to skip)
  2. Implement Fixes (loop for each comment)

    • Implement the fix for the selected comment
    • Create a commit for the fix
    • Draft a response (do NOT post yet)
  3. Request Approval

    • Present all commits and draft responses together
    • Allow modification of commit messages if user requests
    • Wait for explicit user approval
  4. Post Responses

    • User pushes commits
    • Post all replies using gh api

API Call Format

# Reply to a review comment
gh api repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies \
  -X POST -f body="こちらで対応しました
{commit_hash}"

Notes

  • This command is allowed to create commits (exception to CLAUDE.md git restrictions)
  • This skill's workflow is self-contained and takes precedence over CLAUDE.md's generic workflows (e.g., sub-agent workflow). Do NOT substitute or merge with other workflows.
  • Implementation uses sub-agents, but the overall flow (commit per comment, draft responses, present together, post after approval) must be strictly followed.

Examples

  • /rfix 157 - Respond to review comments on PR #157
  • /rfix https://github.com/org/repo/pull/157 - Respond from URL
Install via CLI
npx skills add https://github.com/yki-t/dotfiles --skill rfix
Repository Details
star Stars 1
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator