en un clic
cron
// 仅在需要未来定时执行或周期执行任务时,使用本 skill。使用 qwenpaw cron list/create/get/state/pause/resume/delete/run 管理任务,并始终显式传入 --agent-id。
// 仅在需要未来定时执行或周期执行任务时,使用本 skill。使用 qwenpaw cron list/create/get/state/pause/resume/delete/run 管理任务,并始终显式传入 --agent-id。
Use this skill when sedimenting a session into a reusable workspace skill. Triggers when the user wants to turn the current conversation, workflow, or troubleshooting path into a SKILL.md. Phrases like 'turn this into a skill', 'remember how I did X', 'save this workflow', 'make a skill from this', and any /make-skill <focus> invocation should fire this skill.
用于把当前会话沉淀为可复用的 workspace skill。当用户希望把当前对话、工作流或排错路径写成 SKILL.md 时触发。触发表达包括「把这个变成 skill」「记住我是怎么做 X 的」「保存这个工作流」「make a skill from this」以及任何 /make-skill <focus> 调用。
Use this skill only for scheduled or recurring tasks. Manage jobs with qwenpaw cron list/create/get/state/pause/resume/delete/run, and always pass --agent-id explicitly.
Answer user questions about QwenPaw installation and configuration: first locate and read local documentation, then distill the answer; if local information is insufficient, fall back to the official website documentation.
回答用户关于 QwenPaw 安装与配置的问题:优先定位并阅读本地文档,再提炼答案;若本地信息不足,兜底访问官网文档。
Maps topics and keywords from user questions to QwenPaw official documentation paths and common source code entry points, reducing blind searching. Intended for the built-in QA Agent to quickly identify which files to read when answering questions about installation, configuration, skills, MCP, multi-agent, memory, CLI, etc.
| name | cron |
| description | 仅在需要未来定时执行或周期执行任务时,使用本 skill。使用 qwenpaw cron list/create/get/state/pause/resume/delete/run 管理任务,并始终显式传入 --agent-id。 |
| metadata | {"builtin_skill_version":"1.6","qwenpaw":{"emoji":"⏰"}} |
只有在需要未来某个时间自动执行,或按周期重复执行时,使用本 skill。
--agent-id--agent-id所有 qwenpaw cron 命令都必须传:
--agent-id <your_agent_id>
你的 agent_id 在系统提示中的 Agent Identity 部分(Your agent id is ...)。 不得省略,否则任务可能错误创建到 default agent 的 workspace。
# 列出任务
qwenpaw cron list --agent-id <agent_id>
# 查看任务详情
qwenpaw cron get <job_id> --agent-id <agent_id>
# 查看任务状态
qwenpaw cron state <job_id> --agent-id <agent_id>
# 创建任务
qwenpaw cron create --agent-id <agent_id> ...
# 删除任务
qwenpaw cron delete <job_id> --agent-id <agent_id>
# 暂停 / 恢复任务
qwenpaw cron pause <job_id> --agent-id <agent_id>
qwenpaw cron resume <job_id> --agent-id <agent_id>
# 立即执行一次已有任务
qwenpaw cron run <job_id> --agent-id <agent_id>
支持两种类型:
支持两种调度形态:
--schedule-type cron):经典 cron 周期(如每天 9 点、每 2 小时),与循环任务相对应--schedule-type scheduled):日程任务(从 --run-at 开始,可一次性或按天重复)cronscheduledscheduled 不重复时(即一次性任务):只传 --run-at,不要传 --repeat-*scheduled 重复时:传 --repeat-every-days,并根据结束条件传:
--repeat-end-type count --repeat-count N--repeat-end-type until --repeat-until <ISO8601>--repeat-end-type never默认超时 120 秒(2 分钟)。对于较长的 agent 任务,应显式设置更大的超时时间,避免任务被提前取消:
--timeout 600 # 10 分钟
--timeout 3600 # 1 小时
核心规则:
--timeout 600 或更高--timeout 不应超过 900 秒--timeout 建议不超过间隔的 80%(即 480 秒)--timeout 可以设置较大,不需要特别限制--type--name--schedule-type--cron(当 --schedule-type cron)--run-at(当 --schedule-type scheduled)--channel--target-user--target-session--text--agent-id--timeout(对于 agent 类型任务,根据预期执行时间设置合适的超时)如果缺少这些信息,应先向用户确认,再创建任务。
# 循环任务(对应 --schedule-type cron)
qwenpaw cron create \
--agent-id <agent_id> \
--type text \
--schedule-type cron \
--name "每日早安" \
--cron "0 9 * * *" \
--channel imessage \
--target-user "CHANGEME" \
--target-session "CHANGEME" \
--text "早上好!"
# 循环任务(对应 --schedule-type cron)
qwenpaw cron create \
--agent-id <agent_id> \
--type agent \
--schedule-type cron \
--name "检查待办" \
--cron "0 */2 * * *" \
--channel dingtalk \
--target-user "CHANGEME" \
--target-session "CHANGEME" \
--text "我有什么待办事项?" \
--timeout 600
# 日程一次性:明天 9 点提醒(不重复)
qwenpaw cron create \
--agent-id <agent_id> \
--type text \
--schedule-type scheduled \
--name "明早提醒" \
--run-at "2026-05-13T09:00:00+08:00" \
--channel dingtalk \
--target-user "CHANGEME" \
--target-session "CHANGEME" \
--text "9 点开组会" \
--save-result-to-inbox
# 日程重复:未来两周每天 9 点(共 14 次)
qwenpaw cron create \
--agent-id <agent_id> \
--type text \
--schedule-type scheduled \
--name "未来两周组会提醒" \
--run-at "2026-05-13T09:00:00+08:00" \
--repeat-every-days 1 \
--repeat-end-type count \
--repeat-count 14 \
--channel dingtalk \
--target-user "CHANGEME" \
--target-session "CHANGEME" \
--text "9 点开组会" \
--save-result-to-inbox
qwenpaw cron create --agent-id <agent_id> -f job_spec.json
1. 判断是否真的是"未来定时"或"周期执行"
2. 确认执行时间/周期
3. 确认 channel、target-user、target-session
4. 显式带上 --agent-id
5. qwenpaw cron create 创建任务
6. 后续用 list / state / pause / resume / delete 管理
0 9 * * * 每天 9:00
0 */2 * * * 每 2 小时
30 8 * * 1-5 工作日 8:30
0 0 * * 0 每周日零点
*/15 * * * * 每 15 分钟
如果只是现在执行一次,通常不要创建 cron。
这会导致任务落到错误的 agent / workspace。所有 cron 命令都必须显式传 --agent-id。
如果用户没说明时间、周期、目标 channel 或目标 session,应先追问。
暂停、恢复、删除前,先用:
qwenpaw cron list --agent-id <agent_id>
找到正确的 job_id。
qwenpaw cron list --agent-id <agent_id>qwenpaw cron state <job_id> --agent-id <agent_id>--save-result-to-inbox 或 --no-save-result-to-inbox,否则不要添加该项。qwenpaw cron -h
qwenpaw cron list -h
qwenpaw cron create -h
qwenpaw cron get -h
qwenpaw cron state -h
qwenpaw cron pause -h
qwenpaw cron resume -h
qwenpaw cron delete -h
qwenpaw cron run -h