skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
jackin-project/jackin-dev468 installs

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.

How do I install this agent skill?

npx skills add https://github.com/jackin-project/jackin-dev --skill jackin-checkout-pr
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill allows the agent to switch a repository to a pull request branch using the GitHub CLI. It includes safety checks to ensure the working directory is clean and the PR is open before switching.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

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.

  2. 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).

  3. 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.

  4. Switch. gh pr checkout <N>. Verify git branch --show-current matches headRefName.

  5. Report. Switched from <old> to <headRefName> (PR #N). Way back: git switch <old>.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/jackin-project/jackin-dev/jackin-checkout-pr">View jackin-checkout-pr on skillZs</a>