Back to list
ahupp

submit-pr

by ahupp

0🍴 0📅 Jan 20, 2026

SKILL.md


name: submit-pr description: Create and submit a GitHub pull request from a fork to the upstream source repo. Use when asked to open or submit a PR for the current branch or recent changes.

Submit PR

Overview

Open a PR from the current fork branch to the upstream repository using gh, ensuring the branch is pushed and the base branch is correct.

Workflow

  1. Confirm the working tree is clean and commits exist. If there are uncommitted changes, run the commit workflow first.
  2. Identify the upstream repo and default branch:
    • gh repo view --json parent -q .parent.nameWithOwner (must be non-null for forks)
    • gh repo view <upstream> --json defaultBranchRef -q .defaultBranchRef.name
  3. Ensure an upstream remote exists; add if missing:
    • git remote add upstream https://github.com/<upstream>.git
  4. Push the current branch to the fork:
    • git push -u origin <branch>
  5. Create the PR targeting the upstream repo:
    • gh pr create --repo <upstream> --base <default-branch> --head <fork-owner>:<branch> --title "<subject>" --body "<body>"
  6. Confirm the PR URL with gh pr view --repo <upstream> --json url -q .url and report it.

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon