apps/desktop/openclaw-runtime/config/extensions/openclaw-qqbot/skills/qqbot-cron/SKILL.md
QQBot 定时提醒。支持一次性和周期性提醒的创建、查询、取消。当通过 QQ 通道通信且涉及提醒/定时任务时使用。
npx skillsauth add polaris-dxz/xclaw qqbot-cronInstall 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.
当用户提到「提醒」「闹钟」「定时」「X分钟/小时后」「每天X点」「叫我」等任何涉及延时或定时的请求时,你必须调用 cron 工具,绝对不能只用自然语言回复说"好的,我会提醒你"!
你没有内存或后台线程,口头承诺"到时候提醒"是无效的——只有调用 cron 工具才能真正注册定时任务。
payload.kind 必须是
"agentTurn",绝对不能用"systemEvent"!systemEvent只在 AI 会话内部注入文本,用户收不到 QQ 消息。
5 个不可更改字段:
| 字段 | 固定值 | 原因 |
|------|--------|------|
| payload.kind | "agentTurn" | systemEvent 不会发 QQ 消息 |
| payload.deliver | true | 否则不投递 |
| payload.channel | "qqbot" | QQ 通道标识 |
| payload.to | 用户 openid | 从上下文获取 |
| sessionTarget | "isolated" | 隔离会话避免污染 |
schedule.atMs必须是绝对毫秒时间戳(如1770733800000),不支持"5m"等相对字符串。 计算方式:当前时间戳ms + 延迟毫秒。
{
"action": "add",
"job": {
"name": "{任务名}",
"schedule": { "kind": "at", "atMs": "{当前时间戳ms + N*60000}" },
"sessionTarget": "isolated",
"wakeMode": "now",
"deleteAfterRun": true,
"payload": {
"kind": "agentTurn",
"message": "你是一个暖心的提醒助手。请用温暖、有趣的方式提醒用户:{提醒内容}。要求:(1) 不要回复HEARTBEAT_OK (2) 不要解释你是谁 (3) 直接输出一条暖心的提醒消息 (4) 可以加一句简短的鸡汤或关怀的话 (5) 控制在2-3句话以内 (6) 用emoji点缀",
"deliver": true,
"channel": "qqbot",
"to": "{openid}"
}
}
}
{
"action": "add",
"job": {
"name": "{任务名}",
"schedule": { "kind": "cron", "expr": "0 8 * * *", "tz": "Asia/Shanghai" },
"sessionTarget": "isolated",
"wakeMode": "now",
"payload": {
"kind": "agentTurn",
"message": "你是一个暖心的提醒助手。请用温暖、有趣的方式提醒用户:{提醒内容}。要求:(1) 不要回复HEARTBEAT_OK (2) 不要解释你是谁 (3) 直接输出一条暖心的提醒消息 (4) 可以加一句简短的鸡汤或关怀的话 (5) 控制在2-3句话以内 (6) 用emoji点缀",
"deliver": true,
"channel": "qqbot",
"to": "{openid}"
}
}
}
周期任务不加
deleteAfterRun。群聊to格式为"group:{group_openid}"。
| 场景 | expr |
|------|------|
| 每天早上8点 | "0 8 * * *" |
| 每天晚上10点 | "0 22 * * *" |
| 工作日早上9点 | "0 9 * * 1-5" |
| 每周一早上9点 | "0 9 * * 1" |
| 每周末上午10点 | "0 10 * * 0,6" |
| 每小时整点 | "0 * * * *" |
周期提醒必须加
"tz": "Asia/Shanghai"。
{ "action": "list" }list 找到 jobId,再 { "action": "remove", "jobId": "{id}" }| 用户说法 | action | schedule.kind |
|----------|--------|---------------|
| "5分钟后提醒我喝水" | add | at |
| "每天8点提醒我打卡" | add | cron |
| "我有哪些提醒" | list | — |
| "取消喝水提醒" | remove | — |
| "修改提醒时间" | remove → add | — |
| "提醒我"(无时间) | 需追问 | — |
纯相对时间("5分钟后"、"1小时后")可直接计算,无需确认。时间模糊或缺失时需追问。
⏰ 好的,{时间}后提醒你{内容}~⏰ 收到,{周期}提醒你{内容}~📋 目前没有提醒哦~ 说"5分钟后提醒我xxx"试试?✅ 已取消"{名称}"testing
公司财报追踪器。自动追踪科技公司财报发布日期并生成摘要。Keywords: 财报, earnings, financial report.
development
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
testing
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
content-media
内容复用引擎。将长文章/视频自动拆解为适合不同平台的短内容。Keywords: 内容复用, 多平台适配, content repurpose, 内容拆解.