git-remote-pr

Installation
SKILL.md

Git Remote PR

Open or maintain one GitHub pull request for the entire committed current branch. Use Git, gh, and GitHub APIs. Never use GitHub Copilot, gh copilot, browser automation, GitHub's generated PR description, or another model-backed GitHub service. The agent reading this skill writes concise reviewer-oriented prose from collected evidence; bundled scripts collect and verify facts only. Use PowerShell 7 (pwsh) on Windows, Linux, and macOS.

Routing and authorization

  • Trigger on an explicit request to create, open, make, or refresh a GitHub PR, or git remote pr. /git-remote-pr may force selection where supported. Bare yolo or auto never triggers this skill.
  • The explicit PR request authorizes read-only preparation. In normal mode, show the preview below and stop for the exact approve APR-... phrase displayed in that preview before any remote write. Approval for Preview A can execute only Plan A.
  • yolo or auto attached to the same explicit PR request authorizes the narrow write phase after displaying the same preview as status. Continue without a second question. Neither mode authorizes force push, rebase, reset, amend, merge, branch deletion, auto-merge, or unrelated writes.
  • A dirty worktree, including untracked files, blocks both modes. Explain that a PR contains committed changes only. Do not stage, commit, stash, discard, or automatically invoke git-visual-commits.
  • A missing upstream tracking branch, or a local/upstream branch-name mismatch, also blocks both modes. The skill never guesses a PR head after a rename or silent tracking drift; fix tracking first, then rerun the workflow.
  • Commit requests belong to git-visual-commits; squash wording belongs to git-visual-squash-summary; release notes belong to git-remote-release; changelogs belong to git-keep-a-changelog. This skill independently reads the complete PR comparison.

Phase 1: prepare

  1. Check git and gh are available. Run the read-only collector from the current working directory, with an absolute skill path. Use a unique operating-system temp directory, or ignored .bot/ when needed. The collector fails closed for detached HEAD, the base branch, dirty worktree, missing or mismatched upstream tracking, missing auth/assignee eligibility, empty comparison, diverged remote head, and ambiguous templates. It discovers the GitHub repository, authenticated account, actual default branch, fork parent when applicable, upstream head branch, open PR, and push need. If the local branch was renamed or never tracked, repair the upstream first with git push --set-upstream origin HEAD or git branch --set-upstream-to=origin/<branch> after the remote branch name is correct. Supply -Repository owner/repo or -Base branch only when explicitly chosen or needed to resolve real ambiguity.
Installs
1
GitHub Stars
3
First Seen
3 days ago
git-remote-pr — codebeltnet/agentic