Open pr
Reusable Claude Code skills for branch/worktree-based PR workflow, design docs, acceptance tests, and doc maintenance.
npx -y skills add kompiro/hane --skill open-prAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Open the pull request for the branch you are working on in the browser via `gh pr view --web`. Trigger when the user says: "PRを開いて", "PRをブラウザで", "PRを見せて", "open pr", "open the PR", "show me the PR", or similar phrases requesting to open the working pull request in the browser.
SKILL.md
1.7 KB, as published. Nobody here has run it
Open PR Skill
作業中のブランチに対応する PR を gh pr view --web でブラウザに開く。
毎回コマンドを手で打つ手間をなくすためのショートカット。
手順
- 引数が渡されていればそれを優先する。PR 番号またはブランチ名とみなして
gh pr view <引数> --webを実行し、終了する(例:/open-pr 42) - 引数がなければ対象ブランチを決める:
- カレントディレクトリ(またはこのセッションで作業中の worktree)の
ブランチが
main/master以外なら、それを対象にする - main 上にいる場合は
git worktree listで.claude/worktrees/配下の worktree を列挙し、各ブランチの PR をgh pr view <branch> --json url,state,titleで確認する- open な PR が 1 件だけならそれを対象にする
- 複数あれば AskUserQuestion でどれを開くか選んでもらう
- 0 件なら
gh pr list --author @meの結果を見せて、開ける PR が ないことを伝えて終了する
- カレントディレクトリ(またはこのセッションで作業中の worktree)の
ブランチが
gh pr view <branch> --webを実行し、開いた PR のタイトルと URL を ユーザーに伝える
注意
- ブラウザを起動できない環境(ヘッドレス等)で
--webが失敗したら、gh pr view <branch> --json url -q .urlで URL だけ表示する