discord-bot/SKILL.md
Discord 机器人 (dm-bot) 的定时任务管理工具。当用户请求提醒、定时任务、延迟提醒、闹钟、"X分钟后提醒我..."、"每天早上...提醒我"、查看任务列表、删除任务时,必须使用此 skill 执行 CLI 命令。禁止用 bash sleep/notify-send 等方式代替。
npx skillsauth add 958877748/skills dm-botInstall 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.
帮助用户管理 dm-bot 的定时任务,支持标准的 cron 表达式。
当用户说以下类型的话时,必须使用此 Skill:
禁止使用 bash sleep/notify-send 等方式实现提醒,必须用下面的 CLI 命令!
所有命令需要在项目根目录执行:
npx dm-bot schedule create "<cron表达式>" "<任务内容>" <是否重复>
参数:
0 8 * * * 表示每天8点true 或 false示例:
npx dm-bot schedule create "0 8 * * *" "提醒喝水" true
npx dm-bot schedule create "0 9 * * 1-5" "上班打卡" true
npx dm-bot schedule create "0 10 1 * *" "月初提醒" false
npx dm-bot schedule list
npx dm-bot schedule delete <任务ID>
npx dm-bot new
当用户说 "5分钟后提醒我喝水" 或 "10分钟后叫我" 等延迟提醒时,使用 delayed 命令:
npx dm-bot delayed wake <分钟数> [提醒内容]
参数:
示例:
npx dm-bot delayed wake 5 "提醒喝水"
npx dm-bot delayed wake 10
npx dm-bot delayed wake 0.5 "休息一下"
重要:延迟任务需要从项目目录执行,确保数据库路径正确。建议使用绝对路径:
cd /home/ubuntu/skills/discord-bot && npx dm-bot delayed wake 5 "提醒喝水"
┌───────────── 分钟 (0-59)
│ ┌───────────── 小时 (0-23)
│ │ ┌───────────── 日 (1-31)
│ │ │ ┌───────────── 月 (1-12)
│ │ │ │ ┌───────────── 星期 (0-6, 0=周日)
│ │ │ │ │
* * * * *
常用示例:
0 8 * * * - 每天早上8点30 9 * * 1-5 - 工作日早上9:300 0 * * 0 - 每周日午夜0 8,12,18 * * * - 每天8点、12点、18点当用户说 "每天早上8点提醒我喝水":
0 8 * * *npx dm-bot schedule create "0 8 * * *" "提醒喝水" true
当用户说 "看看我的任务":
npx dm-bot schedule list
当用户说 "删除任务3":
npx dm-bot schedule delete 3
当用户说 "新对话" 或 "开启新会话":
npx dm-bot new
当用户说 "5分钟后提醒我喝水"、"10分钟后叫我" 等延迟提醒时:
cd /home/ubuntu/skills/discord-bot && npx dm-bot delayed wake <分钟数> "<提醒内容>"
tools
Cocos Creator 2.4.x 场景/预制体命令行工具,支持读写 .fire/.prefab、JSON 生成 UI、截图预览
development
查询公网IP地址的地理位置信息,包括国家、省份、城市、ISP、时区等
tools
Cocos Creator 有限状态机 (FSM) 实现,用于管理游戏对象的状态转换
tools
Cocos Creator 2.4.x 粒子系统修饰器开发框架。用于创建、使用和调试自定义粒子修饰器,支持修改粒子位置、颜色、大小、旋转、速度等属性。当需要在 Cocos Creator 中实现复杂的粒子效果控制时使用此技能。