ops-ship

按需运维(发布部署):在用户请求“部署运维插件”“合并所有 PR 并……”等操作时使用此技能,执行按需的部署或发布流程。

仓库最近推送
GitHub Stars
564
Forks
64
Issues / PRs
6

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ops-ship":https://skillpi.com/zh/skills/deepskill-5ff71d1796e4b4c6eb91794685bd5b8dcc298a27e51a9359adf1755eb0b1d306。安装前核对上游来源和版本:https://github.com/Lifecycle-Innovations-Limited/claude-ops。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

按需运维(发布部署):在用户请求“部署运维插件”“合并所有 PR 并……”等操作时使用此技能,执行按需的部署或发布流程。

0 下载

介绍来源: third_party · Lifecycle-Innovations-Limited · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: ops-ship
description: "OPS on-demand: This skill should be used when the user asks to \"ship ops plugin\", \"merge all PRs and…"
argument-hint: '[--type patch|minor|major] [--version X.Y.Z] [--notes "changelog body"] [--base BRANCH] [--no-update] [--dry-run]'
allowed-tools:
  - Bash
  - Read
  - AskUserQuestion
disable-model-invocation: true

OPS ► SHIP — merge-all-PRs → release → update, in one command

Load ops-rules before acting. Public repo (no personal data). Outbound: one draft → one approval → one send. If AskUserQuestion / Workflow are missing, follow Rule 10 in ops-rules (Hermes: numbered options / two-turn Telegram card; delegate_task).

The whole release chain in a single shot:

  1. Sweep — admin squash-merge every open, non-draft PR targeting the base branch (default main), overriding required checks/reviews (gh pr merge --admin). A failed merge aborts before the release — no partial ship.
  2. Release — delegates to bin/ops-release: bump plugin.json + marketplace.json registry + package.json + CHANGELOG, open the release PR, admin-merge to main, tag vX.Y.Z.
  3. Update — runs the installed ops-update to pull the new version onto this box (skip with --no-update).

ops-ship = sweep + /ops:ops-release + /ops:ops-update in one. For just the publish step use /ops:ops-release; for just the pull step use /ops:ops-update.

⚠️ It admin-merges EVERY open non-draft PR — review the sweep first

By design the sweep is aggressive: it admin-merges all open non-draft PRs on the base branch, bypassing required checks (red CI, missing reviews) — exactly what you want for a trusted solo/own-org repo, dangerous if an unrelated or half-baked PR is open. So always dry-run first and show which PRs it will merge before applying (Rule 5 — bulk merge + outward-facing release + tag is high-impact and hard to reverse). It only skips drafts.

⚠️ Run it from the REPO CHECKOUT, not the cache

Like ops-release, ops-ship resolves its targets relative to its own path and needs REPO_ROOT/.claude-plugin/marketplace.json, which the plugin cache lacks. Run the copy inside a git checkout of the repo:

