/github:prfrom github
Analyzes branch commits, generates a structured PR description, then creates the PR via the GitHub CLI. Use when the user asks to open, create, or submit a pull request or push a branch for review. Do not use for creating commits; use the commit skill for that.
Ships in github. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create GitHub pull requests with structured descriptions via gh CLI.
[base-branch] — the branch to target (defaults to the repository's default branch).--force — skip the editor approval step entirely: create the PR immediately using the generated title and description as-is.--force is passed, use the generated draft verbatim.gh pr create requires a remote-tracking branch).--body-file (not --body) so the user's edited Markdown is preserved verbatim.Co-Authored-By trailer to the body of the PR.<base> from the supplied argument. If none was supplied, run gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'. If that fails, infer main or master from local branches; ask the user only if the base remains ambiguous.<base>, stop and ask the user to create a feature branch.git log <base>..HEAD --oneline to see commits included in this PR. If empty, stop and inform the user there are no commits ahead of <base>.gh pr list --head $(git branch --show-current)). If so, return its URL and ask whether the user wants to update it; do not attempt to create a duplicate PR.git diff <base>...HEAD --stat to see file changes.git log <base>..HEAD --format="%s%n%b" to read all commit messages and bodies — these contain the why for each change.Analyze all changes and generate a PR title and description:
feat:, fix:, chore:, docs:, refactor:, test:, ci:, build:, perf:, or style:. Append ! before the colon for breaking changes (e.g., feat!:). Choose the type that best describes the overall PR:
feat(auth): Add OAuth2 loginWrite the draft to a temporary file — title on line 1, a blank line, then the Markdown body. If --force was passed, skip approval entirely and proceed to step 10. Otherwise obtain approval using one of these paths:
First resolve the editor to a concrete command — git config --get core.editor, else $VISUAL, else $EDITOR — then pick the launch path by editor type:
GUI editor (code, subl, zed, …): launch it non-blocking. Strip any --wait or -w flag, tell the user where the draft is open, and ask them to reply when they have saved it. If launching fails, use the chat-review path.
Terminal editor (vim, nano, hx, …): do not launch it through a non-interactive tool call. Give the user the literal, fully resolved command with the file path quoted, then wait for confirmation.
vim "/path/to/temp/pr-draft.md"
Chat review: show the full title and body, then ask the user to approve, edit, or cancel.
On either path, do not read the file back until the user confirms they've saved.
Read pr-draft.md back (immediately with --force; otherwise after the user saves and confirms):
$(gh image "~/path/to/file.png")) by running the command and substituting the returned Markdown image line in place of the expression. Do this before writing the final body file.pr-body.md) for --body-file.Push with git push -u origin HEAD. Show the command output.
Run gh pr create --base <base> with the edited title and body:
gh pr create --base <base> --title "feat(auth): Add OAuth2 login support" --body-file /path/to/temp/pr-body.md
If gh pr create fails, show the full error output and stop. Do not retry.
Update the tracked task with the PR URL and mark it complete, if task tracking is available.
Return the PR URL to the user.
GUI editors can launch from a non-interactive command, but terminal editors need the user's TTY. In either case, do not read the file back or create the PR until the user confirms approval.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/babysitBabysit a GitHub PR until it's mergeable — watch checks in real time, diagnose CI failures, fix branch-related breakage, rerun flaky jobs, and address reviewer feedback, committing and pushing fixes automatically. Use when the user asks to "babysit", "watch", "shepherd", or "nurse" a PR, wants a PR "green", or wants CI failures and review comments handled without manual back-and-forth./ci-inspectInvestigates a failing GitHub Actions run — finds the failing job and step, reads the logs, isolates the first real error, checks whether the base branch or earlier attempts fail the same way, and reports the root cause with a suggested fix. Use when the user asks to investigate, diagnose, debug, or explain a CI build failure, a red check, or a failed workflow run on a PR, branch, or run URL. Reports only; never pushes, reruns, or posts to GitHub./npx claudepluginhub gjtorikian/agent-plugins --plugin github