ship-together
БесплатноБез исполняемых скриптовНе проверенShip the current changes as one unit. Use when the user asks to "ship together", "ship as one unit", or "keep the changes in one PR".
от tobihagemann★ 428 звёзд на GitHubОб этом скилле
Ship Together
Commit, push, and optionally create or update a PR for the current staged changes.
Task Tracking
At the start, use TaskCreate to create a task for each phase:
- Determine intent
- Branch (if needed)
- Check for unstaged changes
- Run
/commit-rulesskill - Commit
- Update PR (if requested)
- Push (if requested)
- Create PR (if requested)
- Link changelog entries to the PR (if needed)
Step 1: Determine Intent
Detect the repository state:
- Default branch:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' - Current branch name, and whether it tracks an upstream
- Whether an open PR exists for the current branch (
gh pr view --json state); a closed or merged one counts as none
Sample the prevailing workflow from recent default-branch history (git log --first-parent origin/<default-branch> -n 30 --pretty=%s): judge whether changes mostly land through pull requests (merge-PR commits or (#N)-suffixed squash commits) or are committed directly to the default branch.
Output a one-line summary of the detected state as text. Then use AskUserQuestion to choose how to proceed, offering these options:
- Commit, push, and create/update the PR — say "create a PR" when no open PR exists for the current branch and "update the PR" when one does; on the default branch, Step 2 creates a feature branch first
- Commit and push — commit, then push to the current branch's remote
- Commit only — commit the staged changes, do not push
Inside a linked worktree (where git rev-parse --git-dir differs from --git-common-dir), on a branch with no upstream and in a direct-commit history, offer Commit and push to <default-branch> in place of Commit and push: commit, rebase onto origin/<default-branch>, and push to <default-branch>.
Recommend the option that fits this repo by listing it first and labeling it (Recommended): when the current branch already has an open PR, recommend updating it; otherwise follow the prevailing workflow — recommend the PR path for a PR-based history, or commit and push for a direct-commit history.
If the user declines (chooses the free-form "Other" option or asks to abort), leave the changes staged and do not commit.
Step 2: Branch (if Needed)
If the chosen option creates a PR and the current branch is the default branch:
- Suggest a branch name based on the changes and use
AskUserQuestionto confirm or adjust - Create and switch to the new branch:
git checkout -b <branch-name>
Step 3: Check for Unstaged Changes
Run git status to check for unstaged changes. Stay within the selected scope. For a staged-only request, preserve the index as reviewed. Otherwise stage by path the files that belong to the current changeset; this catches files modified by auto-formatters that were not re-staged. When one also carries unrelated changes, write git diff <file> to a uniquely named temporary patch file outside the checkout, back the unrelated changes out of it (delete their + lines and turn their - lines into context lines), and stage it with git apply --cached --recount <patch>. Remove the temporary patch after applying it.
Step 4: Run /commit-rules Skill
Run the /commit-rules skill to load commit message rules and technical constraints.
Step 5: Commit
Commit the already-staged changes (do not stage additional files) with a message following the loaded rules. Keep the branch Step 2 left in place and commit on it, including when that is the default branch.
Before each commit attempt, check the entire staged diff against the selected scope, including individual hunks. If the index already holds unrelated staged changes, preserve them and resolve the mismatch with the user before committing.
If the commit fails due to a pre-commit hook (formatter, linter), fix the issues — or run the project's format/lint script to auto-fix — then stage only the fixes to the approved changes, by hunk when a path also has excluded edits. If the fixes cannot be separated, stop and ask how to proceed before retrying. Fix them in the code and leave the hook's checks as strict as they were: disabling or downgrading a rule, widening an exclude list, or bypassing the hook fixes nothing. When a hook's check is wrong for the code, stop and report it with the evidence. Pre-commit hooks may modify files in the working tree without updating the staging area.
Step 6: Update PR (if Requested)
If the chosen option updates the PR, run the /pr skill.
Step 7: Push (if Requested)
If the chosen option is Commit and push to <default-branch>, run git fetch origin <default-branch>, then git rebase --autostash origin/<default-branch>. When the rebase stops on a conflict, leave it stopped and use AskUserQuestion to offer resolving the conflict and continuing with git rebase --continue, or aborting with git rebase --abort and keeping the commits on the branch unpushed. When git status --short li
Установить ship-together в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ship-together?
Ship the current changes as one unit. Use when the user asks to "ship together", "ship as one unit", or "keep the changes in one PR".
Как установить скилл ship-together?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ship-together запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic