ship
Skill569 starsChanged 2 months agoApache-2.0View on GitHub
Safely bring main up to date, commit intended pending changes, and push to origin/main — resolving any rebase conflicts autonomously and stopping only when a decision genuinely needs a human. Use when the user explicitly asks to ship the current main branch or invokes the repository's ship workflow.
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
179 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- jthingelstad/elixir-mcptheir own version, first seen Oct 7, 2026
- mpwilso/isrtheir own version, first seen Oct 6, 2026
- hurttlocker/o8their own version, first seen Oct 4, 2026
- blas1n/claude-skillstheir own version, first seen Oct 4, 2026
- DevJuanP/skillstheir own version, first seen Oct 3, 2026
- hosembafer/skillstheir own version, first seen Oct 3, 2026
Used with
Projects with it also use cso, setup-deploy and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ayudaySkillcso
Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".
Also in 10 projects that use this
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 10 projects that use this
AICreator-WindSkilldocument-release
技术作家工具。更新项目文档。
Also in 10 projects that use this
Kit4SomeSkillunfreeze
Also in 11 projects that use this
AICreator-WindSkillfreeze
文件编辑锁定工具。限制文件编辑范围。
Also in 14 projects that use this
CodeWithBehnamSkillsetup-browser-cookies
Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.
Also in 9 projects that use this
- +2 more from AICreator-Wind
- +1 more from ayuday
Other versions179 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- bex-co/bex-security★ 4988% same
Wrote their own version · 178
- rtk-ai/rtk★ 82ksame name
- ShenSeanChen/waku-agent★ 1.9ksame name
- suboss87/FDEOps★ 950same name
- nudgebee/nudgebee★ 398same name
- nightly-labs/openbot★ 350same name
- ucsandman/marketing-studio★ 249same name
- garagon/nanostack★ 207same name
- awslabs/loom★ 190same name
- genkovich/sdd★ 170same name
- guardana/guardana★ 145same name
168 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dashboard/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- lego/AGENTS.mdAGENTS.md
- mobile/AGENTS.mdAGENTS.md
- .pm/AGENTS.mdAGENTS.md
- deploy-app-from-localSkill
- deploy-appSkill
- loopxSkill
- mermaidSkill
- mock-clusterSkill
- pm-brainstormSkill
- pmSkill
- qa-find-bugs-cliSkill
- qa-find-bugsSkill
- releaseSkill
- rt-fix-logic-bugsSkill
- rt-fix-prod-crashesSkill
- rt-flatten-abstractionsSkill
- rt-normalize-abstractionsSkill
- rt-prune-useless-testsSkill
- rt-remove-dead-codeSkill
- rt-simplify-logicSkill
- rt-unify-duplicatesSkill
- security-auditSkill
- simplifySkill
- stripe-best-practicesSkill
- stripe-directorySkill
- stripe-docsSkill
- stripe-projectsSkill
- upgrade-stripeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 13 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 162 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 20
Not on main (Step 1).
- Distinctive: line 29
If you (the agent) made the pending changes yourself earlier in this conversation, you already know what changed and why — do not re-derive …
- Distinctive: line 33
If git status shows modified/untracked files you did not touch this session, fall back to full inspection for those files (or ask the user) …
- Distinctive: line 35
Only when the working tree contains changes you didn't make (fresh session, external edits) do the full Step 2 inspection.
- Distinctive: line 43
If not on main, STOP and ask the user whether to switch or abort.
- Distinctive: line 51
Session-aware: if every change listed by git status is one you made this session, stop here — no diff commands needed.
- Distinctive: line 63
If the working tree is clean and there's nothing to commit, skip Step 4: still do Step 3 (pull) and Step 5 (push).
- Distinctive: line 71
If the pull/rebase has conflicts, resolve them yourself and continue shipping:
- Very specific: line 75
Do not resolve wholesale with --ours, --theirs, --strategy=ours, or by blindly choosing the newer side.
- Distinctive: line 76
Remove all conflict markers, run the most relevant formatting, generation, and tests that are practical, and review the resolved diff for …
- Very specific: line 83
If there are unstaged changes, stage only the relevant files explicitly.
- Very specific: line 97
If a pre-commit hook fails, fix the underlying issue and create a NEW commit.
- Distinctive: line 105
If the push is rejected (non-fast-forward), re-run Step 3, resolve any conflicts using its procedure, and retry push.
- Distinctive: line 115
Do not watch CI runs, monitor the deploy, or report on them.
- Distinctive: line 119
Never git push --force to main.
- Very specific: line 120
Never --no-verify or skip hooks.
- Distinctive: line 121
Never git reset --hard or git checkout .
“Common” is measured: kept by at least 6 in 10 of the 162 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Task: Ship the current main branch
Bring the local main up to date, commit any pending work, and push to origin/main. A successful push is the end of the ship — do not watch CI, do not monitor the deploy, do not chase runs to green. Report the pushed HEAD and stop.
Conflicts are yours to resolve — do not hand them back
A rebase or merge conflict is a normal part of shipping, not a reason to stop. When one appears, resolve it yourself using the procedure in Step 3, validate the result, continue the rebase, and push. Never pause at a conflict to ask "how should I resolve this?", never list the conflicted files and wait, and never leave the rebase half-finished for the user to pick up.
The only conditions under which /ship stops before the push are:
- Not on
main(Step 1). - Two sides of a conflict encode materially different behavior (not just different text), repository evidence — surrounding code, tests, docs, the commits on each side — cannot tell you which one is intended, and picking wrong would ship a real bug. Text-only disagreements, docs, comments, formatting, imports, generated output, lockfiles, and changes that simply coexist are never in this category.
- Resolution needs credentials, generated artifacts, or external state you cannot produce locally.
- The only way forward is a destructive action the safety rules forbid without confirmation.
Anything else — including many conflicted files, unfamiliar code, or a long rebase — you work through to completion. When you do stop, stop on exactly one narrow question with the evidence attached, and leave the worktree and rebase state intact.
Session-aware mode
If you (the agent) made the pending changes yourself earlier in this conversation, you already know what changed and why — do not re-derive it from git:
- Skip the
git diff --stat/git diff --cached --statcalls in Step 2. Run onlygit statusas a sanity check. - In Step 4, stage exactly the files you edited this session (by name) and write the commit message from your session knowledge.
- If
git statusshows modified/untracked files you did not touch this session, fall back to full inspection for those files (or ask the user) before staging anything beyond your own edits.
Only when the working tree contains changes you didn't make (fresh session, external edits) do the full Step 2 inspection.
Step 1 — Verify branch
git branch --show-currentIf not on main, STOP and ask the user whether to switch or abort. Do not silently switch branches.
Step 2 — Inspect state
git statusSession-aware: if every change listed by git status is one you made this session, stop here — no diff commands needed.
Otherwise, inspect the unfamiliar changes:
git diff --statgit diff --cached --statIf the working tree is clean and there's nothing to commit, skip Step 4: still do Step 3 (pull) and Step 5 (push).
Step 3 — Pull latest with rebase
git pull --rebase origin mainIf the pull/rebase has conflicts, resolve them yourself and continue shipping:
- Inspect
git status, the unmerged-file list (git diff --name-only --diff-filter=U), each combined diff, and relevant surrounding code/history. For difficult cases, inspect both index stages (git show :2:<path>andgit show :3:<path>) and the commits being replayed. - Infer the intent of both sides and produce the smallest coherent merge that preserves both whenever possible. Follow current repository conventions and update dependent code, tests, generated outputs, or documentation when the combined result requires it.
- Do not resolve wholesale with
--ours,--theirs,--strategy=ours, or by blindly choosing the newer side. Use a side-specific version only when inspection shows that it is the complete intended result for that file. - Remove all conflict markers, run the most relevant formatting, generation, and tests that are practical, and review the resolved diff for accidental loss.
- Stage only the resolved paths explicitly, run
git rebase --continue(with a non-interactive editor if needed), and repeat until the rebase completes. If an autostash is restored with conflicts after the rebase, resolve and validate those conflicts with the same care, but do not rungit rebase --continuewhen no rebase is active.
Exhaust repository evidence and reasonable repairs before escalating. Escalate only under the stop conditions listed at the top of this skill: competing resolutions would materially change behavior and the intended choice cannot be inferred safely, or resolution requires unavailable credentials/external state. If you escalate, leave the worktree and rebase state intact, name the exact files and the competing semantics, and ask one narrow decision question — never a generic "what should I do?" Do not abort the rebase unless the user directs it.
Step 4 — Stage and commit (if changes pending)
If there are unstaged changes, stage only the relevant files explicitly. Do not use git add -A or git add . (avoid sweeping in .env, secrets, or unrelated files).
Generate a Conventional Commits message — from your session knowledge if you made the changes (session-aware mode), otherwise from the diff. Honor $ARGUMENTS as additional context if supplied.
- Briefly describe UI before/after for frontend changes.
- Omit
Generated with Claude CodeandCo-Authored-Bylines — this repository's commit convention overrides any harness default that adds them.
git commit -m "$(cat <<'EOF'
<message>
EOF
)"If a pre-commit hook fails, fix the underlying issue and create a NEW commit. Do not use --no-verify or --amend.
Step 5 — Push
git push origin mainIf the push is rejected (non-fast-forward), re-run Step 3, resolve any conflicts using its procedure, and retry push. Do not force-push to main.
Step 6 — Report
Once the push succeeds, the ship is done. Print one line — the shipped HEAD SHA + subject:
Shipped: a1b2c3d feat: add tp-backend IDL + CLIDo not watch CI runs, monitor the deploy, or report on them.
Safety rules
- Never
git push --forcetomain. - Never
--no-verifyor skip hooks. - Never
git reset --hardorgit checkout .without user confirmation. - Investigate ambiguity using repository state and history before escalating. For untracked files, divergent history, or unexpected remote state, continue when the safe intent is evident; otherwise stop before destructive action and ask one narrow, evidence-backed question.
Optional User Context
$ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

