跳到主要内容

cron 精选

Use this skill only for scheduled or recurring tasks. Manage jobs with qwenpaw cron list/create/get/state/update/pause/resume/delete/run, and always pass --agent-id explicitly.

自动化 Codex CLIMCP 客户端 Apache-2.0 3.6 万
在 GitHub 打开

安装方式

cp -r src/qwenpaw/agents/skills/cron-en ~/.claude/skills/cron-en

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git

依赖与权限

  • 无需 API Key
  • 无需联网
  • 无外部命令依赖
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。

SKILL.md 正文

来源 agentscope-ai/QwenPaw@02b6a6d · 许可 Apache-2.0 · 内容未修改

Cron (Scheduled Task Management)

When to Use

Use this skill only when you need to automatically execute something at a future time or repeat execution on a schedule.

Should Use

  • User asks to do something "daily / weekly / hourly"
  • User asks for automatic reminders or execution "tomorrow at 9 AM / next Monday / at a specific time"
  • Long-term periodic notifications, checks, or reports are needed

Should Not Use

  • The task only needs to be executed once right now
  • It is just a normal reply within the current session
  • The user has not specified an execution time or schedule
  • The target channel / user / session is still unclear

Decision Rules

  1. Only use cron for future scheduled or periodic execution
  2. If it only needs to be done once immediately, do not create a cron job
  3. Before creating, confirm execution time/schedule, target channel, target-user, and target-session
  4. All cron commands must explicitly include --agent-id
  5. Do not rely on the default agent, or the task may end up in the default workspace
  6. For an agent task that should run without channel output, add --silent; execution, session history, trace, and optional Inbox recording still continue
  7. Never run or resume an imported job while requires_review is set; review and approve it in Console first

Hard Rules

Must Explicitly Specify --agent-id

All qwenpaw cron commands must include:

--agent-id <your_agent_id>

Your agent_id is found in the Agent Identity section of the system prompt (Your agent id is ...).

Do not omit it, or the task may be incorrectly created in the default agent's workspace.


Common Commands

# List tasks
qwenpaw cron list --agent-id <agent_id>

# View task details
qwenpaw cron get <job_id> --agent-id <agent_id>

# View task status
qwenpaw cron state <job_id> --agent-id <agent_id>

# Create a task
qwenpaw cron create --agent-id <agent_id> ...

# Delete a task
qwenpaw cron delete <job_id> --agent-id <agent_id>

# Pause / Resume a task
qwenpaw cron pause <job_id> --agent-id <agent_id>
qwenpaw cron resume <job_id> --agent-id <agent_id>

# Run an existing task once immediately
qwenpaw cron run <job_id> --agent-id <agent_id>

# Update an existing task
qwenpaw cron update <job_id> --agent-id <agent_id> ...

Creating Tasks

Two types are supported:

  • text: Send a fixed message on a schedule
  • agent: Ask an agent a question on a schedule and send the reply to the target channel

Two schedule modes are supported:

  • cron (--schedule-type cron): classic cron recurrence (for example, daily 09:00 or every 2 hours)
  • scheduled (--schedule-type scheduled): calendar-style schedule starting from --run-at, either one-time or repeating by day

Schedule Selection Rules (Must Follow)

  • If user intent is generic recurrence ("hourly/daily/weekly") without a specific start date, prefer cron
  • If user intent includes a concrete start date ("tomorrow", "next Monday", "starting from <date>", "for the next two weeks"), prefer scheduled
  • For one-time scheduled tasks: pass only --run-at and do not pass any --repeat-* options
  • For repeating scheduled tasks: pass --repeat-every-days and choose an end condition:
  • fixed count: --repeat-end-type count --repeat-count N
  • end datetime: --repeat-end-type until --repeat-until <ISO8601>
  • no end: --repeat-end-type never

Timeout Settings

Default timeout is 120 seconds (2 minutes). For longer agent tasks, you must explicitly set a larger timeout to prevent premature cancellation:

