From e7930a1431c783e3b5101316b4c8de558bea8de1 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 9 Apr 2026 00:09:03 +0200 Subject: [PATCH] Add /ship skill for commit, tag, and push workflow Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude/skills/ship/SKILL.md | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .claude/skills/ship/SKILL.md diff --git a/.claude/skills/ship/SKILL.md b/.claude/skills/ship/SKILL.md new file mode 100644 index 0000000..a08a219 --- /dev/null +++ b/.claude/skills/ship/SKILL.md @@ -0,0 +1,54 @@ +--- +name: ship +description: Commit, tag with the next version, and push to remote. +disable-model-invocation: true +allowed-tools: Bash(git *), Bash(pnpm *), Skill +--- + +## Instructions + +Commit current changes, create the next version tag, and push everything to remote. + +### Step 1 — Commit + +Use the `/commit` skill to stage and commit changes. Pass along any user arguments as the commit message. + +``` +/commit $ARGUMENTS +``` + +### Step 2 — Tag + +Get the latest tag and increment the patch number (e.g., `0.9.27` → `0.9.28`). Create the tag: + +```bash +git tag --sort=-v:refname | head -1 +``` + +```bash +git tag +``` + +### Step 3 — Push + +Push the commit and tag to remote: + +```bash +git push && git push --tags +``` + +### Step 4 — Verify + +Confirm the tag exists on the pushed commit: + +```bash +git log --oneline -1 --decorate +``` + +## User arguments + +```text +$ARGUMENTS +``` + +If the user provided arguments, treat them as the commit message or guidance for what to commit.