ship-pr
Commit, push, open a pull request, repair CI within bounded attempts, then squash merge and verify post-merge workflows.
от 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.
- Run
git status --short --branch,git diff HEAD --stat,git log --oneline origin/HEAD..HEAD(the branch commits),git log --oneline -10, andgh api 'repos/{owner}/{repo}/actions/permissions' --jq .enabled(whether Actions is enabled). Read the full diff (git diff HEAD), every untracked filegit statuslists, and, when there are branch commits, their diff (git diff origin/HEAD...HEAD) before writing anything. Read each issue the branch commits reference (#Non GitHub, a Linear identifier or issue URL, or a local issue path) with the Read an issue operation indocs/agents/issue-tracker.md, since its comments hold the triage brief, or withgh issue view N --json title,body,commentswhen 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. - 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.
- If the current branch is the repository's default branch, create and switch to a new one first:
type/kebab-description, wheretypematches 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 rungit branch -f <default> origin/<default>so the default branch matches its remote and the merge can fast-forward it. - 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. - If staged changes exist (
git diff --cached --quietexits 1), write a Conventional Committype(scope): description, matching the subject style already ingit log, and commit them. When theoss-writingskill 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. - Run
git push -u origin HEADwith 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. - 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 theprskill through the host's skill mechanism for the body, and load and followoss-writingfor the wording when that skill is installed, even when no commit was written in step 5.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…