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:
19
skills/time-tool/SKILL.md
Normal file
19
skills/time-tool/SKILL.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
name: time-tool
|
||||
description: "时间工具 - 获取当前时间和日期信息"
|
||||
---
|
||||
|
||||
# 时间工具
|
||||
|
||||
获取当前时间、日期信息,以及进行简单的日期计算。
|
||||
|
||||
## 使用方法
|
||||
|
||||
```bash
|
||||
python3 scripts/time_info.py [时区]
|
||||
```
|
||||
|
||||
## 功能
|
||||
- 获取当前时间(支持指定时区)
|
||||
- 获取当前日期和星期
|
||||
- 输出格式化的时间信息
|
||||
Reference in New Issue
Block a user