git-ship

git-ship is a skill for Claude Code, Codex from LiozShor/claude-code-skills. It costs 105 tokens per session (2,181 once invoked), scanned A, original, MIT.

A controlled workflow for committing and optionally pushing changes with Git, a tool for tracking code history. It checks the current branch and the changes before a Git write operation.

In plain words
What is it for?
It helps commit, push, merge, rebase, reset, or delete branches when the required checks and confirmations are in place.
Why use it?
It helps prevent accidental commits or other branch changes, and requires confirmation before pushing or merging into the main branch.

Skill for Claude CodeCodex

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 skills/liozshor/claude-code-skills/git-ship
Any agent
npx skills add LiozShor/claude-code-skills --skill git-ship
Clone the repo
git clone --depth 1 https://github.com/LiozShor/claude-code-skills

Made for: Claude Code, Codex.

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 git-ship

README.md
[![agentmods](https://agentmods.dev/badge/skills/liozshor/claude-code-skills/git-ship.svg)](https://agentmods.dev/skills/liozshor/claude-code-skills/git-ship)
Your own site
<a href="https://agentmods.dev/skills/liozshor/claude-code-skills/git-ship"><img src="https://agentmods.dev/badge/skills/liozshor/claude-code-skills/git-ship.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,181 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00105 $0.02181
Opus 5 $0.00053 $0.01091
Sonnet 5 $0.00021 $0.00436
Haiku 4.5 $0.00011 $0.00218

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

Security

Grade A, and why

git-ship scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Then curl the URL / query the prod table / screenshot the page, and **paste the evidence**.
git-ship/SKILL.md · 139 lines

How it starts

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

Git Ship

When this triggers

  • User says "ship it", "commit this", "push", "merge this branch", or asks to run git commit, git push, git merge, git rebase, git reset, or git branch -d.
  • Any git write operation is about to happen in this project — this skill is the mandatory entry point.

When this does not trigger

  • Read-only git commands (git status, git diff, git log, git show, git branch --show-current) — those are fine without invoking this skill.
  • Non-git tasks — no overlap with other sibling skills.

Mandatory Invocation

This skill is the ONLY entry point for git write operations in this project. Before running git commit, git push, git merge, git rebase, git reset, git branch -d, or git checkout main — you MUST be inside this skill. Read-only commands (status, diff, log, show, branch --show-current) are fine without invocation.

Required inputs

  • Current branch name (git branch --show-current).
  • The diff to be committed (git diff / git diff --staged).
  • User confirmation before pushing or merging to main.

Pre-Ship Validation (Multi-Tab Safety)

  1. Branch guard: Run git branch --show-current. If on main/master, REFUSE and error: "You're on main. This should not happen — a feature branch should have been created at session start." Do NOT proceed with the commit.
  2. Run git diff and review ALL hunks. Check if any changes don't belong to the current task/ticket (e.g., changes from another Claude Code tab session).
  3. If suspicious mixed changes are detected: warn the user, list the foreign hunks, and suggest using git add -p to selectively stage only the relevant changes.
  4. Verify the commit will only include files relevant to the current task.

Workflow

  1. Run git status --porcelain to see all changes.
  2. Stage explicit paths only. NEVER git add -A / git add . / git add --all — a blanket add sweeps in a parallel session's work (this has happened: ~16 foreign files in one commit). Instead:
    • Derive the list of paths belonging to THIS task from the porcelain output.
    • Show the user that exact file list before staging.
    • Stage them by path: git add path/one path/two.
    • Any dirty file not on the list: name it and ask — do not stage, do not stash it unilaterally.
    • If a PreToolUse hook blocking blanket adds is installed, and it fires, fix the command; do not route around it.
  3. Run git diff --staged and confirm the staged set matches the list you showed.
  4. Generate a conventional commit message: type(scope): description (under 72 chars).
  5. Commit. If amending, verify with git log -1 --stat that the amend replaced the commit rather than stacking a new one.
  6. Ask the user: "Push to remote?" — only push if they confirm.
  7. Before any push that lands on main, run git fetch && git rebase origin/main first. On conflict, stop and show it — a parallel session may have pushed conflicting docs.

Read the full file on GitHub · 139 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 139 lines · 105 tokens per session scan A 76b68414067f

Subscribe to this mod's changes

git-ship is a skill published in the GitHub repository LiozShor/claude-code-skills (2 stars, last pushed 17d ago), licensed MIT. It adds 105 tokens to every session and 2,181 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.