shipkit은(는) 무엇을 하나요?
shipkit provides one shared C++26 workflow for sibling wt/* git worktrees,
re-runnable PR shipping, post-learn PR landing, branch auditing, and Herdr tab cleanup.
Setup
Install via mise (github:ray-manaloto/shipkit), or wrap repo tasks (mise run pr:ship,
mise run pr:land, mise run worktree:new, mise run worktree:rm, mise run worktree:audit,
mise run herdr:tidy) around the shipkit binary.
Commands and Non-Interactive Use
All commands accept --json for structured output.
| Command | Purpose | Key Flags |
|---|---|---|
shipkit worktree new <slug> | Create sibling <repo>-<slug> on wt/<slug> with PLAN_ID | --base <ref>, --issue <n> |
shipkit worktree rm <slug> | Remove <repo>-<slug> and delete wt/<slug> | --force |
shipkit worktree audit | Classify branches/worktrees (--doctor always exits 0) | --repo <dir>, --base <ref>, --prune-merged, --doctor, --stale-days <d> |
shipkit pr ship | Local gates, push, open/view PR, event wait, bot sweep, READY line | --title <t>, --body-file <f>, --skip-local-gates, --wait-timeout <d>, --max-waits <n>, --required <csv>, --allow-skipped, --base <ref> |
shipkit pr land | Verify merge + post-task-learn, ff-pull base, land:post, keep .planning, remove worktree, herdr tidy | --pr <n>, --skip-learn-check, --base <ref> |
shipkit herdr tidy | List or close finished Herdr agent tabs whose worktree is gone | --apply, --cwd <dir>, --keep <csv> |
Exit Codes (shipkit pr ship and shipkit pr land)
| Exit Code | Meaning |
|---|---|
0 | Ready to merge (pr ship) or landed cleanly (pr land) |
1 | Required check failed (RED) or local gate failed |
2 | Wait timed out (re-run shipkit pr ship to resume) |
3 | Preflight refused (dirty tree, non-wt/* branch, auto-merge on, disabled workflow blocker, head moved, missing learn review) |
4 | GitHub API unavailable after retries |
Repo Detection and Private Repos (HTTP 403 Fallback)
shipkit detects the repository dynamically with gh repo view and derives the noreply
merge author email from gh api user (unless overridden via .shipkit.toml or --author-email).
When repos/<owner>/<repo>/rules/branches/<base> returns HTTP 403 (such as private repos on
GitHub Free) or has no ruleset checks, shipkit pr ship falls back in order:
--required <csv>,PR_SHIP_REQUIRED/SHIPKIT_REQUIRED_CHECKS, or.shipkit.toml[ship] required_checks(repo-declared).- Every check run on the PR head commit must complete
successwith at least one check run (head-check-runs;--allow-skippedorallow_skipped_checks = truealso acceptsskipped/neutral).
shipkit pr ship prints which source was used and refuses upfront if a disabled workflow
produces a required check.
Per-Repository Hooks (.shipkit.toml or Local Mise Tasks)
Repos can declare hooks in .shipkit.toml or define local mise tasks (pr:ship:gates / ship:gates,
pr:land:post / land:post, worktree:new:post / worktree:post):
[ship]
required_checks = ["Lint, Gates, and Tests"]
allow_skipped_checks = false
[hooks]
ship_gates = "mise run -q pr:ship:gates"
land_post = "mise run -q pr:land:post"
worktree_post = "mise run -q worktree:new:post"
ship:gatesreceivesSHIPKIT_REPO,SHIPKIT_BRANCH,SHIPKIT_BASE,SHIPKIT_HEAD, and (when provided)SHIPKIT_PR_TITLEandSHIPKIT_PR_BODY_FILE.land:postruns in the fast-forwarded main checkout withVIRTUAL_ENV,DOTFILES_DOCTOR_SCOPE,MISE_PROJECT_ROOT, andMISE_CONFIG_ROOTunset (warn-only).
Shipping Protocol
- Create a worktree with
shipkit worktree new <slug>. - Run repository review gates, then
shipkit pr ship --title "<title>" --body-file <file>. shipkit pr shipnever merges automatically. OnceREADY, re-runhkon the exact head and run the exact printedgh pr merge <n> -R <repo> --merge --match-head-commit <sha> --author-email <noreply>command.- Record the
post-task-learnreview forPLAN_ID. - Run
shipkit pr landfrom the merged worktree (--skip-learn-checkrequires explicit owner approval).