/tstack:ship-itfrom tstack
Deliver committed work on GitHub or GitLab: push, open or update a PR or MR, and merge. This skill MUST be used when pushing after a commit, opening or updating a PR or MR, or merging, and MUST NOT be skipped because the change is small. It SHOULD be used when the user asks to prepare a completed feature for review. It MUST NOT merge before every check on the exact head commit has passed and automated review feedback is resolved. Triggers on: push、推上去、推到 dev、開 PR、開 MR、準備 PR、整理分支交付、合併、merge、全綠後合併、ship-it
Ships in tstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Delivery has two paths. Pick by what is about to happen, and run every step of the chosen path.
| About to | Path | Steps |
|---|---|---|
| Push commits to a branch, with no PR or MR involved | Light | 1 to 4 |
| Open or update a PR or MR, or merge one | Full | 1 to 9 |
Read the project's coordination and delivery instructions and its saved project
memory. Confirm the requested outcome, current branch, target remote and base
branch from repository settings and user intent; do not guess main when the
base is unknown.
Commit, push, opening a PR or MR, and merging are separate authorizations. Take each from the user's request or the project's recorded rule. Permission for one does not grant the next.
Identify the hosting platform from the target remote's URL and use that
platform's CLI for every later step: gh for GitHub, glab for GitLab. Read
that platform's command file once: references/github.md
or references/gitlab.md. Later steps name an action, and
the command for it is in that file. On another platform, use its authorized CLI
or API and apply the same gates.
Read what this delivery is supposed to contain: the ticket being delivered and the specification scope item it names, or the project's own delivery document when it has one. Read the expected output and acceptance requirements, not just the first few lines. If the diff conflicts with the agreed scope, resolve that decision with the user before shipping.
In a project that keeps tickets, the change that delivers a ticket also closes it as eng-architect sets: the ticket file moves to done/, and a mirrored issue is closed through the pull request description.
If the project still keeps its engineering documents in an older layout, such as delivery-status.md, delivery-plan.md or docs/tickets/, hand it to migrate-engineering-docs, which checks the saved decision and asks when it is unresolved. Until the user decides, deliver with the existing files.
Small authorized changes may go on the current branch when the project allows it. Larger or riskier work on the base branch gets a suitable branch first, without resetting existing work. When another session or agent is changing the same repository, work in a separate worktree.
git status --short
Sort every modified and untracked file into this delivery or not, then stage and commit under the core's Staging and Commits.
git add -- <path> <path>
git diff --cached --stat
After setting _SHIP_REMOTE, _SHIP_BASE and _SHIP_BRANCH to verified values:
git fetch "$_SHIP_REMOTE" "$_SHIP_BASE"
git diff "$_SHIP_REMOTE/$_SHIP_BASE...HEAD" --stat
git log "$_SHIP_REMOTE/$_SHIP_BASE..HEAD" --oneline
Read the latest pipeline of the branch being pushed to. When it has failed, fix that failure first, or confirm this push is the fix. Do not stack unrelated commits on a red branch.
Scan the outgoing commits and diff for secrets, including keys, tokens, credentials and sensitive connection strings. If found, stop the push and report them as the core's Secrets rule requires.
git push "$_SHIP_REMOTE" "$_SHIP_BRANCH"
_SHIP_SHA=$(git rev-parse HEAD)
Look up the pipeline for _SHIP_SHA and report it as passed, failed, running or
absent, with its URL.
A failed pipeline caused by this push is handled now, within scope. The light path ends here; report with the Delivery report below.
Check whether the branch needs the updated base. Follow the project's merge or rebase convention; do not automatically merge the base into every branch. Avoid rewriting shared history without authorization.
Resolve conflicts from the intended behavior and both sides' changes, then validate the resolution. Ask only when a material behavior or scope decision cannot be determined from available evidence.
Run the steps the project's CI runs that decide a merge, in the same way CI runs them: a clean install from the lockfile, the build, and the integration tests, along with tests appropriate to the changes and risks. Run the project's full suite according to its rules. Follow test-and-fix for what counts as verified. Reuse prior results only when they cover the current code and relevant environment; rerun affected checks after subsequent edits or conflict resolution.
Check coverage of important behavior, boundary conditions and error handling. Add meaningful tests where those behaviors lack evidence, rather than requiring a test for every new code path or testing implementation details alone.
Fix failures introduced by this branch. Establish evidence for pre-existing failures or environment blockers, apply project delivery rules, and report any remaining gate instead of presenting partial results as a pass.
Run diff-review on the outgoing diff unless an existing review covers that same diff. Review later changes and their effects. Resolve confirmed findings according to severity and project rules, and distinguish unresolved questions from confirmed defects.
Push as in Step 4. Check for an existing PR or MR for the branch before creating one. Follow the repository's template. If none exists, use the PR body template, filling it with actual changes and verification results. Scale detail to the change and remove irrelevant sections.
Do not append co-author credits, Co-authored-by trailers or agent signatures
to PR or MR titles or descriptions.
Save the completed body to a temporary file and use its path as _SHIP_BODY.
Set _SHIP_TITLE from the actual change.
Create the PR or MR, or update the existing one, with the platform's command.
If the CLI is unavailable or unauthenticated, use an available authorized alternative or provide the completed title and body for manual submission. Report which operations actually succeeded.
Merge only when the user or the project's recorded rule authorizes it. A request such as "merge once everything is green" is that authorization, and it is not finished until the PR or MR is confirmed merged.
Green is judged for the exact head commit of the PR or MR, and all of these hold:
_SHIP_SHA to that value for the commands below.| State for the head SHA | Do |
|---|---|
| Green | Merge now, pinned to the SHA |
| Checks still running, or an automated review still expected | Wait as described below. Say that it has not merged yet |
| A check failed or was cancelled, a review point is unresolved, or a pipeline exists in which nothing ran | Do not merge. Handle it within scope or report it |
| No pipeline exists yet | Do not merge and do not set auto-merge: with no pipeline the platform merges at once. Wait for the pipeline to appear, then start again from item 1 |
Always pin the SHA.
Let the platform merge only when its condition is the same as green. The platform's command file says what that platform waits for and when it may be used.
Otherwise wait yourself: watch the checks in the background with the Step 9 watch command, and when it returns start again from item 1. The watch only signals that something finished; decide by the state read for the pinned SHA at that moment.
After letting the platform merge, watch the same way and then confirm the PR or MR state. Merged ends the task. A failed check means nothing was merged: handle it within scope and repeat this step.
Until the merge is confirmed, name the pending merge in the core's Turn-End Report.
Read the checks for the resulting PR, MR or merge commit and report passed, failed, pending or unavailable. When waiting for CI is part of the requested delivery, watch it to a result and handle failures within scope.
When deployment verification is requested, identify the deployment run or job for the intended revision and environment and watch that one explicitly.
Inspect failed checks or jobs and resolve failures within scope; when the cause is not evident, invoke investigate. Verify the deployment's required outcome before reporting success; a passing unrelated workflow is not deployment evidence. If monitoring is blocked or interrupted, report the last observed state, the PR, MR or run URL, and what remains unverified.
Run project-memory at this wrap-up checkpoint, following its recording criteria. Save qualifying project-specific lessons and report saved entries. If nothing qualifies, no announcement is needed.
Report the path taken, the branch and scope, files left out of the commit, actual test and review results, the PR or MR URL, the pipeline state for the delivered commit, and unresolved requirements. Distinguish committed, pushed, PR or MR created or updated, merged, and deployed based on evidence. Creating a PR or MR does not establish merge or deployment.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timlai666/tstack --plugin tstack13 skills in this plugin
/acceptance-reviewCheck finished work against what was originally asked: every requirement is matched to a result that was actually exercised, and the original problem is shown to be solved. This skill MUST be used before reporting substantial work as done or handing it back, and when the user asks whether the result meets the request. Work this conversation produced MUST be checked by an independent reviewer who is not given the implementer's summary. It MUST NOT be used outside software engineering work, and MUST NOT replace diff-review, security-scan or test-and-fix. Triggers on: 驗收、有沒有做到、有沒有符合需求、有沒有解決問題、做完了嗎、acceptance review/agent-delegationRules and script for handing work to a subagent or another CLI (OpenCode, Antigravity, Copilot, Codex, Claude). This skill MUST be loaded before dispatching any subagent or CLI, even for a small task, and before changing an existing API's name, signature, usage or behavior. New delegation MUST go through scripts/dispatch.py and its task-local levels, and MUST NOT skip tools based on earlier turns. It MUST NOT be applied to work that is not software engineering. A main agent MUST NOT dispatch through its own CLI. A dispatched worker MUST NOT apply this skill or delegate further. Triggers on: subagent、派工、分工、antigravity、agy、opencode、copilot、codex、誰來寫、用哪個模型、介面變更Other plugins' skills for the same job