Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问许可证需确认审计提醒

ship发布交付

Agent Skill

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

总安装

388

周安装

16

GitHub Stars

32

下载量

127
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/steveclarke/dotfiles --skill ship

简介

ship 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于研究检索类任务,如发布交付相关信息的查找和筛选。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前建议确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 可结合原始 README 继续核验具体用法和功能细节。

SKILL.md

Ship

Run the full pre-merge pipeline in one command: simplify → code review → adversarial review → finalize → update docs → readiness dashboard → create PR.

No steps to remember. /ship handles everything.

Parse Arguments

Check $ARGUMENTS for flags:

  • --status — show the readiness dashboard only, don't run anything
  • --adversarial — force adversarial review even on small changes

Step 1: Detect Project Context

# Project name from git remote (or directory name as fallback)
PROJECT="$(basename "$(git remote get-url origin 2>/dev/null | sed 's/.*\///' | sed 's/\.git$//')" 2>/dev/null || basename "$PWD")"

# Current branch
BRANCH="$(git branch --show-current)"

# Base branch — try existing PR first, then repo default
BASE="$(gh pr view --json baseRefName -q .baseRefName 2>/dev/null || gh repo view --json defaultBranchRef -q .defaultBranchRef.name 2>/dev/null || echo main)"

# Readiness script
READINESS="$HOME/.claude/skills/ship/scripts/readiness.sh"

Abort if on the base branch. Nothing to ship — tell the user to create a feature branch first.

Ensure readiness directory exists:

"$READINESS" dir "$PROJECT"

Step 2: Status-Only Mode

If --status was passed:

"$READINESS" dashboard "$PROJECT" "$BRANCH"

Print the dashboard and stop. Do not run any pipeline steps.

Step 3: Run the Pipeline

For each step below, follow this pattern:

  1. Check readiness — run "$READINESS" check "$PROJECT" "$BRANCH" <skill>
  2. If exit code 0 (clean within 2 hours) — the check outputs the relative time. Print: "✓ <Step>: SKIPPED (done <time>)" and move to the next step.
  3. If exit code 1 (not clean) — invoke the skill, then log the result.

Step 3a: Simplify

Use the Skill tool to invoke simplify. This is a plugin skill that reviews changed code for reuse, quality, and efficiency, then fixes issues directly.

After it completes, log the result:

"$READINESS" log "$PROJECT" "$BRANCH" simplify clean

If the skill reports issues it couldn't resolve, log failed instead of clean.

Step 3b: Code Review

Use the Skill tool to invoke code-review:code-review (the plugin skill). This dispatches 5 parallel review agents, scores findings by confidence, auto-fixes mechanical issues, and asks for judgment on critical findings.

Disambiguation: If multiple code-review-style skills are available (e.g. a project-local skill like *-code-review, review, or superpowers:requesting-code-review), do not guess. Stop and ask the user which one to run. The intended default is code-review:code-review, but project-local review skills may be preferred in some codebases.

After it completes, log the result with metadata:

"$READINESS" log "$PROJECT" "$BRANCH" code-review clean \
  critical=0 suggestions=2 auto_fixed=2 coverage_ok=true

Replace the numbers with actual counts from the review output. If there are unresolved critical findings, log status: failed.

If code review fails (unresolved critical findings), stop the pipeline. Show the dashboard and report the failure.

Step 3c: Adversarial Review (Optional)

Determine if adversarial review should run:

# Check diff size
DIFF_LINES="$(git diff --stat "$BASE"..."$BRANCH" | tail -1 | grep -o '[0-9]* insertion' | grep -o '[0-9]*')"

Run adversarial review if:

  • --adversarial flag was passed, OR
  • DIFF_LINES exceeds 500

If neither condition is met, skip this step (it's informational, not required).

If running, use the Skill tool to invoke adversarial-review with argument --pr.

After it completes, log the result:

"$READINESS" log "$PROJECT" "$BRANCH" adversarial-review clean \
  rounds=2 result=clean

Replace with actual values from the review output.

Step 3d: Finalize

Use the Skill tool to invoke finalize. This runs lint, tests, code quality sweep, documentation check, UI audit (if applicable), and git hygiene.

After it completes, log the result:

"$READINESS" log "$PROJECT" "$BRANCH" finalize clean \
  tests_passed=true lint_passed=true

If tests fail or lint fails, log the appropriate fields as false and status: failed. If finalize fails, stop the pipeline. Show the dashboard and report the failure.

Step 3e: Update Docs (Project-Specific)

Check if the current project has an update-docs skill:

ls .claude/skills/update-docs/SKILL.md 2>/dev/null

If found, use the Skill tool to invoke update-docs.

After it completes, log the result:

"$READINESS" log "$PROJECT" "$BRANCH" update-docs clean

If not found, skip this step. It's informational — absence doesn't block shipping.

Step 4: Show Readiness Dashboard

"$READINESS" dashboard "$PROJECT" "$BRANCH"

Print the full dashboard output.

Large changeset advisory: If the diff exceeds 500 lines and adversarial review was not run, add a note:

"Consider running /adversarial-review — this is a large changeset (N lines)"

Step 5: Verdict and PR Creation

Read the dashboard verdict.

If CLEARED

Proceed to create the PR:

  1. Push the branch: git push -u origin "$BRANCH"
  2. Generate PR description:

- Read the commit log: git log --oneline "$BASE".."$BRANCH" - Read the readiness log for a summary of what was reviewed - Write a PR title (short, imperative, under 70 characters) - Write a PR body with: - Summary of changes (from commits) - Readiness summary (e.g., "Code review: clean, 2 auto-fixed. Finalize: tests pass, lint clean.") - Test plan

  1. Create the PR: gh pr create --title "..." --body "$(cat <<'EOF' ## Summary... ## Readiness... ## Test Plan... EOF)"
  2. Report:

- Print the PR URL - Check if the project has a release skill: ls.claude/skills/release/SKILL.md 2>/dev/null - If found: "When ready to deploy, run /release"

If NOT CLEARED

Show what's missing or failed:

  • List each required gate that isn't DONE
  • Ask: "Ship anyway? (y/n)"
  • If user confirms: proceed to PR creation
  • If user declines: stop

Error Handling

  • No git remote: Run the full pipeline (steps 3a-3e). At step 5, report: "No git remote configured. Run git remote add origin <url> or gh repo create, then run /ship again — all steps are cached and will be skipped."
  • gh not authenticated: Report: "GitHub CLI not authenticated. Run gh auth login."
  • Step failure: Log status: failed, show dashboard with failure visible, stop the pipeline. Report what failed and why. User fixes the issue and runs /ship again — passed steps are skipped via smart skip.
  • Ctrl+C / cancel: Readiness file only has entries for completed steps. Next /ship run picks up naturally.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

33.31%
按下载量换算42

Claude

32.16%
按下载量换算41

Cursor

21.08%
按下载量换算27

Gemini CLI

8.82%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills