ship-it

ship-it is a skill for Claude Code, Codex from smallnest/pigo. It costs 96 tokens per session (1,395 once invoked), scanned A, original, MIT.

A GitHub delivery workflow that commits completed changes, pushes a branch, creates and merges a pull request, and closes the related issue.

In plain words
What is it for?
Use it after implementing a GitHub issue when you have its number, need a commit and feature branch, want to open a pull request with tests, and are ready to merge it.
Why use it?
It gathers the final steps of completing a GitHub issue into one repeatable process and keeps the issue, branch, commit, and pull request connected.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/smallnest/pigo/ship-it.svg)](https://agentmods.dev/skills/smallnest/pigo/ship-it)
Your own site
<a href="https://agentmods.dev/skills/smallnest/pigo/ship-it"><img src="https://agentmods.dev/badge/skills/smallnest/pigo/ship-it.svg" alt="Measured on agentmods" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,395 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.00096 $0.01395
Opus 5 $0.00048 $0.00698
Sonnet 5 $0.00019 $0.00279
Haiku 4.5 $0.00010 $0.00139

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

Security

Grade A, and why

ship-it 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 4d 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.

internal/builtinskills/skills/ship-it/SKILL.md · 182 lines

How it starts

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

After-Goal: 代码提交、PR 合入、Issue 关闭工作流(GitHub)

完成 GitHub Issue 实现后的标准收尾流程:提交代码 → 推送分支 → 创建 PR → 合入 → 关闭 Issue。

前置条件

  • 当前 git 仓库有已实现的代码变更
  • 已知 Issue 编号(如 #42
  • gh CLI 已登录(gh auth status 可验证)

工作流

Step 1: 提交代码

# 1a. 检查变更状态
git status
git diff --stat HEAD

# 1b. 暂存本次 Issue 相关的文件(不要 add 不相关的文件)
git add <files related to this issue>

# 1c. 提交,commit message 关联 Issue
git commit -m "$(cat <<'EOF'
{简要描述} (#issue-number)

{可选的详细说明}
EOF
)"

关键规则:

  • commit message 中包含 #issue-number 以关联 Issue
  • 只暂存当前 Issue 相关的文件,不要混入其他变更

Step 2: 推送分支

# 如果还在 main/master 上,先创建功能分支
git checkout -b {branch-name}  # 如已在功能分支则跳过

# 推送到远程
git push -u origin {branch-name}

分支命名建议:feat/issue-42-short-descfix/issue-42-short-desc

Step 3: 创建 PR

gh pr create \
  --title "{简要描述}" \
  --body "$(cat <<'EOF'
## Summary
- 实现内容概述

Closes #{issue-number}

## Test plan
- [ ] 测试项 1
- [ ] 测试项 2
EOF
)"

关键规则:

  • PR body 中写 Closes #NFixes #N,合入后 GitHub 自动关闭 Issue
  • title 简洁,不超过 70 字符

Step 4: 合入 PR

# 4a. 查看 PR 状态(确认 checks 通过)
gh pr checks

# 4b. 合入(默认 merge commit,可选 --squash 或 --rebase)
gh pr merge --squash --delete-branch

参数说明:

  • --squash: 压缩为单个 commit 合入(推荐)
  • --rebase: rebase 合入
  • --merge: 普通 merge commit
  • --delete-branch: 合入后删除远程分支

Step 5: 添加实现总结评论

PR 合入后,始终在 Issue 上添加实现总结评论,方便后续直接从 Issue 回溯代码变更。

gh issue comment {issue-number} --body "$(cat <<'EOF'
## 实现总结
- **核心变更**:{从 PR body 提取的实现摘要}
- **PR**: #{pr-number}
- **Commit**: {hash}
EOF
)"

关键规则:

  • 无论是 auto-close 还是手动 close,都必须添加此评论
  • 评论内容从 PR body 的 Summary 部分提取,保持简洁(3-5 条 bullet)
  • 附加 PR 编号和 commit hash,方便直接跳转

Step 6: 手动关闭 Issue(仅当未自动关闭时)

如果 PR body 中已写 Closes #N,合入后 Issue 会自动关闭,跳过此步。否则手动关闭:

gh issue close {issue-number} --reason completed

错误处理

场景 处理方式
gh pr checks 有失败项 查看失败原因,修复后追加 commit 推送
PR 有 merge conflict git fetch origin main && git rebase origin/main,解决冲突后 force push
gh pr merge 被 branch protection 阻止 确认 required reviews 已满足,或请 reviewer approve
Issue 合入后未自动关闭 确认 PR body 包含 Closes #N,或执行 Step 6 手动 gh issue close

Read the full file on GitHub · 182 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. 4d ago First seen · 182 lines · 96 tokens per session scan A 19ceca0402d6

Subscribe to this mod's changes

ship-it is a skill published in the GitHub repository smallnest/pigo (419 stars, last pushed 4d ago), licensed MIT. It adds 96 tokens to every session and 1,395 once invoked, about $0.0005 per session on Opus 5. 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.