--timeout 600   # 10 minutes
--timeout 3600   # 1 hour

Core Rules:

  1. If the agent task involves web search, code execution, or multi-step tool calls, set --timeout 600 or higher
  2. Timeout must be less than the scheduling interval to prevent overlap (a new run firing while the previous one is still executing). Examples:
  • Every 15 minutes: --timeout should not exceed 900 seconds
  • Every 10 minutes: --timeout recommend no more than 80% of interval (i.e. 480 seconds)
  • Daily: --timeout can be larger, no special restriction needed
  1. For frequent tasks (interval ≤ 10 minutes), follow timeout ≤ 80% of interval; for infrequent tasks (hourly or above), set based on actual needs

Minimum Information Required Before Creating

  • --type
  • --name
  • --schedule-type
  • --cron (when --schedule-type cron)
  • --run-at (when --schedule-type scheduled)
  • --channel
  • --target-user
  • --target-session
  • --text
  • --agent-id
  • --timeout (for agent-type tasks, set an appropriate timeout based on expected execution time)

If any of this information is missing, confirm with the user before creating the task.

Creation Examples

# Recurring task (--schedule-type cron)
qwenpaw cron create \
  --agent-id <agent_id> \
  --type text \
  --schedule-type cron \
  --name "Daily Greeting" \
  --cron "0 9 * * *" \
  --channel imessage \
  --target-user "CHANGEME" \
  --target-session "CHANGEME" \
  --text "Good morning!"
# Recurring task (--schedule-type cron)
qwenpaw cron create \
  --agent-id <agent_id> \
  --type agent \
  --schedule-type cron \
  --name "Check Todos" \
  --cron "0 */2 * * *" \
  --channel dingtalk \
  --target-user "CHANGEME" \
  --target-session "CHANGEME" \
  --text "What are my pending tasks?" \
  --timeout 600

For a background agent task, add --silent to the command above. Do not use it

for text tasks.

# Scheduled one-time: remind at 9 AM tomorrow (no repeat)
qwenpaw cron create \
  --agent-id <agent_id> \
  --type text \
  --schedule-type scheduled \
  --name "Tomorrow Morning Reminder" \
  --run-at "2026-05-13T09:00:00+08:00" \
  --channel dingtalk \
  --target-user "CHANGEME" \
  --target-session "CHANGEME" \
  --text "Standup starts at 9:00." \
  --save-result-to-inbox
# Scheduled repeating: next two weeks, every day at 9 AM (14 runs)
qwenpaw cron create \
  --agent-id <agent_id> \
  --type text \
  --schedule-type scheduled \
  --name "Two-week Standup Reminder" \
  --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 "Standup starts at 9:00." \
  --save-result-to-inbox

Create from JSON

qwenpaw cron create --agent-id <agent_id> -f job_spec.json

Minimal Workflow

1. Determine whether this truly requires "future scheduling" or "periodic execution"
2. Confirm execution time/schedule
3. Confirm channel, target-user, target-session
4. Explicitly include --agent-id
5. Create the task with qwenpaw cron create
6. Manage tasks afterwards with list / state / pause / resume / delete

Reviewing Imported Jobs

Jobs imported by PawPort are disabled and protected by a non-bypassable review gate.

Review and approve imported jobs in the Console Cron Jobs page. Approval records the review but leaves the job disabled. Enable it there separately only if the user explicitly asks.


Cron Expression Examples

0 9 * * *      Every day at 9:00
0 */2 * * *    Every 2 hours
30 8 * * 1-5   Weekdays at 8:30
0 0 * * 0      Every Sunday at midnight
*/15 * * * *   Every 15 minutes

Common Mistakes

Mistake 1: Creating a cron job for a one-time immediate execution

If the task only needs to be done once right now, do not create a cron job.

Mistake 2: Not passing --agent-id

This causes the task to be assigned to the wrong agent / workspace. All cron commands must explicitly include --agent-id.

Mistake 3: Creating a task without complete information

