japanese-smart-home-command-normalizer
Use this skill when a short Japanese STT transcript needs to be normalized before smart-home execution.
Workflow
- 1. Read
references/design.md for the normalization pipeline and result shape. - Read
references/domains.md for the supported domains and vocabulary. - Reuse
lib/normalize.js as the core pure module. - Use
scripts/demo.js to try sample transcripts from the terminal. - Integrate the normalized result into a device-control skill such as
switchbot-light or a hook such as audio-router.
Current domains
- device aliases: 電気, ライト, 照明
- actions: on, off
- device aliases: エアコン
- actions: on, off, set_mode
- modes: cool, heat, dry, fan
Notes
- - This skill only normalizes and classifies text. It does not call device APIs.
- Prefer fixed vocabulary plus lightweight fuzzy matching over open-ended LLM interpretation for safety-critical home actions.
- When confidence is low or required slots are missing, return
needsConfirmation: true instead of auto-executing. - Add future devices by extending the domain vocabulary, not by piling more ad-hoc regex into callers.
Resources
- -
lib/normalize.js: core normalization and classification module. - INLINECODE10 : print normalized results for sample inputs.
- INLINECODE11 : sample transcripts and expected outcomes.
- INLINECODE12 : pipeline, API shape, and confidence rules.
- INLINECODE13 : supported vocabulary and extension guidance.
- INLINECODE14 : thin-hook integration guidance.
japanese-smart-home-command-normalizer
在需要将简短的日语STT转录文本进行规范化处理后再执行智能家居操作时,使用此技能。
工作流程
- 1. 阅读 references/design.md,了解规范化处理流程及结果格式。
- 阅读 references/domains.md,了解支持的领域和词汇。
- 复用 lib/normalize.js 作为核心纯函数模块。
- 使用 scripts/demo.js 在终端尝试示例转录文本。
- 将规范化结果集成到设备控制技能(如 switchbot-light)或钩子(如 audio-router)中。
当前领域
- 设备别名:電気, ライト, 照明
- 操作:on(开), off(关)
- 设备别名:エアコン
- 操作:on(开), off(关), set_mode(设置模式)
- 模式:cool(制冷), heat(制热), dry(除湿), fan(送风)
注意事项
- - 此技能仅负责文本规范化和分类,不调用设备API。
- 对于安全关键的家居操作,优先使用固定词汇加轻量级模糊匹配,而非开放式LLM解释。
- 当置信度较低或缺少必要槽位时,返回 needsConfirmation: true,而非自动执行。
- 如需添加新设备,应扩展领域词汇表,而非在调用方堆砌更多临时正则表达式。
资源
- - lib/normalize.js:核心规范化和分类模块。
- scripts/demo.js:打印样本输入的规范化结果。
- fixtures/samples.json:示例转录文本及预期结果。
- references/design.md:处理流程、API格式及置信度规则。
- references/domains.md:支持的词汇表及扩展指南。
- references/openclaw-integration.md:轻量级钩子集成指南。