Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

ship发布交付

Agent Skill

ship 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

874

周安装

35

GitHub Stars

公开资料未说明

下载量

283
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ship(发布交付)
来源仓库:https://github.com/qiaoshouqing/skills
仓库路径:skills/ship
安装命令:
npx skills add qiaoshouqing/skills --skill "ship"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add qiaoshouqing/skills --skill "ship"

简介

ship 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果时使用。

  • 支持结合任务场景或来源线索进行信息聚合与过滤,适用于研究类工作流。
  • 通过 npx skills add qiaoshouqing/skills --skill "ship" 命令安装使用。
  • 建议确认权限范围和维护状态,注意是否涉及联网、命令执行或文件读写操作。
  • ship 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
ship
description
Commit, push, and create a PR in one step. Use when the user says 'ship', 'ship it', '/ship', '提交PR', '发PR', or wants to commit + push + create a pull request in a single action.
version
1.0.0
metadata
author
qiaoshouqing

Ship - Commit, Push & Create PR in One Step

Ship your changes with a single command. Auto-generates commit messages, pushes to remote, and creates a pull request with a detailed description.

When to Use

  • User says "ship", "ship it", or "/ship"
  • User says "提交PR", "发PR", "提交并创建PR"
  • User wants to commit all changes, push, and open a PR in one action
  • User wants a draft PR (mentions "draft", "--draft", or "草稿")

Prerequisites

git --version || { echo "ERROR: git not found"; exit 1; }
gh --version || { echo "ERROR: gh CLI not found. Install: brew install gh"; exit 1; }
gh auth status || { echo "ERROR: gh not authenticated. Run: gh auth login"; exit 1; }
git rev-parse --is-inside-work-tree || { echo "ERROR: Not a git repository"; exit 1; }
git remote -v | grep -q origin || { echo "ERROR: No remote 'origin' configured"; exit 1; }

If any prerequisite fails, report the error with the fix command and stop.

Instructions for Agent

Step 0: Check Prerequisites

Run the prerequisite checks above. If any fail, inform the user of the specific error and provide the fix command. Do NOT proceed until all pass.

Step 1: Analyze Current State

# Check for changes
git status --short

# Get current branch
git branch --show-current

# Get diff stats for commit message generation
git diff --stat
git diff --cached --stat

# Check recent commit style
git log --oneline -5

If no changes exist (git status --short is empty AND no staged changes), inform the user "Nothing to ship - working tree is clean" and stop.

Step 2: Smart Branch Handling

CURRENT_BRANCH=$(git branch --show-current)
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")

If on main/master/default branch:

  1. Generate a descriptive branch name from the changes: <type>/<short-slug>
  2. Types: feat, fix, refactor, docs, chore, style, test
  3. Create and switch to the new branch:
git checkout -b "<type>/<slug>"

If already on a feature branch: Continue on the current branch.

If on detached HEAD: Inform user and suggest creating a branch first. Stop.

Step 3: Stage All Changes and Generate Commit Message

git add -A

Generate a commit message by analyzing the staged diff:

  1. Run git diff --cached to understand the changes
  2. Determine the commit type from the changes:
Changes PatternType
New files/features addedfeat
Bug fix patternsfix
Restructuring without behavior changerefactor
Documentation/comments onlydocs
Test files onlytest
Config/build fileschore
CSS/styling onlystyle
  1. Format: <type>(<scope>): <description> (subject line < 72 chars)
  2. Add a body paragraph if changes are complex
  3. Do NOT ask user for confirmation - auto-generate and proceed

Step 4: Commit and Push

# Commit with the generated message (use HEREDOC for multi-line)
git commit -m "$(cat <<'EOF'
<type>(<scope>): <subject>

<optional body>
EOF
)"

# Push with upstream tracking
git push -u origin "$(git branch --show-current)"

If push is rejected (non-fast-forward): Inform user and suggest git pull --rebase origin <branch>. Do NOT force push.

Step 5: Create PR

Detect draft mode: If user mentioned "draft", "--draft", or "草稿", add --draft flag.

# Determine base branch
BASE_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")

# Check if PR already exists
EXISTING_PR=$(gh pr list --head "$(git branch --show-current)" --json url --jq '.[0].url' 2>/dev/null)

If PR already exists: Inform user and show the existing PR URL. Stop.

Otherwise, create the PR:

gh pr create \
  --base "$BASE_BRANCH" \
  --title "<PR title>" \
  --body "$(cat <<'EOF'
## Summary

<1-3 sentence overview of what this PR does and why>

## Changes

| File | Change |
|------|--------|
| `path/to/file` | Description of change |
| ... | ... |

## Impact Analysis

- **Scope**: <What areas are affected>
- **Risk**: <Low/Medium/High>
- **Breaking changes**: <None or description>
- **Dependencies**: <New deps added, if any>

## Test Plan

- [ ] <Specific test step>
- [ ] Verify no regressions

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)" [--draft]

PR body generation rules:

  • Summary: Synthesize from the commit message and diff context
  • Changes table: List every changed file with a one-line description
  • Impact Analysis: Assess scope, risk level, breaking changes based on the diff
  • Test Plan: Generate actionable test steps relevant to the changes

Step 6: Report Result

Display the final result:

✅ Shipped!
   Branch: <branch-name>
   Commit: <short-hash> - <commit subject>
   PR: <pr-url> [draft]
   Files: <n> changed (+<additions>, -<deletions>)

Error Handling

ErrorCauseSolution
git: command not foundGit not installedbrew install git or xcode-select --install
gh: command not foundGitHub CLI not installedbrew install gh
gh auth status failsNot authenticatedgh auth login
not a git repositoryNot in a repoNavigate to a git repository
No remote 'origin'No remote configuredgit remote add origin <url>
rejected - non-fast-forwardRemote has new changesgit pull --rebase origin <branch> then retry
gh pr create 422 errorPR already existsShow existing PR URL
permission deniedNo write accessCheck repo permissions
branch already exists on remoteName conflictAppend suffix: feat/slug-2
Detached HEADNot on a branchgit checkout -b <branch-name> first

Response Guidelines

  1. No confirmation prompts - "Ship" is the confirmation. Execute immediately.
  2. Show progress - Display each step as it completes.
  3. Auto-generate everything - Commit message, branch name, PR title, PR body.
  4. Always end with PR URL - The clickable PR link is the key output.
  5. Handle errors gracefully - Report what failed and how to fix it.
  6. Respect --draft - Create as draft PR when requested.
  7. Never force push - Suggest rebase on rejection.
  8. Never discard changes - Do not reset, stash, or drop user's work.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Gemini CLI

29.68%
按下载量换算84

Claude Code

19.62%
按下载量换算56

Codex

17.97%
按下载量换算51

OpenCode

10.53%
按下载量换算30

trae

7.85%
按下载量换算22

Cursor

3.35%
按下载量换算9

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills