github-pr

Installation
SKILL.md

GitHub PR Operations

Open a pull request

ruby scripts/create_pull_request.rb --repo "$(pwd)" <<'EOF'
Summary of the change
EOF

Check whether the latest test workflows for the current PR succeeded

ruby scripts/show_test_ci_results.rb --repo "$(pwd)"

The script can take up to 1 hour, so set the timeout to 1 hour. It classifies the latest result of each workflow as successful, running, or failed.

Fetch unresolved review threads for a PR

ruby scripts/list_unresolved_review_threads.rb --repo "$(pwd)"

Reply to unresolved review threads and resolve them

ruby scripts/reply_and_resolve_review_threads.rb --repo "$(pwd)" <<'EOF'
{
  "replies": {
    "PRRT_kwDORiWJ-851nXBt": "Fixed in the latest update.",
    "PRRT_kwDORiWJ-851nXBu": "Kept as-is intentionally. Added clarification in the code."
  }
}
EOF

The JSON object must contain replies, keyed by review thread ID.

Notes

  • Resolve scripts/*.rb relative to this skill directory, not relative to the repository you are operating on.
  • Pass the target repository path to the script with --repo. For example, if you are in the repository, use --repo "$(pwd)".
  • If your agent cannot resolve the relative scripts/... path, use an absolute path to the script. Keep --repo pointed at the target repository.
  • Run git commit and git push sequentially to avoid conflicts
Related skills
Installs
6
GitHub Stars
1
First Seen
Mar 21, 2026