ops-update
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ops-update":https://skillpi.com/zh/skills/deepskill-b611a2aa13cbc9358e33c292907f2b1a26508aab50e08d13f6e84459acb701b3。安装前核对上游来源和版本:https://github.com/Lifecycle-Innovations-Limited/claude-ops。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
OPS 按需更新:在用户请求“更新 ops 插件”或“升级……”等操作时使用此技能,执行按需的运维插件更新流程。
介绍来源: third_party · Lifecycle-Innovations-Limited · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: ops-update
description: "OPS on-demand: This skill should be used when the user asks to \"update ops plugin\", \"upgrade…"
argument-hint: '[--dry-run|--force|--to X.Y.Z|--no-prune|--no-patches|--no-rewrite|--no-localsync]'
allowed-tools:
- Bash
- Read
- AskUserQuestionOPS ► UPDATE — one-command local plugin upgrade
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).
Upgrades the local claude-ops plugin to the newest version published in the
ops-marketplace catalogue, then leaves the box clean: no stale cache dirs, no
dangling version-pinned paths.
Automatic daily check (detect only, never auto-installs)
bin/ops-update-check runs daily from the ops daemon (update-check service)
and answers one question: is a newer version published? It writes the verdict to
~/.claude/state/ops-update/update-available.json and exits 3 when an
update exists, 0 when current.
It never installs anything. Detection and application are deliberately split:
a background job that swapped the plugin out mid-session would break a working
install at the worst possible moment. Applying is always ops-update, run on
the user's word.
When you see that an update is available — because the state file says so, or because the user asks — surface it once and offer to apply it:
"${CLAUDE_PLUGIN_ROOT}/bin/ops-update-check" --json # current verdict, throttled to daily
"${CLAUDE_PLUGIN_ROOT}/bin/ops-update-check" --force # recheck now, ignoring the throttle
Then a single AskUserQuestion: [Update now] [Show what changed] [Not now].
Only on Update now do you run bin/ops-update. Never chain the two, and never
apply an update the user has not just agreed to in that exchange.
Checking on every skill call
The daily cron is the only thing that ever ran the check, so a box without the
daemon (Linux, or launchd never set up) heard about a new version exactly never.
bin/ops-pretool-skill-update closes that: a PreToolUse hook on ^Skill$
re-uses the same throttled check whenever an ops skill is invoked, so the first
skill call of the day says what the daily cron would have said.
Behaviour is set by auto_update in preferences.json (or $OPS_AUTO_UPDATE):
| Mode | What happens on a stale install |
|---|---|
off |
nothing |
notify (default) |
the session is told it is behind, and to run /ops:ops-update |
auto |
also runs bin/ops-update in the background, then asks for a reload |
auto is the one exception to the split above, and it stays opt-in for the
reason stated there: the running session keeps the old version until it reloads,
so the upgrade lands detached, behind a lock, and never prunes the tree the
session is rooted in. Turning it on is the user's decision, not yours — never
switch a box to auto on your own initiative.
Flags: --json (verdict on stdout), --no-fetch (compare against the catalogue
already on disk, no network), --force (ignore the once-a-day throttle),
--quiet (write state, print nothing — how the daemon runs it). Override the
cadence with $OPS_UPDATE_CHECK_INTERVAL in seconds.
The workhorse is ${CLAUDE_PLUGIN_ROOT}/bin/ops-update. It runs a 9-step loop:
- Refresh catalogue —
claude plugin marketplace update ops-marketplace(git-pulls the clone). - Resolve target — newest version from the refreshed
marketplace.json(or--to X.Y.Z). - Update plugin —
claude plugin update ops@ops-marketplace, with a force-reinstall fallback (rmcache +claude plugin install) for the Claude Code bug whereupdatereports "already latest" while the cache stays stale (anthropics/claude-code#61954). - Reapply patches — runs idempotent scripts in
scripts/cache-patches/against the new cache (empty when all fixes are upstream — the desired state). - Prune — deletes every old
cache/ops-marketplace/ops/<ver>/except the new one. - Rewrite — fixes stale
cache/.../ops/<oldver>/paths in live configs/scripts/systemd units only (never logs, memory, or transcripts — those use${CLAUDE_PLUGIN_ROOT}at runtime so they self-resolve). - Migrate — runs
ops-post-update-migrate(idempotent, per-version). It also maintains a stablecache/.../ops/current/directory (rsynced from the new version and repointed ininstalled_plugins.json) so Claude Code GC'ing the old versioned dir mid-session never causes "Plugin directory does not exist" hook errors. - Local sync — if a linked local source checkout of this repo is present under
~/Projects, fast-forwards itsmaintoorigin/mainso a dev clone never silently drifts behind the published release. Acts only on a cleanmain(never clobbers uncommitted WIP, a feature branch, or unpushed commits); a no-op when no checkout exists. Skip with--no-localsync. - Report — old→new, what changed, and that a restart /
/reload-pluginsis needed to load it. - Companions —
bin/ops-updatestep 9 runsscripts/install-companions.shagainstplugin-dependencies.json. Every companion withrequired: trueis co-installed when missing and updated on every ops-update:- desktop-act —
/ops:desktop+ captcha cascade - gsd —
/ops:flowproject mode,/ops:projects,/ops:go - gstack — skills clone for
/ops:flowad-hoc (/spec/review/qa/ship) - superpowers — merge / orchestrate / triage checkpoints
- feature-dev —
/ops:ops-feature-devSkip only with--no-companionsorOPS_SKIP_COMPANIONS=1.
- desktop-act —
# manual companion pass
bash "${CLAUDE_PLUGIN_ROOT}/scripts/install-companions.sh"
bash "${CLAUDE_PLUGIN_ROOT}/scripts/install-companions.sh --status"
# skip from ops-update:
${CLAUDE_PLUGIN_ROOT}/bin/ops-update --no-companions
How to run it
Steps 5–6 are destructive (prune + rewrite), so always dry-run first, show the plan, confirm, then apply (Rule 5).
1. Dry-run and show the plan
${CLAUDE_PLUGIN_ROOT}/bin/ops-update --dry-run
Present the output: current → target version, which cache versions would be
pruned, which files would be rewritten. If the dry-run shows
already on <ver> and nothing to prune/rewrite, tell the user the box is
already current and stop (offer --force only if they suspect a stale cache).
"already on <ver>" is a lie when the marketplace clone is stuck. Step 1
prints ✓ marketplace catalogue refreshed even when the underlying git pull
silently did nothing, so step 2 resolves a stale target and the whole run
no-ops. ~/.claude/plugins/marketplaces/ops-marketplace is a real checkout of
this repo; a dirty worktree (a local edit, stray .bak files) blocks the
fast-forward. Verified 2026-09-05: it sat 28 commits behind on v3.10.3 while
v3.10.5 was published, and the update reported the box current.
Whenever the target version does not match what you just released, check the
clone before reaching for --force:
cd ~/.claude/plugins/marketplaces/ops-marketplace
git fetch -q origin
git status -sb # ahead/behind AND porcelain lines
grep -o '"version": *"[^"]*"' .claude-plugin/marketplace.json | head -1
Repair: diff each modified file against origin/main first — a local edit that
is byte-identical to upstream is safe to drop, anything else is real work that
must be salvaged before you touch it. Then clean the tree,
git merge --ff-only origin/main, and re-run the dry-run. The target version
should now be the published one.
2. Confirm
Use AskUserQuestion before applying:
Upgrade local claude-ops <CUR> → <NEW>? (prunes N old cache versions, rewrites M files)
[Apply upgrade]
[Force re-materialise cache] ← only if same-version stale-cache is suspected
[Cancel]
3. Apply
${CLAUDE_PLUGIN_ROOT}/bin/ops-update # or: --force
Stream the step-by-step output. On success, surface the final line verbatim:
Restart Claude Code (or run
/reload-plugins) to load v<NEW>.
The running session will NOT see the new version until reload — this is a Claude Code constraint, not a failure.
Flags
| Flag | Effect |
|---|---|
--dry-run |
Report only; change nothing. Always run this first. |
--force |
Force-reinstall even when the CLI claims "already latest" (bug #61954). |
--to X.Y.Z |
Target a specific version instead of the catalogue's newest. |
--no-prune |
Keep old cache versions. |
--no-patches |
Skip the cache-patch reapply step. |
--no-rewrite |
Skip the stale-version-path rewrite step. |
--no-localsync |
Skip fast-forwarding a linked local source checkout's main. |
--no-companions |
Skip required companion co-install/update (desktop-act, gsd, gstack, superpowers, feature-dev). |
Mobile / SSH (Rule 7)
The bin auto-detects a non-TTY and drops colour; its output is already line-per-fact, so relay it as-is — no tables, no banners.
Notes
- Idempotent. Re-running on an already-current box is a near no-op (resolve → "already on <ver>" → nothing to prune/rewrite/migrate).
- Public repo / no secrets (Rule 0): the script reads only
$HOME/.claude/pluginsstate; it writes no personal data. - To publish a new version first, see
${CLAUDE_PLUGIN_ROOT}/bin/ops-release(bumpsplugin.json+marketplace.json+CHANGELOG, opens the release PR, tags).ops-releaseships it;ops-updatepulls it down locally.
版本历史
-
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.
-
v3.12.0
GitHub ↗
原版更新说明
### Changed Add /ops:ops-mix and evidence-only A&R mix-evidence mode using the configured Mixforge engine.
-
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.
-
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).
-
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 实验室的评测报告。
亮点
- 高价值/高频刚需,直接解决用户明确的核心任务痛点——ops插件的按需更新
- 显著提升日常高频场景的效率,自动化任务和信息聚合能力强
- 功能闭环完整,从检测、dry-run、确认到应用,覆盖端到端流程
亮点
- 触发词精准完整,覆盖多种变体,边界清晰
- description明确指出在用户请求“更新 ops 插件”、“升级……”时使用
- argument-hint提供了详细的参数提示,增强触发准确性
亮点
- Phase/步骤清晰,有出口条件,含端到端示例
- frontmatter完整,单文件≤500行
- 文档结构清晰,步骤详细,包含dry-run、确认、应用等完整流程
- 有详细的flags说明和mobile/ssh注意事项
亮点
- 工具来源明确,参数正确,覆盖主要异常
- 不可逆操作有确认机制(强调dry-run first和AskUserQuestion确认)
- 异常处理覆盖全面,如marketplace clone状态检查、force reinstall fallback等
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。