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.From its SKILL.md
npx -y skills add jackin-project/jackin-dev --skill jackin-checkout-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
- 3 stars3 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 file declares
Copied from the file, not written here
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.2 KB, as published. Nobody here has run it
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>.