If the user has not specified the time, schedule, target channel, or target session, ask for clarification first.

Mistake 4: Modifying existing tasks without checking first

Before pausing, resuming, or deleting, first run:

qwenpaw cron list --agent-id <agent_id>

to find the correct job_id.


Usage Tips

  • When parameters are missing, ask the user before creating
  • Before modifying/pausing/deleting, run qwenpaw cron list --agent-id <agent_id> first
  • To troubleshoot issues, use qwenpaw cron state <job_id> --agent-id <agent_id>
  • When showing commands to the user, provide complete, copy-pasteable versions
  • If the user mentions "save to inbox" (or not), explicitly include --save-result-to-inbox or --no-save-result-to-inbox
  • If the user asks for background or silent execution with no channel reply, use --silent on an agent task
  • Before creating, you can run qwenpaw chats list --agent-id <agent_id> to get valid target-user and target-session

Help Information

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

质量与来源

所属仓库
agentscope-ai/QwenPaw
仓库星标
3.6 万
最近更新
今天
采集时间
今天
commit
02b6a6d088e3
内容指纹
sha256:aeacef500d7efae
文件路径
src/qwenpaw/agents/skills/cron-en/SKILL.md

同仓库其它 Skill

查看全部 48 个
edu-math-tutorial
数学题分步讲解视频的领域知识。适用场景:(1) 用户给出一道数学题并要求做讲解/ 解题视频;(2) 用户说"讲解这道题"、"生成解题视频"、"make a math tutorial"; (3) 需要中文数学教学视频,涉及方程、公式或几何图形。本 skill 只提供领域 知识(题目拆解、讲解节奏、旁白文案规范、版式与 KaTeX 排版风格);画面、 配音与成片一律用 Creator 原生 Element 与工具从源头构建。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
professional-media-prompts
为 Creator 编译制作级视觉资产图、电影分镜图和参考生视频 Prompt。适用于 角色身份板/设定图、关键帧或多宫格分镜、短片动作节拍、R2V/I2V/T2V 提示词, 尤其适合要求角色一致性、镜头语言、参考图职责、Seedance 时间段或声音设计的 任务。不用于纯素材剪辑、只查询模型参数,或只评价已经生成的成片。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
visual-asset-design
为角色/场景/道具设计视觉资产、编写或修复 VisualVariant 与阵容图的生成 Prompt 时使用。涵盖参考图布局(艺术身份板/序列关键帧/环境研究板/道具研究 板)、构图与镜头语言、图片审核误判规避、实体 continuity 与以主图为参考 的跨 Variant 衍生设计。不用于视频 Prompt 编译(见 professional-media-prompts)、 纯素材剪辑或只评价已生成产物。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
alicloud_cli
阿里云 CLI 中文文档镜像检索与命令辅助:先走章节索引,再下钻正文页面,给出命令前必须有本地文档证据。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
terraform-cli-setup
Terraform CLI 安装与初始化技能。当用户本地未安装 Terraform 时自动完成安装,确保 terraform 命令可用并能执行 init/validate。不负责 Provider 凭证配置,凭证在实际使用时由 terraform-skill 引导。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
terraform-skill
Use when working with Terraform or OpenTofu - creating modules, writing tests (native test framework, Terratest), setting up CI/CD pipelines, reviewing configurations, choosing between testing approaches, debugging state issues, implementing security scanning (trivy, checkov), or making infrastructure-as-code architecture decisions
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
presentation-structure
Knowledge about the presentation slide format, weight system, navigation, and section structure
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
presentation-styling
Knowledge about CSS classes, component patterns, and syntax highlighting in the presentation
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
vibe-to-agentic-framework
The conceptual framework behind the presentation — what "Vibe Coding to Agentic Engineering" means, why the journey is structured the way it is, and how every slide fits the narrative arc
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
time-skill
Display the current time in Pakistan Standard Time (PKT, UTC+5). Use when the user asks for the current time, Pakistan time, or PKT.
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
weather-fetcher
Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI