一键导入
clwatch
Detect coding tool updates at session start and merge changelog deltas into local reference files using a two-tier diff/refresh workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Detect coding tool updates at session start and merge changelog deltas into local reference files using a two-tier diff/refresh workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | clwatch |
| description | Detect coding tool updates at session start and merge changelog deltas into local reference files using a two-tier diff/refresh workflow. |
| metadata | {"openclaw":{"emoji":"📡","triggers":["session_start","manual"],"requires":{"bins":["clwatch"]}}} |
Detects new releases of tracked coding tools and merges updates into local reference files.
Uses the clwatch.payload.v1 schema from changelogs.info.
Run automatically at every session start. Must be silent when nothing changed.
clwatch diff --json{
"schema": "clwatch.diff.v1",
"updates": [
{
"tool": "claude-code",
"current": "1.0.30",
"latest": "1.0.35",
"scope": "small|medium|large",
"breaking": false,
"delta_summary": "..."
}
]
}
For each update, check scope:
small and breaking: false → apply direct metadata patch (version, date, install command in reference file). No LLM merge needed.medium, large, or breaking: true → queue for Tier 2.If any tools queued for Tier 2, proceed immediately.
Fetch the full payload:
clwatch refresh <tool> --json
Fallback: curl -sf https://changelogs.info/api/refs/<tool>.json
Locate the local reference file (see Reference File Discovery below).
Read the current reference file content.
Apply the merge prompt template (templates/merge-prompt.md) with:
If breaking: true: surface changes to the user and wait for confirmation before applying.
Write the merged content back to the reference file.
Update local version tracking: clwatch ack <tool> <version>
Find the agent's existing reference file for a tool:
references/<tool-slug>-features.md (canonical path)references/<tool-slug>**<tool-slug>*features**<tool-slug>*reference*references/.references/<tool-slug>-features.md using the templates/new-reference.md template populated from the payload.The merge prompt is defined in templates/merge-prompt.md. It instructs the LLM to:
delta.new_features, delta.new_commands, delta.new_flagskey_details, descriptions)(deprecated since vX.Y.Z — use X instead)⚠️ BREAKINGWhen Tier 2 is triggered for a tool, run these steps:
bash <skill-dir>/scripts/check-updates.sh
Exit 0 = everything current (silent). Exit 1 = updates available, proceed below.
bash <skill-dir>/scripts/tier2-merge.sh <tool-slug>
The script outputs a fully rendered merge prompt with the delta and current reference file content embedded.
BREAKING=YES in the output)Pass the rendered merge prompt to yourself (the agent LLM) as a user message. The prompt instructs you to output only the updated file content.
Write the LLM output back to the reference file. The target path is in the HTML comment at the top of the merge script output:
<!-- clwatch:tier2-merge tool=<slug> ref=<path> ... -->
Create the references/ directory if it doesn't exist.
clwatch ack <tool-slug> <new-version>
This records the version so Tier 1 won't re-trigger for the same update.
Install the skill for one or more agents:
# User-level install for all agents
bash <skill-dir>/scripts/install-skill.sh
# Project-level install for Claude Code only
bash <skill-dir>/scripts/install-skill.sh --scope project --agent claude
# User-level install for a specific agent
bash <skill-dir>/scripts/install-skill.sh --agent gemini
Supported agents: claude, codex, gemini, openclaw, all (default).
See clwatch-config.example.json:
| Field | Description |
|---|---|
tools | Tool slugs to track |
manifestUrl | Manifest endpoint |
referenceDir | Where reference files live |
tier2Threshold | Minimum scope to trigger Tier 2 (small, medium, large) |
notifyOnBreaking | Always surface breaking changes to user |
stateFile | Path to version state file |
clwatch binary not found: log once, skip silently. Do not block the session.