SHIP=""
for d in ~/Developer/repos/claude-ops ~/Projects/claude-ops-workspace/claude-ops ~/Projects/claude-ops/claude-ops "$HOME"/Projects/*/claude-ops; do
  if [ -f "$d/.claude-plugin/marketplace.json" ] && [ -x "$d/claude-ops/bin/ops-ship" ]; then
    SHIP="$d/claude-ops/bin/ops-ship"; break
  fi
done
[ -n "$SHIP" ] || { echo "no claude-ops checkout with marketplace.json found"; exit 1; }

How to run it

1. Dry-run — show the sweep + the version bump

"$SHIP" --type patch --dry-run

Present: the list of open PRs it will admin-merge, the version bump (current → new), the manifests touched, and the CHANGELOG block. (--notes defaults to a bullet list of the merged PR titles; pass --notes "…" to override.)

2. Confirm

Use AskUserQuestion before applying (this merges PRs AND publishes):

Ship: admin-merge N open PR(s) on main, then release <CUR> → <NEW> + tag?
  [Ship it]
  [Dry-run only]
  [Cancel]

3. Apply

"$SHIP" --type patch                 # or --version X.Y.Z, --notes "…", --no-update

Stream the step output (sweep → release → update). On success it ends with the new tag and the reload reminder. Surface the final line verbatim:

Restart Claude Code (or run /reload-plugins) to load v<NEW>.

Flags

Flag Effect
--type patch\|minor\|major Semver bump for the release (default patch).
--version X.Y.Z Exact target version instead of bumping.
--notes "…" CHANGELOG body. Defaults to a bullet list of the merged PR titles.
--base BRANCH Base branch for the PR sweep only (must be main; ops-release always publishes to main).
--no-update Don't run ops-update afterwards (publish only).
--dry-run Report only — list PRs + the bump, change nothing. Always run this first.

Notes

  • PRs target main and are squash-merged with --admin (own-org PRs can't be self-approved; admin bypasses the review/required-check gates).
  • REST quota: the sweep and ops-release use gh (GitHub REST). If REST is exhausted (HTTP 403 rate-limit), wait for the reset window — ops-ship aborts before releasing if any merge fails rather than partial-shipping.
  • Publish ≠ loaded. The running session won't see the new version until ops-update (pull, run automatically unless --no-update) and /reload-plugins (load).
  • Siblings: /ops:ops-release (publish only), /ops:ops-update (pull only).

版本历史

  1. v3.12.1 GitHub ↗
    原版更新说明

    ### Fixed - ops-task-reminder: the portable lock now runs the whole counter transaction under a real fcntl.flock, so one worker can no longer remove another's fresh lock and lose counter updates.

  2. v3.12.0 GitHub ↗
    原版更新说明

    ### Changed Add /ops:ops-mix and evidence-only A&R mix-evidence mode using the configured Mixforge engine.

  3. v3.11.0 GitHub ↗
    原版更新说明

    ### Changed Release safety, maintenance and inbox fixes from #1033: passive daemon monitoring, timezone-safe AWS audit dates, fail-closed release merge gates (same-head CI, Copilot review, resolved threads), progressive inbox with attachment and archive read-back proofs, and gate-only outbound wording in ops-desk and ops-leadgen.

  4. v3.10.29 GitHub ↗
    原版更新说明

    ### Fixed - `ops-speedup --clean` stays under 60s: on macOS it skips the slow login-items query (#1036); on Linux it skips the unused disk-reclaim scan and keeps the page cache unless `--aggressive` is set (#1035). - `ops-inbox` shows validated drafts as soon as each one is ready instead of after the whole scan (#1031). ### Changed - Hooks `ops-pretool-skill-update` and `ops-task-reminder` run async; the reminder takes a per-session lock so concurrent runs no longer lose counts, and it now also resets on Task* tools (#1032).

  5. v3.10.28 GitHub ↗
    原版更新说明

    ### Changed ops-ar: Cyanite schema drift (fileUploadRequest id, ID! upload var), real auth test via libraryTracks, webhook must verify HMAC-SHA512 Signature, bpmRangeAdjusted vs bpmPrediction, Soundcharts app-id/key pairing.

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 高价值运维自动化工具,一键合并PR并发布插件
  • 解决开发者高频刚需场景,显著提升发布效率
触发精准95/100

亮点

  • 触发词精准完整,覆盖多种使用场景
  • argument-hint 提供完整参数说明
结构规范85/100

待提升项

  • 缺少显式 When to Use 章节 原报告严重程度:轻微

    文档结构良好但缺少显式的 When to Use 章节

    改进建议:建议添加显式的 When to Use 章节以提升可读性

执行可靠95/100

亮点

  • 工具来源明确,参数正确
  • 覆盖主要异常情况,有确认机制
  • 提供 dry-run 模式降低风险
证据可验 (前四项均值)92/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。