Jackin Checkout PR
Use only when the user explicitly requests this skill. Switches the current jackin❯ repo onto a pull request's branch via gh pr checkout, guarding the working tree first.
Specification
- Skill ID
- jackin-project/jackin-dev/jackin-checkout-pr
- Publisher
- jackin-project
- Repository
- jackin-dev
- Installs
- 0
- Files
- 2
- License
- Apache-2.0
- Synced
- Sep 23, 2026
How to use it
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
jackin-project/jackin-dev/jackin-checkout-prInstalls these files- SKILL.md
- agents/openai.yaml
What this skill tells the agent
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>.
More from jackin-project
Use this skill in a project
Open any RiverX project, search the Skills panel for jackin-project/jackin-dev/jackin-checkout-pr, and install it in one click.
