skills/generate-assistant-config/SKILL.md
Use when 用户希望根据一句自然语言需求创建新的 ChatLab assistant 配置、assistant Markdown、分析助手模板,或需要为群聊/私聊场景整理可写入 assistant/<locale>/<assistant-id>.md 的多语言助手文件。
npx skillsauth add hellodigua/chatlab generate-assistant-configInstall 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.
为 ChatLab 生成 assistant Markdown。先动态追问补齐关键信息,只输出中文预览;用户确认后,再生成 zh / en / ja 三份本地化版本并写入 assistant/。
skills/ 是开发代理技能目录;本技能自身放这里assistant/ 是 assistant Markdown 产物目录;最终 assistant 文件写这里assistant/*.md 可视为历史参考样例;新生成的多语言 assistant 写入 assistant/<locale>/.docs/ai/assistantSystem.md 与运行时代码冲突,以以下文件为准:
apps/desktop/main/ai/assistant/parser.tsapps/desktop/main/ai/assistant/types.tsapps/desktop/main/ai/assistant/manager.tsapps/desktop/main/ai/tools/definitions/index.tsapps/desktop/main/ai/tools/definitions/sql-analysis.ts开始前读取这些文件,只读满足任务所需的最小内容:
.docs/README.md.docs/ai/README.md.docs/ai/assistantSystem.mdapps/desktop/main/ai/assistant/parser.tsapps/desktop/main/ai/assistant/types.tsapps/desktop/main/ai/assistant/manager.tsapps/desktop/main/ai/assistant/builtins/general_cn.mdapps/desktop/main/ai/tools/definitions/index.tsapps/desktop/main/ai/tools/definitions/sql-analysis.tsversion、order、customSqlTools 等已过期字段idnamepresetQuestionsallowedBuiltinToolsbuiltinIdapplicableChatTypessupportedLocalesbuiltinIdallowedBuiltinTools(默认仅核心工具可用)allowedBuiltinTools 仅填写分析工具名(核心工具始终可用,无需列出),不得臆造、不得引用旧名字assistant/<locale>/<assistant-id>.mdzh、en、jagroup、private 或通用仅在用户明确确认中文预览后执行:
zh、en、ja 各生成一份 assistant Markdownassistant-idname、presetQuestions、正文语气允许按语言本地化supportedLocales 分别写为:
zh 文件:- zhen 文件:- enja 文件:- jaassistant/zh/<assistant-id>.mdassistant/en/<assistant-id>.mdassistant/ja/<assistant-id>.mdassistant 冗余词,除非不带会造成歧义示例:
community-analystcustomer-service-reviewerrelationship-insight如果用户给了明确名称:
工具分为两类:
allowedBuiltinTools 中列出。包括:get_chat_overview, search_messages, get_recent_messages, get_message_context, search_sessions, get_session_messages, get_membersallowedBuiltinTools 中显式列出才会启用allowedBuiltinTools 仅用于控制分析工具,核心工具始终可用:
allowedBuiltinTools(默认仅核心工具可用)生成前做一次自检:
allowedBuiltinTools 中是否误放了核心工具(核心工具无需列出)中文预览与最终落盘文件都使用同一结构:
---
id: assistant-id
name: 助手名称
applicableChatTypes:
- group
supportedLocales:
- zh
allowedBuiltinTools:
- get_member_stats
- get_time_stats
presetQuestions:
- 示例问题 1
- 示例问题 2
---
你是一位……
你的核心能力是:
- …
- …
你的回答风格应该……
## 回答要求
1. …
2. …
3. …
id:所有语言版本保持一致name:允许本地化,不必逐字对应applicableChatTypes:仅在能明确判断时写入;通用角色可省略supportedLocales:按文件所属语言写单元素数组allowedBuiltinTools:仅填写需要的分析工具名(核心工具无需列出,始终可用)presetQuestions:建议 3 到 5 条,贴近该语言用户的自然表达## 回答要求用户确认前:
en 或 ja用户确认后:
skill/ 或 skills/,而不是 assistant/.docs/ai/assistantSystem.md 的旧字段allowedBuiltinTools(核心工具始终可用,不需要列出)documentation
将 changelogs/cn.json 的当前版本日志同步为多语言版本:生成适合英文母语者阅读的英文版、适合繁体中文用户阅读的繁中版、适合日语母语者阅读的日文版,分别更新 changelogs/en.json、changelogs/tw.json、changelogs/ja.json,并在当前项目创建 release 提交(包含 package.json 与四种语言 changelog)。用于用户提出"同步版本日志""生成并同步 changelog""发布前同步多语言日志"等请求。仅创建 commit,不执行 push。
documentation
根据当前项目 package.json 版本与 Git 提交记录生成中文版本日志。用于用户提出"生成版本日志""生成 changelog""发布新版本并生成更新记录"等请求时,自动读取当前版本号、定位上一版本、汇总版本区间 commit,并更新 changelogs/cn.json(新增版本、生成中文 summary、按类型归类变更)。
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------