← スキル一覧に戻る

gh-open-pr
by daichan132
Chrome extension for Youtube Live
⭐ 28🍴 0📅 2026年1月22日
SKILL.md
name: gh-open-pr description: Create a GitHub pull request with gh. Use when asked to open/create a PR (pull request), "PR作って", "draft PR", or "gh pr create". metadata: short-description: Open a draft PR using GitHub CLI
Goal
- Create a draft PR for the current branch with a clear title/body and test notes.
Inputs (ask only if missing)
- Target base branch (if not default).
- Issue reference (if any).
- Whether to make it draft (default: draft).
Preconditions
ghis installed and authenticated.- Must be on a feature branch (not default).
Non-goals / Guardrails
- Do not push or create PRs without user approval when approvals are required.
- Do not include secrets in PR body.
Steps
- Validate auth + repo
gh auth statusgh repo view- If not authenticated: ask the user to run
gh auth loginand stop.
- Determine base branch
- If user specifies, use it.
- Otherwise detect default:
gh repo view --json defaultBranchRef -q .defaultBranchRef.name
- Ensure branch is pushed
- If upstream missing:
git push -u origin HEAD.
- Compose PR title/body
- Title: use latest commit subject unless unclear.
- Body must include:
- Summary (1–3 bullets)
- Key changes (bullets)
- How to test (exact commands)
- Risks/notes (optional)
- Issue links (e.g. "Fixes #123") if provided
- If a PR template exists, prefer it and fill required sections:
- Check for
.github/PULL_REQUEST_TEMPLATE*or.github/pull_request_template*.
- Check for
- Create PR (draft by default)
gh pr create --draft --base <base> --title "<title>" --body "<body>"- If using a template: add
--template <template>.
Output format
- PR URL (from gh output).
- Base branch and draft/non-draft status.
- Summary of what went into the PR body.
Edge cases
- If the branch is ahead but not pushed, push first.
- If there are uncommitted changes, warn and confirm before PR creation.
Trigger examples
- "PR作って"
- "draft PR を作成して"
- "gh pr create して"
スコア
総合スコア
65/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です
