/shipshitdev:release [gates|notes|cut [patch|minor|major|vX.Y.Z]]from shipshitdev
Cuts a release from a green trunk: proves checks on the trunk SHA, derives semver and notes, publishes via release-please, workflow, or tag. Backs /release.
Ships in shipshitdev. 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.
Read when SKILL.md points to them.
One path from a green trunk to a published release. Trunk-based: releases are cut from the default branch; staging and production are environments driven by CI and tags, never promotion branches. Unmerged work ships first through the normal PR and merge flow; this skill only releases what is already on the trunk.
Requires git, GitHub CLI gh, and jq with access to the target repository.
Act only within the user's request and existing approval; a report-only request stays report-only.
status (default), gates, notes, or cut [patch|minor|major|vX.Y.Z]; optional notes window (since <tag>, 7d, from <date> to <date>).cut only): an annotated tag and GitHub release, a merged release-please PR, or a dispatched release workflow, whichever the repo uses. Edit CHANGELOG.md only when asked and the repo has no release automation.cut action; before releasing a SHA whose required checks are not all passing; before marking a draft release PR ready or rerunning a workflow.Inputs:
status (default), gates, cut [patch|minor|major|vX.Y.Z], or notessince <tag>, 7d, from <date> to <date>)Outputs:
Creates/Modifies:
cut only: an annotated tag and GitHub release, a merged release-please PR,
or a dispatched release workflow — whichever the repo usesCHANGELOG.md only when the user asks and the repo has no release automationExternal Side Effects:
ghcut pushes a tag, merges a release PR, or dispatches a workflowConfirmation Required:
cut action — show the plan and wait for an explicit yesDelegates To:
/<router> <action>: <router>/references/<action>.md; /<name>: <name>/SKILL.md);
skills here are user-invoked only, so the Skill tool cannot load them./git ci when the user asks to fix failing required checksreferences/notes.md for customer-facing notes (app store text,
update emails, public changelog pages, house-styled changelogs)deploy when the repo has no CI-driven deploy for the release/git cleanup after the release lands| Mode | Phases | Mutates |
|---|---|---|
| any, outside a checkout | 0 (hand off to a project thread) | no |
status | 1, 2 (no waiting) | no |
gates | 1, 2 (wait for pending checks) | no |
notes | 1-4 | no |
cut | 1-7 | yes, after confirmation |
An unrecognized argument prints this table; never guess a mode.
A release runs inside the target repository. If git rev-parse --show-toplevel succeeds and gh repo view resolves, continue to Phase 1 here.
Otherwise, resolve the project from the arguments, or ask the user with the host's question tool (offer recently used project folders). Then branch on the host:
CLAUDE_CODE_ENTRYPOINT is claude-desktop and a session-start tool such as start_session is available): start a new session in the project's checkout, on the machine that holds it (an SSH connection when the checkout is remote). Its brief is /release with the same arguments; with no mode, it prepares the release: phases 1-5, ending at the plan and waiting for the user's yes. Here, link the new session and stop./release from the checkout (print the cd command), or, when they agree, run the phases from here with git -C <path> and gh -R <owner>/<repo>.Never run a phase against a folder that is not the target repository.
gh auth status -h github.com
TRUNK=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
git fetch origin --tags --prune
SHA=$(git rev-parse "origin/$TRUNK")
LAST_TAG=$(git describe --tags --abbrev=0 --match 'v*' "$SHA" 2>/dev/null || true)
If TRUNK is empty, stop and ask for it. Detect the release mode from the gated commit, never the local checkout (git ls-tree -r --name-only "$SHA", git show "$SHA:<path>"); first match wins:
release-please-config.json, .release-please-manifest.json, or a workflow using googleapis/release-please-action.workflow_dispatch workflow under .github/workflows/ creates the tag/release (e.g. release.yml, promote.yml).Report: trunk, SHA, LAST_TAG, commits since it, release mode, and any open release PR (gh pr list --label 'autorelease: pending' --state open).
The gate is CI evidence for the tree at SHA: never a local run, never a run on a different tree. Required checks often run only on pull requests, so evidence comes from runs on SHA and, when the trees are identical, from the PR that produced SHA.
# Required contexts with their app ids. Rulesets, then classic protection.
gh api "repos/{owner}/{repo}/rules/branches/$TRUNK" --jq '.[]
| select(.type=="required_status_checks") | .parameters.required_status_checks[]
| [.context, (.integration_id // "")] | @tsv'
gh api "repos/{owner}/{repo}/branches/$TRUNK/protection/required_status_checks" \
--jq 'if (.checks | length) > 0 then .checks[] | [.context, (.app_id // "")]
else .contexts[] | [., ""] end | @tsv'
# Results on SHA, with the app that produced each check run
gh api --paginate "repos/{owner}/{repo}/commits/$SHA/check-runs?per_page=100" \
--jq '.check_runs[] | [.name, .app.id, .status, (.conclusion // "")] | @tsv'
gh api "repos/{owner}/{repo}/commits/$SHA/status" --jq '.statuses[] | [.context, .state] | @tsv'
# The PR merged as SHA; its checks count only if it tested the same tree
PR=$(gh api "repos/{owner}/{repo}/commits/$SHA/pulls" \
--jq ".[] | select(.merge_commit_sha==\"$SHA\") | .number")
HEAD=$(gh pr view "$PR" --json headRefOid --jq .headRefOid)
git fetch origin "$HEAD"
[ "$(git rev-parse "$SHA^{tree}")" = "$(git rev-parse "$HEAD^{tree}")" ] && echo same-tree
# If same tree: read the check-runs and status queries above again for "$HEAD"
A protection lookup returning 404 Branch not protected means no classic requirements. Any other lookup error (403, auth, network) blocks the verdict: unknown requirements are never "none". When a requirement names an app id, only a check run from that app satisfies it.
Verdict per required context, labelled on SHA or via PR #n (same tree):
success, and nothing else that ran on SHA failed.neutral or skipped; report it, it needs an override.SHA (trunk moved before a squash merge), or SHA was a direct push.The overall verdict is green only when every required context passes. With no required checks configured, say so: the verdict is green only when CI evidence exists for the tree (runs on SHA or on a same-tree PR head) and every completed run there is success. No CI evidence at all is unproven. For unproven contexts, offer to run the CI workflow on SHA through its workflow_dispatch (confirm first), or, in dispatch mode, name the release workflow's own verification of SHA as the gate and get explicit approval.
status reports the verdict and stops.gates watches pending runs (gh run list --commit "$SHA", then gh run watch <id> --exit-status) until every check concludes.gh run view <id> --log-failed. Rerun nothing unless asked.Read git log "${LAST_TAG:+$LAST_TAG..}$SHA" --no-merges --pretty='%h%x09%s'.
patch|minor|major|vX.Y.Z wins.! or BREAKING CHANGE means major (minor while 0.x), any feat means minor, else patch.v0.1.0 unless the repo uses v1.0.0.LAST_TAG and must not already exist as a tag.Release-As: X.Y.Z commit footer, never a local tag.Plain English, grouped in this order, empty groups omitted: Breaking changes (with migration note), Features, Fixes, Performance, Internal (brief). Lead with the outcome for users, link PR numbers, keep engineering detail light. For customer-facing output (app store notes, update emails, a public changelog page, a requested house style) read references/notes.md and follow it. notes mode stops here.
Print one plan: version (LAST_TAG to next, with reason), trunk and SHA, check verdict, commit range, notes preview, and the exact action for the mode. Wait for an explicit yes. Non-passing checks need a separate explicit override, recorded in the final status.
Immediately before mutating, confirm git ls-remote origin "refs/heads/$TRUNK" still equals SHA. If the trunk moved, re-run Phase 2 and get a new approval.
release-please:
TRUNK: gh api "repos/{owner}/{repo}/pulls/<n>" --jq '[.base.repo.full_name, .base.ref] | @tsv' must print <gated owner/repo> and $TRUNK. Reject anything else before merging.git merge-base --is-ancestor "$SHA" <pr-head-sha> and a green Phase 2 verdict for the release PR's head commit (same queries, same success-only rule).gh pr merge <n> --squash --match-head-commit <pr-head-sha> (use the repo's merge method). Its workflow creates the tag and release.dispatch:
workflow_dispatch.inputs at SHA and map the version to the declared input name and format (e.g. tag=vX.Y.Z vs version=X.Y.Z); pass an expected-SHA input when one is declared.gh workflow run <file> --ref "$TRUNK" -f <input>=<value>.event == workflow_dispatch, createdAt after that time and headSha == SHA (gh run list --workflow <file> --json databaseId,url,headSha,createdAt,event,displayTitle). Attribute the run only when exactly one candidate remains. If the workflow declares a correlation input, pass a unique value and match it in the run's display title.SHA), none, or a different headSha: report attribution as unproven and stop. Never report another run's result or version as this release, and never claim success.tag:
git tag -a "$VERSION" -m "$VERSION" "$SHA"
git push origin "$VERSION"
gh release create "$VERSION" --verify-tag --title "$VERSION" --notes-file <notes-file>
Never force-push, move or overwrite a tag.
A release is not deployed until evidence says so. Use the commit the published tag points to: release-please and some release workflows tag a new commit, not the gated SHA.
git fetch origin --tags
RELEASED_SHA=$(git rev-parse "$VERSION^{commit}")
gh run list --commit "$RELEASED_SHA" --json workflowName,event,status,conclusion,url
gh api "repos/{owner}/{repo}/deployments?sha=$RELEASED_SHA" --jq '.[] | [.id, .environment] | @tsv'
gh api "repos/{owner}/{repo}/deployments/<id>/statuses" --jq '.[0].state'
Watch the release or deploy runs to completion (gh run watch <id> --exit-status). If nothing deploys automatically, say so and recommend a deploy skill or step.
Report: repository, trunk, gated SHA and RELEASED_SHA, check verdict (or override), version and bump reason, release URL or run URL, deploy result per environment, and next step.
What SKILL.md sets; muted values are Claude Code's defaults
/release, tag a release, is master green, release notes, app store notes
Three short reads, in order
git, github, release, tag, semver, changelog, patch-notes, trunk-based
npx claudepluginhub shipshitdev/skills --plugin shipshitdev16 skills in this plugin
/boardProject board workflows behind one command: audit and configure a GitHub or Jira board's fields, columns, and scope, or reconcile the board with current work and delivery evidence./browseOpens the project's own Brave session over the DevTools protocol and carries out a requested task in it — navigate, click, type, read, screenshot, and watch the console./checkReview behind one command: review a PR or diff for correctness, security, and spec fidelity; get a verified second opinion through the Grok CLI; convene a scored panel of every installed provider CLI; or run the weekly engineering review. Bare /check reviews the current branch.Other plugins' skills for the same job