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.mjsdevelopment
Convert unsupported local chat exports into validated ChatLab JSONL or JSON by inspecting their structure, writing and running a local Node.js or Python converter, and verifying record counts before import. Use when ChatLab cannot recognize a CSV, HTML, TXT, XML, SQLite/database, vendor-specific JSON/JSONL, archive, or other chat export format, or when a user asks an agent to adapt an unknown chat format for ChatLab.
development
将 ChatLab 暂不支持的本地聊天导出转换为经过验证的 ChatLab JSONL 或 JSON:分析源文件结构,编写并运行本地 Node.js 或 Python 转换脚本,并在导入前核对记录数量。当 ChatLab 无法识别 CSV、HTML、TXT、XML、SQLite/数据库、厂商自定义 JSON/JSONL、压缩包等聊天导出,或用户要求 Agent 适配未知聊天格式时使用。
tools
Safely preview and import local chat export files into ChatLab through the chatlab CLI. Use when a user asks an external agent to import, re-import, or incrementally update ChatLab from a local QQ, WeChat, Telegram, WhatsApp, LINE, Discord, Instagram, Google Chat, ChatLab JSON/JSONL, or other supported chat export.
tools
通过 chatlab CLI 安全预览并将本地聊天导出文件导入 ChatLab。当用户要求外部 Agent 从本地 QQ、微信、Telegram、WhatsApp、LINE、Discord、Instagram、Google Chat、ChatLab JSON/JSONL 或其他受支持的聊天导出文件执行首次导入、重新导入或增量更新时使用。