微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🌐

多语言客服知识库一键同步

Multilingual KB Sync · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
专业技能 安全 A 级 作者 terrycarter1985 公开目录收录
196 下载 0 安装 762 收藏 0 浏览

简介

面向跨国客服团队的本地化工具,支持将多语言回复模板同步至飞书 Wiki 与 GitHub,确保全球服务响应一致性与版本可追溯。

原始描述

Add new language translations to customer service response templates and sync them across Feishu Wiki, GitHub, and local files. Use when: (1) adding new languages to KB templates, (2) updating multilingual customer service responses, (3) syncing template changes to Feishu Wiki knowledge base, (4) creating GitHub issues to document template updates, (5) running the full multilingual template update pipeline. Triggers on phrases like "add language", "translate template", "sync to wiki", "update customer service templates", "多语言模板", "新增语种", "同步知识库".

通过你的 Agent 添加

安装目录:multilingual-kb-sync/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/multilingual-kb-sync/
Codex CLI~/.codex/skills/multilingual-kb-sync/
DeepSeek Harness~/.agents/skills/multilingual-kb-sync/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Multilingual KB Template Sync 是一款面向客服团队的多语言知识库维护工具,核心解决跨国业务中客服回复模板多平台同步与版本管理的痛点。用户首先在本地 kb-templates/common-responses.md 文件维护结构化模板,每个模板按语言分区(如 🇨🇳 中文、🇬🇧 English),新增语言时需为所有模板补充对应翻译并保持格式统一。完成本地编辑后,通过两个自动化脚本实现跨平台分发:scripts/sync-feishu.sh 将 Markdown 内容转换为飞书文档格式并推送至指定 Wiki 空间,scripts/create-github-issue.sh 则自动生成变更追踪 Issue,形成版本审计链。

显著优点

该技能的工程化设计体现了企业级协作理念。其一,多平台原子化同步:本地文件作为唯一数据源,避免飞书、GitHub 等多端编辑导致的内容漂移;其二,低成本集成:仅依赖 Shell 脚本与标准 API,无需引入重量级 CMS 或本地化平台;其三,变更可追溯:GitHub Issue 自动生成机制将翻译更新与代码仓库关联,便于 QA 回溯;其四,权限隔离敏感操作:飞书凭据、GitHub Token 均通过环境变量注入,符合 DevSecOps 实践。

潜在缺点与局限性

技能存在三方面约束。首先是手动翻译瓶颈:新语言接入依赖人工逐条翻译,缺乏机器翻译预填充或翻译记忆库集成,规模化语种扩展成本较高。其次是格式转换简易:飞书同步采用基础 Markdown→Docx 块映射(标题/段落),复杂表格、嵌套列表可能渲染异常。第三是幂等性不足:飞书 API 更新为全量覆盖,并发编辑场景存在覆盖风险;GitHub Issue 重复执行将产生冗余条目,需配合幂等键或去重逻辑优化。

适合的目标群体

该技能精准匹配三类场景:①出海 SaaS 客服团队,需快速搭建 3-5 个主流语种的标准回复体系;②飞书深度用户,已将其作为内部知识中枢,希望打通客服工具链;③敏捷型初创公司,追求用 Git 工作流管理非代码资产(如客服话术),避免采购专业翻译管理系统(TMS)的前期投入。

使用风险

常规风险集中于运维与合规层面。依赖项风险:脚本依赖 gh CLI 与 curl,若 CI/CD 环境未预装或网络受限(如飞书 API 域名白名单),将导致同步失败。性能风险:飞书 Wiki API 有速率限制(通常 20 QPS),大规模知识库(数百条模板)首次全量同步可能触发限流,需引入指数退避重试。数据残留风险:删除本地语言分区不会自动清理飞书端对应内容,需手动维护 Wiki 目录一致性。凭据泄露风险:环境变量注入虽优于硬编码,但在共享 Runner 或日志采集系统中仍存在 Token 意外打印可能,建议配合 Secrets 管理工具(如 Vault)使用。

技能正文


name: multilingual-kb-sync description: "Add new language translations to customer service response templates and sync them across platforms. Use when: (1) adding new languages to kb-templates/common-responses.md, (2) updating multilingual customer service templates, (3) syncing template changes to Feishu Wiki knowledge base, (4) creating GitHub issues for template updates, (5) maintaining multilingual customer service response templates. Triggers on phrases like 'add language to customer service templates', 'update multilingual responses', 'sync KB templates', 'translate customer service replies'."

Multilingual KB Template Sync

Maintain and propagate multilingual customer service response templates across local files, Feishu Wiki, and GitHub.

Workflow

1. Update Local Template

Edit kb-templates/common-responses.md (workspace-relative).

  • Each template section has language subsections: 🇨🇳 中文, 🇬🇧 English, 🇫🇷 Français, 🇰🇷 한국어, etc.
  • When adding a new language, add a subsection under every existing template with the translated text.
  • Keep the section numbering and emoji flags consistent.
  • Update the metadata table at the bottom: 支持语言, 模板数量, 最后更新.
  • Verify all templates have the same number of language subsections (no missing translations).

2. Sync to Feishu Wiki

Run scripts/sync-feishu.sh with required env vars:

FEISHU_APP_ID=xxx FEISHU_APP_SECRET=xxx FEISHU_WIKI_SPACE_ID=xxx FEISHU_DOC_TOKEN=xxx \
  bash scripts/sync-feishu.sh <path-to-common-responses.md>

The script:

  1. Obtains a tenant access token from Feishu Open API.
  2. Reads the local markdown file.
  3. Creates or updates the target Wiki document via the Feishu Wiki API (/open-apis/wiki/v2/spaces/{space_id}/nodes).
  4. Converts markdown to Feishu docx blocks (simple conversion: headings → heading blocks, paragraphs → text blocks).

If the document already exists (FEISHU_DOC_TOKEN set), it updates; otherwise it creates a new node under the space.

Prerequisites: Feishu app with wiki:wiki and docx:document permissions. Set channels.feishu.enabled=true in OpenClaw config or provide credentials via env vars.

3. Create GitHub Issue

Run scripts/create-github-issue.sh:

GITHUB_TOKEN=ghp_xxx GITHUB_REPO=owner/repo \
  bash scripts/create-github-issue.sh <path-to-common-responses.md> <changelog-summary>

The script:

  1. Reads the template file to extract metadata (languages, template count, last updated).
  2. Generates an issue title like [i18n] Add XX/YY translations to common-responses.md.
  3. Generates a body with changelog and metadata.
  4. Creates the issue via gh api or direct REST call.

Prerequisites: gh CLI installed and authenticated, or GITHUB_TOKEN env var with repo scope.

4. Commit and Push (optional)

git add kb-templates/common-responses.md
git commit -m "i18n: add <languages> to common-responses.md"
git push

Adding a New Language (Checklist)

  1. Translate all template sections in common-responses.md.
  2. Add flag emoji and language name heading for each section.
  3. Update metadata table.
  4. Run Feishu sync script.
  5. Run GitHub issue script.
  6. Commit changes.

Supported Languages

Code Language Flag
zh 中文 🇨🇳
en English 🇬🇧
fr Français 🇫🇷
ko 한국어 🇰🇷

Add more by appending to this table and to every template section.

Scripts

  • scripts/sync-feishu.sh — Sync markdown to Feishu Wiki
  • scripts/create-github-issue.sh — Open a GitHub issue for the update

References

  • references/feishu-api.md — Feishu Wiki API notes
  • references/translation-guide.md — Translation quality guidelines

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

customer-supportautomationdocsapidevops

同类 Skill