/agent-skills:ship [<target>] [version] [changelog] [docs] [commit] [tag] [push] [watch] [release] [major|minor|patch|x.y.z]from agent-skills
Run one or more release actions: version, changelog, docs, commit, tag, push, watch, release. With no arguments, auto-detects needed actions from repo state and asks for confirmation.
Ships in agent-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.
Release automation skill. Load the repo's shipping config, parse the user's arguments, then run the requested actions in canonical order.
git rev-parse --show-toplevel.ship.yml at the repo root. Read it if found..ship.yml existsParse the YAML. The schema has two modes:
Single-target (no targets key):
actions: [version, changelog, docs, commit, tag, push, watch, release] # default: all 8
version-files: # required if version action is enabled
- Directory.Build.props
changelog-file: CHANGELOG.md # default: CHANGELOG.md
tag-format: "v{version}" # default: v{version}
Multi-target (has targets key):
targets:
<target-name>:
actions: [...]
version-files: [...]
changelog-file: <path>
tag-format: <format>
When targets is present, top-level keys are ignored. Each target has its own config.
Defaults for omitted keys:
| Key | Default |
|---|---|
actions | all 8 actions |
version-files | (none — must be specified if version is in actions) |
changelog-file | CHANGELOG.md |
tag-format | v{version} |
Multi-target selection:
git status --porcelain and match paths against each target's version-files and changelog-file..ship.yml does not exist — onboarding flowGuide the user through creating a config:
Auto-discover (no user interaction needed):
Directory.*.props, **/*.csproj, package.json, .claude-plugin/marketplace.json, Cargo.toml, pyproject.toml. For .csproj and .props files, grep for <Version> to confirm they declare a version.**/CHANGELOG.mdgit tag --list 'v*' --sort=-creatordategh release list --limit 1marketplace.json with multiple plugin entries, or multiple CHANGELOG.md files in separate directoriesPropose config — show the user what was discovered and a proposed .ship.yml:
version-filesactions to exclude tag, watch, releasetargets structureactions: [commit, push]Create and continue — after user confirms (with any edits), create .ship.yml and proceed with the ship run. The file gets committed in the same run.
If user declines — proceed with the detected settings ephemerally for this run only. Remind the user they can create .ship.yml later.
Extract from the skill arguments:
targets mapversion, changelog, docs, commit, tag, push, watch, release (case-insensitive)version is requested): one of
2.0.0 or 1.5.0major, minor, patchFilter actions against config: only actions listed in the config's actions list are allowed. If the user explicitly requests an action not in the config, warn them and ask whether to proceed.
If no action keywords are found, auto-detect actions based on repo state (only considering actions in the config's actions list):
git status --porcelain. If there are dirty/untracked files → add commit.git log @{upstream}..HEAD --oneline 2>/dev/null. If any commits are listed → add push. If there is no upstream (command fails) → also add push (need to set up tracking).tag is in config actions) — read the current version from the config's version-files and check if a matching tag exists using the config's tag-format (git tag --list '<formatted-tag>'). If no matching tag → add tag.tag and push are detected (either explicitly or via auto-detect), also add watch (pushing a tag typically triggers CI workflows).changelog and watch are in the action set (from explicit request or implicit rules), also add release (CI typically creates a GitHub release from the tag, and we should update it with changelog content).Apply the implicit rules below to the action set, whether its actions were requested explicitly or auto-detected, before the set is shown or executed. Implicitly added actions then appear pre-selected in the checklist.
Implicit changelog: If version is requested but changelog is not explicitly listed, add changelog automatically, since version bumps should be logged. Only add if changelog is in the config's actions list.
Implicit commit: If any action that modifies files is requested (version, changelog, docs) but commit is not explicitly listed, add commit automatically, since those file changes need to be committed. Only add if commit is in the config's actions list.
Present the detected actions as a multi-select checklist so the user can toggle individual actions on or off. Pre-select all detected actions.
If no actions are detected, tell the user everything is up to date and stop.
Reorder the requested actions into canonical order: version → changelog → docs → commit → tag → push → watch → release. Always execute in this order regardless of argument order.
If version is requested and no explicit version was given, resolve the target version before running any actions:
Discover the current version from the config's version-files. Read each file and extract the version using per-file-type parsing:
*.csproj / Directory.Build.props / Directory.Packages.props — <Version> or <PackageVersion> elementpackage.json — "version" field*.json (structured data) — parse the JSON, find the object whose name field matches the active target name, then read its "version" field (e.g., in a plugins array)*.md (markdown) — look for the target name in headings (e.g., # target-name v1.2.3) or in a markdown table row where the first column contains the target name, then extract the version stringCargo.toml — version in [package]pyproject.toml — version fieldMulti-entry files: Some files (e.g., marketplace.json, root README.md) contain version entries for multiple targets. When reading, match by the active target name to find the correct entry. When multiple files contain conflicting versions, ask the user which is authoritative.
If a semver keyword was given (major, minor, patch): compute the new version by incrementing that component of the current version.
If no specifier at all: auto-suggest by inspecting changes since the last version tag:
git tag --list '<tag-format-glob>' --sort=-creatordate (using the config's tag-format with {version} replaced by *) to find the latest version taggit diff <latest-tag>...HEAD --stat to see what changedPrint the resolved target version so the user can see it, then proceed.
Run only the requested actions, in order. Stop immediately on failure.
Update the version string in all files listed in the config's version-files. For files that contain entries for multiple targets (e.g., a JSON file with multiple versioned entries, or a markdown table with multiple rows), update only the entry matching the active target — do not modify entries for other targets. The skill already knows how to parse and edit each file type. After editing, briefly list which files were updated.
Delegate to the update-changelog skill. Pass the resolved version and the config's changelog-file path if it differs from the default CHANGELOG.md.
Delegate to the update-docs skill.
Delegate to the git-commit skill.
version-files.tag-format (replace {version} with the actual version).git tag -a <formatted-tag> -m "<formatted-tag>"git rev-parse --abbrev-ref @{upstream}git push -u origin HEADgit pushtag action was also requested in this run: git push origin <formatted-tag> (push only the specific tag, not all local tags)sleep 5 to allow GitHub to register the push event.gh run list --limit 5 --json databaseId,name,status,event,createdAt. If gh fails with an auth error, report the issue and skip the watch action.createdAt to the current time).sleep 5 and retry once. If still no runs, report "No CI workflows were triggered" and stop.gh run watch --exit-status <id> with a 10-minute timeout on the shell tool call, converted to the agent's units (600000 milliseconds in Claude Code, 600 seconds in pi), to stream progress until completion. The --exit-status flag returns a non-zero exit code on failure, making pass/fail detection reliable.Update the GitHub release that CI created from the pushed tag with changelog content.
changelog-file.update-changelog skill. Pass the bare resolved version (not the formatted tag name), the config's changelog-file path, and explicitly instruct it to only update the GitHub release — skip finding/inserting a changelog file entry (the changelog action already handled that earlier in this run). The skill should use gh release edit with the changelog entry content as release notes.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
20 skills in this plugin
/address-pr-commentsInteractively walk through and address PR review comments one at a time, asking the user what to do for each, committing after each code change, and optionally replying on GitHub. Accepts an optional PR number argument; defaults to the current branch's PR./add-todoCreate or append tasks to TODO.md in the current working directory. Not appropriate for reading, viewing, checking off, removing, or reorganizing TODO.md./chezmoi-diffHelp resolve differences between chezmoi-managed dotfiles and local files, including which direction changes should flow and what the chezmoi file naming conventions (dot_, executable_, .tmpl, symlink_, etc.) mean.npx claudepluginhub lucaspimentel/agent-skills --plugin agent-skills