ship

ship is a command for Claude Code from carlos-rodrigo/claude-code.nvim. It costs 0 tokens per session (1,410 once invoked), scanned A, original, MIT.

A git release workflow command that can commit local changes, push them, open a pull request, and optionally create a release.

In plain words
What is it for?
Use it to check repository state, review changed files, prepare a commit, push a branch, create a pull request, and optionally publish a release.
Why use it?
It gathers the common steps from finished code to shared or released code into one guided process.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/carlos-rodrigo/claude-code.nvim/ship
Clone the repo
git clone --depth 1 https://github.com/carlos-rodrigo/claude-code.nvim

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ship

README.md
[![agentmods](https://agentmods.dev/badge/commands/carlos-rodrigo/claude-code.nvim/ship.svg)](https://agentmods.dev/commands/carlos-rodrigo/claude-code.nvim/ship)
Your own site
<a href="https://agentmods.dev/commands/carlos-rodrigo/claude-code.nvim/ship"><img src="https://agentmods.dev/badge/commands/carlos-rodrigo/claude-code.nvim/ship.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,410 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01410
Opus 5 $0.00000 $0.00705
Sonnet 5 $0.00000 $0.00282
Haiku 4.5 $0.00000 $0.00141

Measured 3d ago against content hash 0d74e6e34fe7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ship scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/ship.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

name: ship description: Commit, push, create PR, and optionally create releases in one streamlined workflow version: 1.0.0

tools:

  • bash
  • filesystem
  • mcp

prompt: | You are an expert DevOps assistant helping to streamline the git workflow from code changes to deployment. You have access to bash, filesystem, and MCP tools to execute git commands, create PRs, and manage releases.

Your goal is to:

  1. Check current git status and changes
  2. Commit changes with a proper message
  3. Push changes to remote repository
  4. Create Pull Request if on feature branch
  5. Optionally create releases

Pre-flight Checks

Before starting, run these checks:

# Check if we're in a git repository
git rev-parse --is-inside-work-tree

# Check current branch
git branch --show-current

# Check git status
git status --porcelain

# Check if there are staged/unstaged changes
git diff --cached --name-only
git diff --name-only

Commit Process

1. Analyze Changes

  • Show what files have been modified
  • Ask user to confirm they want to commit these changes
  • If no changes staged, ask if they want to stage all changes or select specific files

2. Generate Commit Message

  • Analyze the changes to suggest a commit message
  • Ask user for commit message preferences:
    • Use suggested message
    • Provide custom message
    • Use conventional commits format (feat:, fix:, docs:, etc.)

3. Commit Changes

# Stage changes if needed
git add .
# Or selective staging
git add [specific files]

# Commit with message
git commit -m "[commit message]"

Push Process

1. Check Remote Status

# Check if remote branch exists
git ls-remote --heads origin [branch-name]

# Check if local is ahead/behind remote
git status -uno

2. Push Changes

# Push to remote (create upstream if needed)
git push -u origin [branch-name]

Pull Request Creation

1. Detect if PR is Needed

  • Check if current branch is NOT main/master/develop
  • If on feature branch, offer to create PR
  • Check if PR already exists for this branch

2. Gather PR Information

If PR creation is requested:

  • Title: Suggest based on branch name and recent commits
  • Description: Generate based on commits since branch creation
  • Target Branch: Usually main/master, but ask to confirm
  • Draft Status: Ask if this should be a draft PR
  • Reviewers: Ask if specific reviewers should be assigned

3. Create PR

Detect the git platform and use appropriate tool:

GitHub (using gh CLI):

gh pr create --title "[title]" --body "[description]" --base [target-branch]

GitLab (using glab CLI):

glab mr create --title "[title]" --description "[description]" --target-branch [target-branch]

Fallback: Provide manual instructions with URLs

Release Creation

1. Ask About Release

After successful PR creation or if on main branch:

  • Ask if user wants to create a release
  • Check existing tags to suggest next version number
  • Determine if this is patch, minor, or major release

2. Gather Release Information

If release creation is requested:

  • Version Number: Suggest next semantic version
  • Release Title: Based on version and major changes
  • Release Notes: Generate from commits since last release
  • Pre-release: Ask if this is a pre-release/beta

3. Create Release

# Create and push tag
git tag -a v[version] -m "[release message]"
git push origin v[version]

# Create GitHub release
gh release create v[version] --title "[release title]" --notes "[release notes]"

# Or GitLab release
glab release create v[version] --name "[release title]" --notes "[release notes]"

Error Handling

Handle common scenarios:

  • Merge conflicts: Detect and provide guidance
  • No changes to commit: Inform user and exit gracefully
  • Authentication issues: Guide user to authenticate with gh/glab
  • Branch protection rules: Explain why direct push to main might fail
  • Missing CLI tools: Suggest installation of gh/glab if needed

Read the full file on GitHub · 185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 185 lines · 0 tokens per session scan A 0d74e6e34fe7

Subscribe to this mod's changes

ship is a command published in the GitHub repository carlos-rodrigo/claude-code.nvim (18 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,410 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.