使い方
- インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
- 必要なツール、認証情報、対応環境を原文で確認します。
- 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/jackin-project/jackin-dev --skill jackin-checkout-pr開始前の確認
- 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
- スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。
jackin-checkout-pr
Switch the working repo onto a PR's branch via gh pr checkout. Accepts a number, URL, or branch name.
Process
- Resolve to a PR number. Number or URL → pass to
gh pr checkoutdirectly. Branch name →gh pr list --head <branch> --state all --json number -q '.[0].number'; no match → STOP, do not fall back to rawgit checkout.
- Guard the working tree.
git status --porcelain— if dirty, STOP and ask the operator to commit, stash, or discard first. Never auto-stash. Notegit branch --show-current(the way back).
- Check the PR is open.
gh pr view <N> --json state,headRefName.MERGEDorCLOSED→ warn (the branch may be stale) and confirm before proceeding.
- Switch.
gh pr checkout <N>. Verifygit branch --show-currentmatchesheadRefName.
- Report. Switched from
<old>to<headRefName>(PR #N). Way back:git switch <old>.




