agentleFS
aaronsbaaronsb/claude-code-config/skills/ship/SKILL.md

ship

Skill18 starsChanged 10 months agoMITView on GitHub

Ship current work through the branch → commit → push → PR → merge → cleanup flow. Picks up wherever you are in the cycle. Use when the user says "ship it", "land this", "merge this", or invokes /ship.

  • Commits and pushes

179 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • ayudaySkill

    cso

    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

  • ayudaySkill

    setup-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-WindSkill

    document-release

    技术作家工具。更新项目文档。

    Also in 10 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 11 projects that use this

  • AICreator-WindSkill

    freeze

    文件编辑锁定工具。限制文件编辑范围。

    Also in 14 projects that use this

  • CodeWithBehnamSkill

    setup-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

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 14 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 162 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 2

    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
  1. Distinctive:

    Run these in parallel to determine current position in the flow:

    line 18
  2. Very specific:

    If the GitHub way has already injected context (look for Context: Team project or Context: Solo/pair project in the conversation), use that …

    line 37
  3. Distinctive:

    If the user provides a name, use it.

    line 49
  4. Distinctive:

    If there are multiple logical changes, make multiple atomic commits.

    line 55
  5. Distinctive:

    Ask the user for a commit message direction if the intent isn't clear.

    line 56
  6. Distinctive:

    Keep the title under 70 characters.

    line 77
  7. Distinctive:

    Always pause here. State the change scope and suggest reviewers.

    line 83
  8. Distinctive:

    Do NOT proceed to merge without explicit user approval.

    line 84
  9. Distinctive:

    After the review completes, summarize findings and ask whether to proceed to merge.

    line 103
  10. Very specific:

    Use --merge (not squash or rebase) unless the user prefers otherwise.

    line 111
  11. Distinctive:

    After merge, always run the full cleanup sequence — don't stop at git pull:

    line 115
  12. Distinctive:

    After merge, check if the project has publishing targets:

    line 138
  13. Distinctive:

    If found, ask the user whether to publish:

    line 144
  14. Distinctive:

    Don't auto-publish — always confirm.

    line 149
  15. Distinctive:

    If no Makefile targets exist but the changes warrant a release (new feature, breaking change), suggest:

    line 151
  16. Distinctive:

    Pause only at decision points: commit message wording, PR description, review gate, publish

    line 158

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ship Workflow

Deliver current work to main. Assess the current state and pick up from wherever the user is.

Arguments

  • /ship — default flow, adapts review gate to repo flavor
  • /ship full-sail — skip the review pause (solo/pair repos only; team repos still pause)

Assess First

Run these in parallel to determine current position in the flow:

git status --short              # Uncommitted changes?
git branch --show-current       # On main or a feature branch?
git log --oneline main..HEAD    # Commits ahead of main?
git remote show origin 2>&1     # Remote tracking state?

Also check repo flavor for review gating:

# Active contributors in last 90 days
git log --since="90 days ago" --format='%aN' | sort -u | wc -l
  • ≤2 active: Solo/pair — lightweight PRs, review pause optional
  • 3+ active: Team — review pause mandatory, suggest reviewers

If the GitHub way has already injected context (look for **Context**: Team project or **Context**: Solo/pair project in the conversation), use that instead of re-checking.

Flow Steps (skip what's already done)

1. Branch (if on main with changes)

git checkout -b <branch-name>

Pick a name from the changes: feature/thing, fix/thing, refactor/thing. If the user provides a name, use it. If changes are already committed on main, create the branch first, then it carries the commits.

2. Commit (if uncommitted changes)

Stage and commit. Follow conventional commit format. If there are multiple logical changes, make multiple atomic commits. Ask the user for a commit message direction if the intent isn't clear.

3. Push

git push -u origin <branch>

4. PR

gh pr create --title "..." --body "$(cat <<'EOF'
## Summary
...

## Test plan
...
EOF
)"

Keep the title under 70 characters. Summary should be 1-3 bullets. For small/obvious changes, the test plan can be brief.

5. Review Gate

Team repos (3+ active contributors):

  • Always pause here. State the change scope and suggest reviewers.
  • Do NOT proceed to merge without explicit user approval.
  • Exception: /ship full-sail is rejected for team repos — tell the user why.

Solo/pair repos (≤2 active contributors):

  • Default: Offer to spawn a code-reviewer subagent against the PR. This is the normal path — don't wait for the user to ask. Frame it as: "I'll run a code review on this PR before we merge" and proceed unless the user declines.
  • Trivial (typos, config, single-file): mention the review is optional, still offer
  • /ship full-sail skips both the review and the pause

State your assessment and let the user decide.

Running the review:

Agent(subagent_type="code-reviewer", prompt="Review PR #<number> in this repo.
Run gh pr diff <number> to see the changes. Post findings as a gh pr comment.")

After the review completes, summarize findings and ask whether to proceed to merge.

6. Merge

gh pr merge <number> --merge

Use --merge (not squash or rebase) unless the user prefers otherwise.

7. Cleanup

After merge, always run the full cleanup sequence — don't stop at git pull:

git checkout main && git pull && git fetch --prune

Then delete the local branch we just merged:

git branch -d <branch>

And verify the workspace is clean:

git branch  # Should show only main (and any other active work branches)

This keeps the repo tidy. Stale local branches and dangling remote tracking refs accumulate fast if you skip this.

8. Publish (if applicable)

After merge, check if the project has publishing targets:

make help 2>/dev/null | grep -iE 'release|dist|publish|deploy'

If found, ask the user whether to publish:

  • make release — version bump, tag, publish artifacts
  • make dist — build distributable artifacts without publishing
  • make deploy — deploy to staging/production

Don't auto-publish — always confirm. Publishing is a one-way door (npm publish, GitHub Release, AUR push).

If no Makefile targets exist but the changes warrant a release (new feature, breaking change), suggest:

  • Tagging: git tag -a vX.Y.Z -m "summary" && git push origin --tags
  • GitHub Release: gh release create vX.Y.Z --generate-notes

Key Principles

  • Don't ask permission for each step — assess state, propose the full remaining flow, then execute
  • Pause only at decision points: commit message wording, PR description, review gate, publish
  • If already mid-flow, pick up from current state — don't restart
  • One commit is fine for most changes; only split if there are genuinely separate concerns
  • Repo flavor drives review, not just change size — a one-line fix in a team repo still pauses
  • Merge ≠ ship for projects with artifacts — check for make release after merge

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.