jackin-project/jackin-dev

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.

First seen Jul 4, 2026

Installation

$ npx skills add jackin-project/jackin-dev --skill jackin-checkout-pr

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from jackin-project/jackin-dev · top by installs.

npx skills add jackin-project/jackin-dev

Browse all from jackin-project/jackin-dev

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 3
License LICENSES
Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseApache-2.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,259 B
  • docs SUMMARY.md 198 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 381 installs

SKILL.md

jackin-checkout-pr

Switch the working repo onto a PR's branch via gh pr checkout. Accepts a number, URL, or branch name.

Process

  1. Resolve to a PR number. Number or URL → pass to gh pr checkout directly. Branch name → gh pr list --head <branch> --state all --json number -q '.[0].number'; no match → STOP, do not fall back to raw git checkout.
  1. Guard the working tree. git status --porcelain — if dirty, STOP and ask the operator to commit, stash, or discard first. Never auto-stash. Note git branch --show-current (the way back).
  1. Check the PR is open. gh pr view <N> --json state,headRefName. MERGED or CLOSED → warn (the branch may be stale) and confirm before proceeding.
  1. Switch. gh pr checkout <N>. Verify git branch --show-current matches headRefName.
  1. Report. Switched from <old> to <headRefName> (PR #N). Way back: git switch <old>.