Community程式設計與開發github.com

qqbot-remind

QQBot 定時提醒。僅在用戶明確要求建立、列出或取消一次性或週期性提醒時使用;排程前請先詢問缺少的時間、內容或時區。

qqbot-remind 是什麼?

此技能為 QQBot 提供定時提醒功能,讓 AI 助手能根據用戶要求建立、查詢或取消一次性及週期性提醒任務。它支援兩種實作方式:主要使用 `qqbot_remind` 工具傳入簡單參數(如 action、content、time、timezone),或當該工具不可用時,以 `cron` 工具直接操作 Gateway 任務。關鍵在於 payload.kind 必須設定為 "agentTurn",確保提醒訊息能透過 QQ 通道傳送給用戶,而非僅在 AI 對話內部注入。技能強調嚴格的意圖辨識:只有當用戶明確要求建立、列出或取消提醒時才應觸發;若用戶僅是閒聊、假設或討論未來計畫但未要求實際創建提醒,則不應呼叫工具。時間、內容或時區不明確時,必須先向用戶提問確認,避免替用戶猜測。一次性提醒支援相對時間(如「5m」)或 cron 表達式,而 cron 備用方案則需使用絕對毫秒時間戳。週期提醒需搭配 IANA 時區,且不應包含 `deleteAfterRun` 標記。提供的 cron 表達式速查與 AI 決策指南可協助開發者快速選取適當的排程參數,並確保提醒訊息格式溫暖有趣,包含 emoji 與簡短鼓勵語句。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/extensions/qqbot/skills/qqbot-remind

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

QQ Bot 定時提醒

⚠️ 意圖規則

只有當用戶明確要求建立、查詢或取消提醒/鬧鐘/定時任務時,才呼叫工具。閒聊、假設、解釋提醒功能、討論將來計畫但未要求建立提醒時,不要呼叫工具。

如果用戶確實要求提醒,你沒有記憶體或後台執行緒,口頭承諾「到時候提醒」是無效的——必須呼叫工具才能真正註冊定時任務。時間、提醒內容、目標對話或時區不清楚時先追問;不要替用戶猜測。


推薦流程(使用 qqbot_remind 工具)

第一步:呼叫 qqbot_remind 工具,傳入簡單參數:

參數說明範例
action操作類型"add" / "list" / "remove"
content提醒內容"喝水"
to目標地址(可選,系統自動取得,通常無需填寫)—
time時間(相對時間或 cron 表達式)"5m" / "1h30m" / "0 8 * * *"
timezoneIANA 時區(週期提醒建議明確傳入)"Asia/Shanghai" / "America/Los_Angeles"
jobId任務 ID(僅 remove)"xxx"

第二步:根據 qqbot_remind 的回傳結果,回覆用戶。qqbot_remind 會直接建立、查詢或取消 Gateway cron 任務;成功後不要再呼叫 cron 工具。

範例

用戶說:「5分鐘後提醒我喝水」

  1. 呼叫 qqbot_remind:{ "action": "add", "content": "喝水", "time": "5m" }
  2. 工具回傳成功後,回覆用戶:⏰ 好的,5分鐘後提醒你喝水~

備用方案(直接使用 cron 工具)

僅當 qqbot_remind 工具不可用但 cron 工具可用時使用以下方式。

核心規則

payload.kind 必須是 "agentTurn",絕對不能用 "systemEvent"! systemEvent 只在 AI 對話內部注入文字,用戶收不到 QQ 訊息。

不可更改欄位:

欄位固定值原因
payload.kind"agentTurn"systemEvent 不會發 QQ 訊息
delivery.mode"announce"主動投遞模式
delivery.channel"qqbot"QQ 通道標識
delivery.to目標地址從當前對話上下文取得
delivery.accountId當前帳戶 ID多帳號情境下不可省略
sessionTarget"isolated"隔離對話避免污染

schedule.atMs 必須是絕對毫秒時間戳(如 1770733800000),不支援 "5m" 等相對字串。 計算方式:當前時間戳ms + 延遲毫秒。

一次性提醒(schedule.kind = "at")

{
  "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點綴"
    },
    "delivery": {
      "mode": "announce",
      "channel": "qqbot",
      "to": "qqbot:c2c:{openid}",
      "accountId": "{accountId}"
    }
  }
}

週期提醒(schedule.kind = "cron")

{
  "action": "add",
  "job": {
    "name": "{任務名}",
    "schedule": { "kind": "cron", "expr": "0 8 * * *", "tz": "{用戶確認的 IANA 時區}" },
    "sessionTarget": "isolated",
    "wakeMode": "now",
    "payload": {
      "kind": "agentTurn",
      "message": "你是一個暖心的提醒助手。請用溫暖、有趣的方式提醒用戶:{提醒內容}。要求:(1) 不要回覆HEARTBEAT_OK (2) 不要解釋你是誰 (3) 直接輸出一條暖心的提醒訊息 (4) 可以加一句簡短的雞湯或關懷的話 (5) 控制在2-3句話以內 (6) 用emoji點綴"
    },
    "delivery": {
      "mode": "announce",
      "channel": "qqbot",
      "to": "qqbot:c2c:{openid}",
      "accountId": "{accountId}"
    }
  }
}

週期任務不加 deleteAfterRun。群聊 delivery.to 格式為 "qqbot:group:{group_openid}"。


cron 表達式速查

場景expr
每天早上8點"0 8 * * *"
每天晚上10點"0 22 * * *"
工作日早上9點"0 9 * * 1-5"
每週一早上9點"0 9 * * 1"
每週末上午10點"0 10 * * 0,6"
每小時整點"0 * * * *"

週期提醒應使用用戶明確提供、用戶資料/對話中可信可得,或用戶確認過的 IANA 時區。無法判斷時先追問;不要把所有用戶都假定在同一時區。


AI 決策指南

用戶說法actiontime 格式
"5分鐘後提醒我喝水"add"5m"
"1小時後提醒開會"add"1h"
"每天8點提醒我打卡"add"0 8 * * *"
"工作日早上9點提醒"add"0 9 * * 1-5"
"我有哪些提醒"list—
"取消喝水提醒"remove—
"修改提醒時間"remove → add—
"提醒我"(無時間)需追問—

純相對時間("5分鐘後"、"1小時後")可直接計算,無需確認。時間、日期、週期、內容或時區模糊/缺少時需追問。週期提醒在回覆中說明解釋後的本地時間和時區。


回覆模板

  • 一次性:⏰ 好的,{時間}後提醒你{內容}~
  • 週期:⏰ 收到,{週期}提醒你{內容}~
  • 查詢無結果:📋 目前沒有提醒喔~ 說「5分鐘後提醒我xxx」試試?
  • 刪除成功:✅ 已取消「{名稱}」

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能