with one click
cron
通过 copaw 命令管理定时任务 - 创建、查询、暂停、恢复、删除任务
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
通过 copaw 命令管理定时任务 - 创建、查询、暂停、恢复、删除任务
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Word文档处理:创建、编辑、读取.docx文件。用户提到"Word"、"文档"、".docx"、"报告"、"信函"时使用。
使用腾讯云 API 密钥调用腾讯云各种服务,包括翻译、CVM、COS等。
图片识别与图文理解,基于 PaddleOCR-VL 模型,支持识别图片中的文字、场景、物体等信息。支持109种语言,可输出JSON或Markdown格式。
You MUST use this for gathering contexts before any work. This is a Knowledge management for AI agents. Use `brv` to store and retrieve project patterns, decisions, and architectural rules in .brv/context-tree. Uses a configured LLM provider (default: ByteRover, no API key needed) for query and curate operations.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack 🦞
| name | cron |
| description | 通过 copaw 命令管理定时任务 - 创建、查询、暂停、恢复、删除任务 |
| triggers | ["定时任务","cron","定时","schedule","定时提醒","定时执行"] |
| metadata | {"copaw":{"emoji":"⏰"}} |
使用 copaw cron 命令管理定时任务,支持创建、查询、暂停、恢复、删除等操作。
| 频道 | 说明 |
|---|---|
imessage | iMessage |
discord | Discord |
dingtalk | 钉钉 |
qq | |
feishu | 飞书 |
console | 控制台 |
# 列出所有任务
copaw cron list
# 查看任务详情
copaw cron get <job_id>
# 查看任务状态
copaw cron state <job_id>
# 删除任务
copaw cron delete <job_id>
# 暂停任务
copaw cron pause <job_id>
# 恢复任务
copaw cron resume <job_id>
# 立即执行一次
copaw cron run <job_id>
# 创建文本消息任务
copaw cron create \
--type text \
--name "任务名称" \
--cron "CRON表达式" \
--channel 频道类型 \
--target-user "用户标识" \
--target-session "会话标识" \
--text "消息内容"
# 创建 Agent 任务
copaw cron create \
--type agent \
--name "任务名称" \
--cron "CRON表达式" \
--channel 频道类型 \
--target-user "用户标识" \
--target-session "会话标识" \
--text "提问内容"
| 参数 | 说明 | 示例 |
|---|---|---|
--type | 任务类型 | text 或 agent |
--name | 任务名称 | "每日提醒" |
--cron | Cron 表达式 | "0 9 * * *" |
--channel | 目标频道 | feishu |
--target-user | 用户标识 | 用户 ID |
--target-session | 会话标识 | 会话 ID |
--text | 消息/提问内容 | "早上好!" |
适用于复杂配置:
copaw cron create -f job_spec.json
JSON 配置示例:
{
"type": "agent",
"name": "每日待办提醒",
"cron": "0 9 * * *",
"channel": "feishu",
"target_user": "ou_xxx",
"target_session": "xxx",
"text": "查看今天的待办事项"
}
┌───────────── 分钟 (0-59)
│ ┌───────────── 小时 (0-23)
│ │ ┌───────────── 日期 (1-31)
│ │ │ ┌───────────── 月份 (1-12)
│ │ │ │ ┌───────────── 星期 (0-7, 0和7都是周日)
│ │ │ │ │
* * * * *
| 表达式 | 说明 |
|---|---|
0 9 * * * | 每天 9:00 |
0 */2 * * * | 每 2 小时 |
30 8 * * 1-5 | 工作日 8:30 |
0 0 * * 0 | 每周日零点 |
*/15 * * * * | 每 15 分钟 |
0 12 * * 1 | 每周一 12:00 |
0 9 1 * * | 每月 1 号 9:00 |
0 18 * * 5 | 每周五 18:00 |
# 每天 9:00 发送早安消息
copaw cron create \
--type text \
--name "每日早安" \
--cron "0 9 * * *" \
--channel feishu \
--target-user "ou_xxx" \
--target-session "xxx" \
--text "早上好!新的一天开始了 💪"
# 每 2 小时检查待办
copaw cron create \
--type agent \
--name "检查待办" \
--cron "0 */2 * * *" \
--channel feishu \
--target-user "ou_xxx" \
--target-session "xxx" \
--text "我有什么待办事项?"
# 每周五 18:00 生成周总结
copaw cron create \
--type agent \
--name "周总结" \
--cron "0 18 * * 5" \
--channel feishu \
--target-user "ou_xxx" \
--target-session "xxx" \
--text "帮我生成这周的工作总结"
# 每天早上查询天气
copaw cron create \
--type agent \
--name "天气提醒" \
--cron "0 7 * * *" \
--channel feishu \
--target-user "ou_xxx" \
--target-session "xxx" \
--text "今天杨凌的天气怎么样?"
copaw cron list
输出包含 job_id、名称、状态、下次执行时间等。
copaw cron state <job_id>
显示任务是否正在运行、上次执行时间、下次执行时间等。
# 暂停
copaw cron pause <job_id>
# 恢复
copaw cron resume <job_id>
copaw cron delete <job_id>
# 不等待定时,立即执行一次
copaw cron run <job_id>
copaw cron run 测试当用户需要:
| 场景 | 使用 Cron | 使用 Heartbeat |
|---|---|---|
| 精确时间 | ✅ 支持 | ⚠️ 近似 |
| 频繁检查(多次/天) | ⚠️ 资源占用 | ✅ 合并更高效 |
| 需要对话上下文 | ❌ 无 | ✅ 有 |
| 一次性提醒 | ✅ 支持 | ❌ 不支持 |
建议:
Cron Skill | 定时任务管理专家