skills/sync-changelog/SKILL.md
将 changelogs/cn.json 的当前版本日志同步为多语言版本:生成适合英文母语者阅读的英文版、适合繁体中文用户阅读的繁中版、适合日语母语者阅读的日文版,分别更新 changelogs/en.json、changelogs/tw.json、changelogs/ja.json,并在当前项目创建 release 提交(包含 package.json 与四种语言 changelog)。用于用户提出"同步版本日志""生成并同步 changelog""发布前同步多语言日志"等请求。仅创建 commit,不执行 push。
npx skillsauth add hellodigua/chatlab sync-changelogInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
按以下流程执行,任何一步失败都立即停止,不做 push。
git status --porcelain。package.json、changelogs/cn.json(这两个文件可作为本次任务前置输入)。main:
main,仅在工作区干净时执行 git checkout main。可复用脚本:scripts/preflight_main_clean.sh 当前仓库建议调用:
scripts/preflight_main_clean.sh . "package.json,changelogs/cn.json"
changelogs/cn.json 读取第一个对象作为当前版本。version(例如 0.9.6)。summary 与 changes),并以这次读取结果作为唯一翻译源。generate-changelog 或任意草稿步骤产出的缓存文案;若用户在生成后手动修改过中文日志,必须以用户修改后的文件内容为准。changelogs/en.jsonchangelogs/tw.jsonchangelogs/ja.jsonversion/date/summary/changes(type/items)。version、date、changes.type。changelogs/en.jsonchangelogs/tw.jsonchangelogs/ja.jsonsummary 与 changes.items 的语义都应来自最新中文文件内容,不得沿用旧版本措辞。在提交前,将 4 个 JSON 渲染为可读的 Markdown 文件:
node scripts/changelog-to-markdown.mjs
prettier --write changelogs/*.md
生成结果:changelogs/cn.md、en.md、tw.md、ja.md(全量幂等,每次重写)。
package.jsonchangelogs/cn.json、en.json、tw.json、ja.jsonchangelogs/cn.md、en.md、tw.md、ja.mdrelease: v<version>(示例:release: v0.9.6)。可复用脚本:scripts/commit_release_changelogs.sh
输出以下信息给用户:
references/english-release-style.mdreferences/traditional-chinese-release-style.mdreferences/japanese-release-style.mdscripts/preflight_main_clean.shscripts/commit_release_changelogs.shscripts/changelog-to-markdown.mjsdocumentation
根据当前项目 package.json 版本与 Git 提交记录生成中文版本日志。用于用户提出"生成版本日志""生成 changelog""发布新版本并生成更新记录"等请求时,自动读取当前版本号、定位上一版本、汇总版本区间 commit,并更新 changelogs/cn.json(新增版本、生成中文 summary、按类型归类变更)。
tools
Use when 用户希望根据一句自然语言需求创建新的 ChatLab assistant 配置、assistant Markdown、分析助手模板,或需要为群聊/私聊场景整理可写入 assistant/<locale>/<assistant-id>.md 的多语言助手文件。
documentation
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
documentation
Maintain the OpenClaw memory wiki vault with deterministic pages, managed blocks, and source-backed updates.