feat: 支持 OpenClaw skill 格式 (SKILL.md + scripts/)

- scan_skills() 支持两种格式: .yaml 文件 和 目录/SKILL.md
- 解析 SKILL.md 的 YAML frontmatter 提取 name/description
- 自动扫描 scripts/ 子目录的 .py 脚本
- skill_exec 支持 asyncio 子进程执行脚本
- 新增示例 OpenClaw 技能: skills/time-tool/
This commit is contained in:
2026-04-23 23:53:45 +08:00
parent 1c42ba0812
commit 28da16829f
5 changed files with 215 additions and 7 deletions

View File

@@ -33,3 +33,4 @@ skill_keywords:
weather_analyst: ["天气", "出行", "穿什么"]
math_tutor: ["计算", "算", "数学", "等于多少"]
knowledge_explorer: ["是什么", "解释", "了解"]
time-tool: ["时间工具", "日期", "星期几"]