/tgc-skills:ship [PR title] [loop] [reviewer <login>]from tgc-skills
Runs the standard pre-merge pipeline: polish, explain, gate, commit, push, PR, and request review. Ends at a reviewed PR without merging.
Ships in tgc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runs the standard pre-merge pipeline on the current branch. It ends at a reviewed PR.
HARD RULE: this skill NEVER merges. Not on clean approval, not on green CI, not "to save a step". Merging is the human's move, always. The terminal state is a reviewed PR plus a report.
reviewer <login> — ask that GitHub user for a review instead of running the review
loop. Opt-in only; without it the review step is tgc-skills:review-loop.loop — with reviewer, run the review loop first and then request the reviewer.Preflight. Resolve the default branch with
gh repo view --json defaultBranchRef --jq .defaultBranchRef.name, confirm the
current branch is not it, verify git status is coherent, and ensure the intended
work is in the diff.
Polish. Run tgc-skills:polish on the diff (correctness + simplification lenses;
applies the safe findings and the bug fixes a failing test proves). Skip only if the user says
"no polish".
Explain. Run tgc-skills:explain-pr and show the user its summary. If it marks
any change Why: ???, stop and ask the user what to do before going on.
Gate. Run the repo's documented local or pre-push gate. Use hooks, project
instructions, and package scripts to discover reproducible commands. Do not claim
that copying GitHub Actions run: lines reproduces actions, services, matrices, or
external checks; when there is no local gate, say CI remains authoritative.
Commit. Follow the repo's commit convention, falling back to a conventional message. Stage only files belonging to the change; inspect the complete index before committing. Do not exclude intentional plans or documentation merely because of their names.
Update the base if needed. Fetch the PR base/default branch. If the committed feature branch is behind, merge the fetched base, resolve conflicts explicitly, and rerun the local gate. Do not rebase a published branch or force-push.
Push. git push origin "HEAD:refs/heads/<branch>", adding -u when the branch has
no upstream, so the destination never depends on tracking config. Never force-push.
PR. If none exists, gh pr create --body-file <file>. If the repo has a PR
template (pull_request_template.md in .github/, docs/, or the root), fill in its
sections. Otherwise use the template below. Either way write plain language with
short bullets and no jargon, keep it proportionate to the change, never present
unchecked work as checked, and put any DB migration at the top of the body.
## Why
The problem, in one or two sentences.
## What I did
The approach and why it was picked. Optionally one small diff sketch, call tree, or file tree.
## Other options
Only the ones that really mattered, and why they were not picked. Drop the section if none.
## What I checked
Each real check that ran, as before → after (a screenshot for visual changes).
## What could break
A short plain list of what this change could affect, inside and outside this repo.
## Easy to undo?
Yes or no, and why in one line. A DB migration or deleted data is a no.
## Not checked / need help
What is still unknown, and what the reviewer should look at.
Review.
loop with reviewer: invoke tgc-skills:review-loop on the PR and
follow its stall watch until it exits.reviewer <login>: require the login to match ^[A-Za-z0-9-]+(\[bot\])?$. Confirm
the PR's headRefOid equals local HEAD, record that SHA and the current UTC time
(date -u +%FT%TZ) as SINCE, then request the review once with gh pr edit <n> --add-reviewer '<login>'. Wait with
one foreground Bash call (timeout: 600000), at most twice, never sleep across
turns:
export LOGIN='<login>' SHA='<sha>' SINCE='<since>'
for i in $(seq 19); do r=$(gh api --paginate "repos/{owner}/{repo}/pulls/<n>/reviews" --jq '.[] | select(.user.login == env.LOGIN and .commit_id == env.SHA and .submitted_at > env.SINCE) | "\(.id) \(.state)"' | tail -n 1); [ -n "$r" ] && echo "$r" && break; sleep 30; done
After each wait, read the PR's issue comments from that login posted since the
request (gh api --paginate "repos/{owner}/{repo}/issues/<n>/comments", filtered on
user.login and created_at). A comment announcing a deferral (usage or rate limit,
a queue, a retry time) is a "no verdict" answer: quote it and stop. No verdict after
the second wait → report "no verdict from yet at " and stop.CHANGES_REQUESTED → follow ${CLAUDE_PLUGIN_ROOT}/skills/review-fix/SKILL.md on the
PR (explicit-only, so read it instead of invoking it, and replace each CLAUDE_PLUGIN_ROOT placeholder in it, and in every plugin file it points to, with ${CLAUDE_PLUGIN_ROOT}; it applies
its nit rule and pushes), then record the new HEAD and a new SINCE, re-request once, and wait as above. At most
2 fix rounds; then report blocked with the open findings.COMMENTED → first read that review's body
(gh api "repos/{owner}/{repo}/pulls/<n>/reviews/<id>" --jq .body) and its inline
comments (gh api --paginate "repos/{owner}/{repo}/pulls/<n>/reviews/<id>/comments").
If any of them reports a defect, not a question or praise, handle it like
CHANGES_REQUESTED, passing those comments to review-fix as the findings; it counts as a fix round. If none does, finish and report "commented, not
approved", never "approved".APPROVED → done. Never push after an approval lands: a later push can dismiss it.Report. PR URL, review outcome at the head SHA (loop exit state and/or the
reviewer's verdict), findings fixed vs drafted replies waiting for the user to post,
gate evidence (what passed), and the current state of the hosted checks
(gh pr checks). Never post the drafted replies yourself. Only reach the
ready-to-merge line once the review outcome is clean (loop exit clean, or the
reviewer's APPROVED at the head SHA) and those checks are green, or the user has
explicitly accepted the remaining review state or checks; otherwise report the
unresolved outcome or pending/failing checks and stop short of the handoff. End with:
"Ready for you to merge. Run /tgc-skills:merged after merging for the post-merge
checks and cleanup."
gh pr merge in any form → violation of the hard rule, full stop.merged will look for it).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub eternalllight/tgc-skills --plugin tgc-skills14 skills in this plugin
/checkpointUse when the user wants current work saved to the branch mid-flow without ending the task — "checkpoint", "commit and push", "save and push", "push what we have", optionally with a review ask ("checkpoint and review")./cmux-orchestrateUse when orchestrating cmux terminal panes, splits, tabs, worker sessions, or agents in other cmux panes, including reading screens, sending commands, answering prompts, jumping to unread activity, or setting AFK check-ins. Do not use for tmux, IDE/browser tabs, deployment replicas, or plain command execution./explain-prUse before shipping, when the user wants to understand their own branch — "explain what we did", "walk me through this branch", "what am I about to ship", "why did we change that", or any ask to account for the current diff before running tgc-skills:ship. Explains the change back to the user and flags anything it cannot justify. Read-only; not a PR description writer, not a code review./herdr-orchestrateUse when orchestrating herdr terminal panes, splits, tabs, workspaces, worktrees, worker sessions, or agents in other herdr panes, including reading screens, sending commands, answering prompts, waiting on agent status, and setting AFK check-ins. Do not use for tmux, IDE/browser tabs, deployment replicas, or plain command execution. For cmux use tgc-skills:cmux-orchestrate; for Orca use Orca's own orca-cli skill./mergedUse right after the user merged a PR — "merged", "I merged it", "merged, clean up", "shipped, clean up the branch" — to run the post-merge routine for the repo the PR belongs to./orchestrateUse when executing a locked implementation plan (PLAN.md or equivalent) that is too big for one context window — "execute the plan", "implement PLAN.md", "orchestrate this implementation", "split the plan into phases and build it". Not for edits you can finish inline.Other plugins' skills for the same job