workflow-update

A procedure for checking and updating Workflow Agent plugins across their different installation methods. It determines whether the plugin is managed by a host such as Claude Code or installed manually, then uses the matching version source.

In plain words
What is it for?
Use it when checking a Workflow plugin's version, deciding how it should be updated, or diagnosing behaviour that differs from the online API.
Why use it?
It avoids comparing against the wrong version list, editing host-managed files, or failing to restart after an update.

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/go1c/workflow-plugin/workflow-update
Any agent
npx skills add Go1c/workflow-plugin --skill workflow-update
Clone the repo
git clone --depth 1 https://github.com/Go1c/workflow-plugin

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,443 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.00050 $0.01443
Opus 5 $0.00025 $0.00722
Sonnet 5 $0.00010 $0.00289
Haiku 4.5 $0.00005 $0.00144

Measured yesterday against content hash 5bd67e38a6e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workflow-update 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 yesterday.

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.

skills/workflow-update/SKILL.md · 76 lines

How it starts

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

workflow-update — 检查与更新插件

先判安装形态,再查版本。 插件有两条分发渠道,版本真值不是同一个:宿主托管安装(Claude Code marketplace)认公开仓的 plugin.json,手动安装(Codex / 官网脚本)认官网 version.json。两条渠道的发布节奏可以脱节,拿另一条渠道的版本号判自己,会得出「已是最新」甚至反向降级的错误结论。

1. 判断安装形态

本技能所在路径,按下面的顺序判,先命中先算

0. 源码态 —— 向上两级既是插件根、又带 .gittests/(你在开发这个插件本身,不是在用它)→ 提示无需更新,结束。源码态归 git 管,不归本技能;这一条必须先判,否则插件仓库自己的工作副本会被下面的清单特征误判成宿主托管。

A. 宿主托管安装 —— 技能路径在 ~/.claude/plugins/cache 或其他客户端的插件缓存下 → 走第 2 节。 没有缓存路径特征、但向上两级是插件根(存在 plugin.json.claude-plugin/plugin.json),且不在 B 列出的手动安装目录里,同样按 A 处理。

B. 手动安装 —— 技能目录直接落在 ~/.codex/skills.agents/skills~/.claude/skills 下 → 走第 3 节B 的路径特征优先于 A 的清单特征:项目里恰好放着一份 plugin.json,不改变这是手动安装的事实。

2. 宿主托管:交给宿主更新

这条路不读 version.json 那份清单只服务手动安装渠道,可能滞后于 marketplace 发布;宿主托管的版本真值是 marketplace 公开仓里的 plugin.json,由宿主自己拉取比对。用官网清单判宿主托管安装,最常见的结果是误报「已是最新」,用户永远升不上去。

本技能不自改插件目录——宿主管理的目录由宿主维护,绕过它手改会造成状态不一致。改为提示用户走宿主自己的机制:

  • Claude Code:先刷新 marketplace,再更新插件。
claude plugin marketplace update workflow-plugin
claude plugin update workflow@workflow-plugin --scope user

也可以用 /plugin 界面,或等 marketplace autoUpdate 自己生效。更新后必须重启会话才加载新版本——不提醒的话用户会以为没升成功。

  • 其他 Agent Plugins 客户端:用各自的安装器重装(例如 npx plugins add 那条路径)。

收尾读 claude plugin list(或宿主对应的列表命令)确认版本已变,向用户报告新旧版本号。

3. 手动安装:比对官网版本

本技能目录下的 VERSION 文件(安装包内由构建器生成,纯文本一行版本号)。

  • 没有 VERSION 文件 = 你运行的是源码态(开发仓里直接用),提示无需更新,结束。

抓取:

https://workflow.games/plugin/version.json?cb=<当前 epoch 秒>

必须带 cb 参数(当前时间戳)绕 CDN 缓存,否则可能拿到旧版本误判「已最新」。返回含 versionnotes(更新说明)与 files(文件清单地址)。

按语义化版本逐段比大小,不做字符串相等判断0.10.0 > 0.9.0,字符串比较会判反):

  • 线上 == 本地 → 报告「已是最新(<版本>)」,结束。
  • 线上 < 本地 → 本地更新(多半是源码态或线上发布滞后)。报告两个版本号并结束,绝不"更新"——照旧逻辑跑会把新版覆盖成旧版,是降级不是升级。
  • 线上 > 本地 → 才进入第 4 节。

4. 自更新流程(仅手动安装)

  1. 抓取 version.jsonfiles 指向的文件清单(同样加 cb 参数)。
  2. 逐文件下载到临时目录(不直接写目标)。
  3. 逐一校验 sha256:任何一个不符 → 立即中止并报告,不落盘任何文件
  4. 全部通过后:把现有 workflow-* 技能目录改名加 .bak-<旧版本> 后缀备份,再把新文件就位。
  5. 读新 VERSION 确认版本已变,向用户转述 version.jsonnotes

Read the full file on GitHub · 76 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 76 lines · 50 tokens per session scan A 5bd67e38a6e8

Subscribe to this mod's changes

workflow-update is a skill published in the GitHub repository Go1c/workflow-plugin (2 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 1,443 once invoked, about $0.0003 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-31.