Command Palette

Search for a command to run...

Назад к скиллам
скилл № 80941

ship-pr

Commit, push, open a pull request, repair CI within bounded attempts, then squash merge and verify post-merge workflows.

БесплатноБез исполняемых скриптов
svyatovот svyatov★ 42 звезды на GitHub

Установить ship-pr в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Commit every change, push, open a pull request, and merge it once CI is green. Never commit onto the default branch. The arguments, if any, are a hint at what the change is about, not the message itself.

Keep a shipping record outside the worktree with the original and repair PRs, branches, checked commits, run IDs and attempts, logs, QA/review reports, and recovery counters. The original shipping operation and all its repair PRs share one set of recovery counters: initialize them only for a new shipping operation, and restore them from the record on continuation. Preserve the record across restarts and follow-up PRs.

Start from the session's working directory. When this session's work sits in another worktree (git worktree list), use that worktree as the execution cwd for every command and subprocess throughout shipping, CI recovery through recover-ci, and the post-merge repair, including gh, validation and hooks; leave the original working directory's changes untouched. git -C <path> scopes only that Git command, not subsequent commands. If the host cannot run hooks in the selected worktree, stop rather than run them from the original directory.

  1. Run git status --short --branch, git diff HEAD --stat, git log --oneline origin/HEAD..HEAD (the branch commits), git log --oneline -10, and gh api 'repos/{owner}/{repo}/actions/permissions' --jq .enabled (whether Actions is enabled). Read the full diff (git diff HEAD), every untracked file git status lists, and, when there are branch commits, their diff (git diff origin/HEAD...HEAD) before writing anything. Read each issue the branch commits reference (#N on GitHub, a Linear identifier or issue URL, or a local issue path) with the Read an issue operation in docs/agents/issue-tracker.md, since its comments hold the triage brief, or with gh issue view N --json title,body,comments when that file is missing and the reference identifies a GitHub issue. With a configured Linear tracker, use its MCP operations. Report unavailable access or incomplete reads without switching trackers.
  2. Scan the working changes, untracked files, and every outgoing commit's content for credentials, tokens, private keys, and any value that does not belong in this repository. Inspect each commit relative to its parents, including root commits, merge resolutions, and values introduced then removed by a later commit; the net branch diff alone is insufficient because the push publishes intermediate history. Determine the outgoing commits against the destination remote's current refs. If you find a secret anywhere in that content, stop, commit and push nothing, and report it without exposing the value. Do not rewrite history automatically.
  3. If the current branch is the repository's default branch, create and switch to a new one first: type/kebab-description, where type matches the Conventional Commit type you are about to use and the description comes from the change itself. Any branch commits move to the new branch with it: then run git branch -f <default> origin/<default> so the default branch matches its remote and the merge can fast-forward it.
  4. Stage the changes. Prefer explicit paths over git add -A. An untracked directory that holds a local tool's state (an index, cache, or database, such as .codegraph/) belongs in the root .gitignore, even when it ships its own .gitignore: add its path there, stage that line with the rest, and say so in the report.
  5. If staged changes exist (git diff --cached --quiet exits 1), write a Conventional Commit type(scope): description, matching the subject style already in git log, and commit them. When the oss-writing skill is installed, load and follow it through the host's skill mechanism for the wording. With no staged changes, keep the existing commits and continue without an empty commit. Any other exit status is an error to resolve, not an empty index.
  6. Run git push -u origin HEAD with a 10-minute timeout: a pre-push hook can run the whole test suite. The outgoing-history screening in step 2 applies even when no new commit was needed. If the hooks must run against a scratch copy, complete the scratch dependency preflight in that exact copy before pushing. Use the normal unchanged hooks, launched from the selected shipping worktree.
  7. Create the PR with gh pr create, or update the existing PR for this branch after a repair. The squash merge makes the title the one commit on the default branch, so the title and body cover the whole branch: your commit's subject when it is the branch's only commit, otherwise one Conventional Commit subject spanning every commit. Use the repository's pull request template when it has one. Otherwise, load and follow the pr skill through the host's skill mechanism for the body, and load and follow oss-writing for the wording when that skill is installed, even when no commit was written in step 5.
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • CI.md
  • agents/openai.yaml

FAQ

Что делает скилл ship-pr?

Commit, push, open a pull request, repair CI within bounded attempts, then squash merge and verify post-merge workflows.

Как установить скилл ship-pr?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ship-pr запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ship-pr с