Git Ship
自动化 Git 工作流一键发布助手,执行完整的「ship」流程: 基于最新 main 切新分支 → commit → 推送 → 创建 PR → squash merge → 回 main。 调用 ship 本身就是对完整流程的授权;自动推断分支名、commit message 和 PR 内容, 并主动解决 Git 冲突、测试、lint、类型检查、构建和 CI 失败,持续修复和重试, 直到改动成功合并。不要因可自行修复的失败暂停,只在认证、权限、仓库保护等 无法由当前环境解决的外部阻塞出现时请求用户介入。 仅在用户明确表达「ship」意图时触发,例如: - 直接说「ship」「/ship」「git ship」 - 明确要求完整走完 git 流程:「帮我走一遍 git 流程」「拉 main、切分支、提 PR、合并」 - 使用类似「发布这次改动」「把这些改动提成 PR 并合并」的表达 不应触发的情况: - 只是想 commit - 只是想创建 PR - 只是想 push 代码 - 讨论 git 相关问题或解释 git 概念
Install
npx skills add oil-oil/git-ship --skill git-shipgit clone --depth 1 https://github.com/oil-oil/git-ship.git /tmp/git-ship
mkdir -p ~/.claude/skills
cp -r /tmp/git-ship/. ~/.claude/skills/git-shipPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# git-ship — 一键 Git 工作流 ## 目标与成功标准 把当前工作区的改动,完整走完这条路径: ```text 当前改动 → 基于最新 main 切新分支 → commit → PR → squash merge → 回 main ``` 用户调用 `ship` 就表示已经授权执行整条工作流。流程应连续完成,不要为分支名、 commit message、PR 标题、PR 正文、冲突解决方案、验证修复或是否继续等信息请求确认。 这份授权包括: - 修改当前功能代码,使它与最新 `main` 的线上功能兼容。 - 修改由本次改动或冲突引起的测试、lint、类型、构建和 CI 问题。 - 创建必要的修复提交并重复推送。 - 在合并前同步最新 `main`,解决新产生的冲突并重新验证。 只有同时满足以下条件才算完成: 1. PR 已成功合并到 `main`,不能把“PR 已创建”或“已开启自动合并”当作完成。 2. 必需检查已经通过,或仓库没有可运行的检查。 3. 本地回到 `main` 并尽可能快进到合并后的提交。 ## 核心执行原则 - `ship` 的默认结果是“发布成功”,不是“发现问题后把问题交还给用户”。 - 命令失败后先判断原因并恢复流程;不要机械重复同一个失败命令。 - 以最新 `origin/main` 的现有线上能力和当前改动的产品目标为共同约束,优先保留两者。 - 修复根因,不通过跳过测试、删除断言、关闭规则或使用 `--no-verify` 制造假通过。 - 不使用 force push、`reset --hard`、丢弃提交或覆盖用户改动等破坏性手段。 - 只有缺少认证/权限、必须由他人审批、平台或网络持续不可用、需求意图确实无法从代码和上下文判断时,才暂停并说明唯一需要用户处理的事项。 ## 第 0 步:信息收集 开始前先检查现状: ```bash git status --short --branch git branch --show-current git diff --stat git diff --cached --stat git remote -v gh auth status ``` 同时记录当前分支、未提交改动和未推送提交,防止遗漏用户工作。没有未提交改动时, 继续检查当前分支相对 `origin/main` 是否存在待发布提交;两者都没有才提示没有可发布内容并停止。 自动确定以下信息: **1. 分支名** - 用户已经提供时直接使用。 - 否则根据改动内容推断,格式为 `<type>/<short-desc>`。 - 遵循目标仓库已有分支前缀或命名规则;没有规则时使用语义化名称。 - 本地或远端同名分支已存在时,自动增加简短后缀,避免因命名冲突中断。 **2. Commit message** - 用户已经提供时直接使用。 - 否则根据完整 diff 生成 Conventional Commits 格式:`<type>(<scope>): <description>`。 **3. PR 标题和正文** - PR 标题默认使用 commit message。 - PR 正文根据 diff 自动生成 2–3 条 Summary、改动文件概览和验证结果。 - 不单独询问 PR 名称或正文。 确定后简短告知用户即将使用的分支和 commit,然后立即继续,不等待回复。 ## 第 1 步:同步主分支
Details
- Skill name
git-ship- Repository
- oil-oil/git-ship
- License
- MIT
- Repo updated
- 10 September 2026
FAQ
What does the Git Ship skill do?
自动化 Git 工作流一键发布助手,执行完整的「ship」流程: 基于最新 main 切新分支 → commit → 推送 → 创建 PR → squash merge → 回 main。 调用 ship 本身就是对完整流程的授权;自动推断分支名、commit message 和 PR 内容, 并主动解决 Git 冲突、测试、lint、类型检查、构建和 CI 失败,持续修复和重试, 直到改动成功合并。不要因可自行修复的失败暂停,只在认证、权限、仓库保护等 无法由当前环境解决的外部阻塞出现时请求用户介入。 仅在用户明确表达「ship」意图时触发,例如: - 直接说「ship」「/ship」「git ship」 - 明确要求完整走完 git 流程:「帮我走一遍 git 流程」「拉 main、切分支、提 PR、合并」 - 使用类似「发布这次改动」「把这些改动提成 PR 并合并」的表达 不应触发的情况: - 只是想 commit - 只是想创建 PR - 只是想 push 代码 - 讨论 git 相关问题或解释 git 概念
How do I install the Git Ship skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add oil-oil/git-ship --skill git-ship. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Git Ship popular?
It lives in oil-oil/git-ship, which has 20 GitHub stars and 4 forks.
Related skills
Irpf Brasil
19Danielbluz/skill-irpf-brasil
Assistente especializado em Imposto de Renda Pessoa Física (IRPF) Brasil — ciclo 2026, ano-base 2025. Use quando o usuário mencionar "IRPF", "Imposto de Renda", "declaração de IR", "malha fina", "DARF", "REVAR", "Cashback IRPF", "pré-preenchida", "Núcleo Familiar", "restituição IR", "bets imposto", "ComprovaBet", "e-Social IR", "DIRF", "ganhos bolsa imposto", "day trade", "GCAP", "ganho de capital", "vender imóvel", "isenção 180 dias", "MEI declaração", "lucro distribuído", "espólio inventário herança", "saída definitiva exterior", "residência fiscal", "IRPFM", "imposto mínimo", "Lei 15.270",
Rsshub Route Authoring Skill
27AboutRSS/rsshub-route-authoring-skill
Author PR-ready RSSHub routes — namespace.ts, route handler, Radar rules and PR description — that survive code review. Distilled from 2,727 route PRs. Use when asked to write, fix or review an RSSHub route, add an RSS feed for a website via RSSHub, contribute a route to DIYgod/RSSHub, or when working with cheerio selectors, cache.tryGet, parseDate, Radar rules, or the RSSHub PR template. Trigger on RSSHub, RSS route, RSS feed for X, 给 X 做 RSS 订阅, namespace.ts, DataItem. Do not use for deploying RSSHub, debugging runtime errors, tuning cache/config, or non-RSSHub scraping.
Remote Computer
22paoloanzn/remote-computer
Configure and provision a remote development VM on AWS EC2 or Google Cloud Compute Engine, or a local SSH-ready Linux development container with apple/container on an Apple silicon Mac. Verify provider context, size the machine (host-aware container resource suggestions and Dockerfile configurations saved under ~/Documents/Containers), create dedicated VM-access SSH keys, optionally discover and port local Git/GitHub/GPG configuration with shared GitHub authentication keys, maintain the ~/.vms.json live-VM registry, reconcile status, and prepare direct SSH access. Use when a user asks to creat
Add Skill Installer
28kevintsai1202/add-skill-installer
安裝 Agent Skills 到本機。當用戶想要「安裝技能」、「新增 skill」、「從 GitHub 安裝 skill」、或「install skill from repo」時觸發此技能。
Oss Launch
16AnayDhawan/oss-launch
Use when taking a repo open source, or hardening one that already is. Run /oss-launch and it scans the repo (stack, existing files, git remote, secrets), asks only what it cannot infer, then generates a tailored OSS file collection (README, LICENSE, CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, CHANGELOG, .gitignore, .github/ issue + PR templates, CI/CD). Also covers launch (GitHub metadata, badges, Show HN, Reddit, YouTube), release cadence (SemVer + CHANGELOG), and demo-GIF generation. Triggers on "open source this", "OSS checklist", "prep for launch", "make this repo public", "add a license / co
Code Review
30felipereisdev/code-review-skill
Performs a structured, comprehensive code review of git changes (uncommitted, staged, current branch vs base, a single commit, a commit range, or a GitHub pull request or GitLab merge request by number or URL). Detects the stack and architecture automatically, applies stack- and pattern-specific rules, and reports findings by severity. Use when the user runs /code-review or /review-pr, or asks to "review my changes", "review PR", "review this branch", "do a code review", "revisar minhas mudanças", "revisar o PR" or "fazer code review".
Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.