← 返回 Skills 市场
hussein1362

Post-Update Awareness

作者 Hussein Nourelddine · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
46
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install post-update-awareness
功能描述
After an OpenClaw version change, read the CHANGELOG entry pinned to the installed version and surface user-relevant changes — new tools, breaking changes, o...
使用说明 (SKILL.md)

Post-Update Awareness

When OpenClaw is updated, the agent should not be the last to know. This skill reads the project CHANGELOG for the exact installed version, distills what changed for the user, and surfaces it once.

When to use

Run this skill when any of the following is true:

  1. The user asks "what changed in this update?" or "what's new in OpenClaw?"
  2. A first-class update flow finishes (openclaw update, openclaw plugins update, or a package-manager update).
  3. openclaw -V returns a value different from the version recorded in the skill's state file.

Do not run on every heartbeat. Run once per detected version change, then persist the new version so subsequent heartbeats stay quiet.

Scope and non-goals

This skill only:

  • Reads existing CHANGELOG content pinned to the installed version
  • Reports it to the user
  • Optionally probes for known-flaky optional native deps mentioned in the entry

This skill does not:

  • Apply updates (openclaw update already handles that)
  • Modify configuration
  • Install missing dependencies without explicit user confirmation
  • Roll back versions

Workflow

1) Read the current installed version

{ "tool": "exec", "command": "openclaw -V" }

Parse the version token (e.g. OpenClaw 2026.5.3-1 (2eae30e)2026.5.3-1).

2) Compare against the last-known version

The skill maintains a small JSON state file at ${OPENCLAW_STATE_DIR:-$HOME/.openclaw}/state/post-update-awareness.json:

{ "lastKnownVersion": "2026.5.2", "lastSurfacedAt": "2026-05-04T13:15:00Z" }
  • If the file does not exist → write the current version as the baseline and exit silently. (No CHANGELOG dump on first run; only on actual transitions.)
  • If currentVersion === lastKnownVersion → exit silently.
  • If currentVersion !== lastKnownVersion → continue.

3) Fetch the CHANGELOG entry pinned to the installed version

Always pin to the installed version, never read main. The release tag for OpenClaw matches the version with a v prefix.

Try in order:

  1. Local install copy (fastest, offline-friendly): typical paths are platform-dependent. Try the directory of the npm install root first:

    {baseDir}/scripts/find-local-changelog.sh
    

    This script searches common install locations and prints the path if found.

  2. Remote, pinned to tag:

    curl -fsSL "https://raw.githubusercontent.com/openclaw/openclaw/v\x3CcurrentVersion>/CHANGELOG.md"
    

    The v prefix is required. If the remote 404s (e.g. a brand-new release tag hasn't propagated yet), retry once after 30 seconds before giving up.

  3. Fallback (only if both above fail): query the GitHub Releases API for that exact tag:

    curl -fsSL "https://api.github.com/repos/openclaw/openclaw/releases/tags/v\x3CcurrentVersion>"
    

    Use the body field as the changelog content.

If all three fail, surface a single line: "OpenClaw was updated to vX, but I couldn't fetch the changelog to summarize what changed." Do not invent content.

4) Extract the section for the new version

The CHANGELOG uses ## \x3Cversion> as section headings. Extract only the section between ## \x3CcurrentVersion> and the next ## heading. Do not dump the whole file.

If the section heading isn't found in the pinned changelog (rare — usually means the release tag exists but the changelog hasn't been updated for it), use the Unreleased section as a fallback only when the pinned-tag fetch came from main. When pinned to an actual release tag, prefer "no detailed notes available" over guessing.

5) Distill into 3 buckets

Group items into:

  • 🆕 New for you — new tools, commands, channels, capabilities the agent could benefit from. Filter ruthlessly to what an end-user agent actually touches; skip internal refactor lines, build-system changes, and CI plumbing.
  • ⚠️ Breaking or removed — anything that changes current behavior: removed config keys, renamed CLI commands, deprecated features, security tightenings.
  • 🔧 May need attention — optional native dependencies (sharp, ffmpeg, node-pty, libvips, etc.), peer-dep notes, post-install scripts, config-format migrations.

Each bucket: 1–4 bullets max. Omit empty buckets entirely.

6) Probe known-flaky optional deps (best effort)

If the "May need attention" bucket mentions a known native module, probe non-blockingly:

{baseDir}/scripts/probe-optional-dep.sh sharp

The script returns OK, MISSING, or ERROR \x3Cmsg>. Annotate findings inline in the surfaced summary as ❌ sharp (image processing) — not installed. Do not auto-install.

