一键导入
ship
Prepare a branch for shipping by checking branch state, local tests, review readiness, and optionally carrying out explicit shipping actions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prepare a branch for shipping by checking branch state, local tests, review readiness, and optionally carrying out explicit shipping actions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Check local gstack setup health, detect stale build/setup state, and write a bounded upgrade-readiness report.
Interrogate an idea like a bounded YC-style office hours session and write a durable local memo.
Review recent local repository history and write a bounded engineering retrospective.
Prepare a local authenticated browser session for OpenCode QA and design workflows using gstack browse cookie import flows.
Audit a local rendered page with browser evidence, write a bounded design report, and optionally apply local UI fixes when explicitly requested.
Update a small, factual set of project docs from local changes and write a durable summary without committing or using GitHub APIs.
| name | ship |
| description | Prepare a branch for shipping by checking branch state, local tests, review readiness, and optionally carrying out explicit shipping actions. |
| compatibility | opencode |
| metadata | {"host":"opencode","migration_phase":"7","mode":"report-first"} |
This is the first OpenCode-native /ship slice for gstack. It prepares a local branch for shipping and writes a bounded readiness report.
In this v1 slice:
By default this workflow is local-only and report-first. If the user explicitly asks for a commit, push, or PR in the same request and the readiness checks pass, you must carry out the requested action and record it in the report.
Prefer local-only refs in this order:
if git show-ref --verify --quiet refs/remotes/origin/main; then echo origin/main;
elif git show-ref --verify --quiet refs/remotes/origin/master; then echo origin/master;
elif git show-ref --verify --quiet refs/heads/main; then echo main;
elif git show-ref --verify --quiet refs/heads/master; then echo master;
else echo NO_BASE; fi
Use the prompt first.
If the prompt includes an explicit test command, use it.
Otherwise only auto-detect an obvious root package test script. If there is no clear repo-local test command, classify the result as NEEDS_TEST_COMMAND rather than guessing.
Look for a local review artifact path provided by the user.
If none is provided, search .gstack/review-reports/ for the newest report.
Classify the local report as:
REVIEW_READYREVIEW_BLOCKEDREVIEW_MISSINGWrite the report under .gstack/ship-reports/.
Default path:
.gstack/ship-reports/ship-{slug}.mdHonor an explicit output path if the request provides one.
The report must include:
Release Prep StatusInputs ReviewedBranch StateVerificationReview ReadinessShip DecisionDeferred For Later Slice.gstack/ship-reports/ immediatelygit status --shortgit diff <base> --statgit log <base>..HEAD --onelineIf there is no usable base branch, or if there is no diff against the base branch, still write a report and stop.
If there is no clear test command, report NEEDS_TEST_COMMAND.
Use one of these statuses in the report:
READY_LOCALBLOCKED_TESTSBLOCKED_REVIEWNEEDS_TEST_COMMANDNO_BASE_BRANCHNO_DIFFWrite the report file even for blocked outcomes. Never exit early without a written report.
Only enter this path when the user explicitly asks for the action.