Default known list (extend as the project evolves):

  • sharp — image attachment optimization
  • ffmpeg-static / system ffmpeg — audio/video transcoding
  • node-pty — terminal/PTY tools

7) Surface to the user

Send one brief message via the active channel.

OpenClaw updated to \x3CnewVersion> (was \x3ColdVersion>).

🆕 New for you:
- \x3Cbullet>

⚠️ Breaking or removed:
- \x3Cbullet>

🔧 May need attention:
- ❌ sharp (image processing) — not installed; run: \x3Cinstall command>

Full notes: https://github.com/openclaw/openclaw/blob/v\x3CnewVersion>/CHANGELOG.md

Hard cap: ~15 lines. Drop empty sections. If everything is quiet:

OpenClaw updated to \x3CnewVersion>. Nothing in the changelog requires action on my end.

8) Persist new state

Write the new version + surfaced timestamp to the state file. Subsequent heartbeats stay silent unless the version changes again.

Voice

This is an operational notice, not a marketing email. Terse, factual, no celebratory language.

  • ✅ "OpenClaw updated to 2026.5.3-1. New: agent can now use the talk realtime voice tool. Watch: optional sharp is not installed; some image replies will fall back to original-size send."
  • ❌ "🎉 Exciting news! OpenClaw has been upgraded with brand-new features..."

Failure modes

Situation Behavior
CHANGELOG section missing for the version One-line "OpenClaw updated to vX. No detailed notes for this tag yet — see GitHub Releases for raw notes."
No internet, no local copy Same as above.
State file write fails Log error; surface still happens; next run will re-surface.
Probe script not executable / shell unavailable Skip the probe section; report changes without dep status.

Why this exists

OpenClaw releases are well-documented in CHANGELOG.md and per-version GitHub Releases, but the running agent has no built-in mechanism to consume that information after an update. Real-world consequence: when an update introduces a new optional native-dep requirement (e.g. sharp for image attachment optimization), the user discovers it only when an unrelated workflow fails.

This skill closes that loop using the existing CHANGELOG as source of truth, pinned to the installed version so the agent reads the changelog that matches what's actually running — not whatever has been merged since.

安全使用建议
This skill looks safe to install if you want post-update release-note summaries. Be aware that it will run a few local commands, contact GitHub for pinned changelog data, load known optional Node dependencies to test them, and keep a small local state file so it does not notify repeatedly.
功能分析
Type: OpenClaw Skill Name: post-update-awareness Version: 0.1.0 The skill is designed to provide users with a summary of changes after an OpenClaw update by reading the CHANGELOG.md file. It uses standard tools like `curl` to fetch release notes from the official GitHub repository (pinned to the specific version) and local shell scripts to verify the installation of optional native dependencies. The logic is transparent, follows its stated purpose, and includes safety measures such as using heredocs in `probe-optional-dep.sh` to prevent command injection.
能力评估
Purpose & Capability
The capabilities fit the stated purpose: local version checking, pinned changelog retrieval, optional dependency probing, and a one-time user summary. No credential use, configuration mutation, auto-update, rollback, or auto-install behavior is shown.
Instruction Scope
The visible instructions limit execution to user requests, completed update flows, or detected version changes, and explicitly say not to run every heartbeat. The provided SKILL.md content is truncated near the final persistence step, so the tail of the instruction file was not fully reviewable.
Install Mechanism
There is no install-time execution spec. The skill does include two shell helper scripts and lists openclaw, curl, and node as required binaries. Source provenance is limited because the source is marked unknown and no homepage is provided.
Credentials
The environment access is proportionate to the purpose: it runs local CLI/helper commands, searches common OpenClaw install locations for CHANGELOG.md, and makes HTTPS requests to GitHub for pinned release notes. It does not request credentials or broad local document access.
Persistence & Privilege
The skill keeps a small local state file under the OpenClaw state directory containing the last known version and timestamp. This is disclosed and used to avoid repeated notifications; no elevated privileges or background worker are shown.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install post-update-awareness
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /post-update-awareness 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release.
元数据
Slug post-update-awareness
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Post-Update Awareness 是什么?

After an OpenClaw version change, read the CHANGELOG entry pinned to the installed version and surface user-relevant changes — new tools, breaking changes, o... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 46 次。

如何安装 Post-Update Awareness?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install post-update-awareness」即可一键安装,无需额外配置。

Post-Update Awareness 是免费的吗?

是的,Post-Update Awareness 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Post-Update Awareness 支持哪些平台?

Post-Update Awareness 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Post-Update Awareness?

由 Hussein Nourelddine(@hussein1362)开发并维护,当前版本 v0.1.0。

💬 留言讨论