cron
Skill này làm gì
Skill này quản lý các tác vụ chạy tự động vào một thời điểm đã định hoặc theo lịch lặp lại. Skill dành cho người dùng muốn nhắc việc, kiểm tra hoặc báo cáo định kỳ.
Khi nào nên dùng
- ✓Khi bạn muốn một tác vụ chạy mỗi ngày, mỗi tuần hoặc vào một thời điểm cụ thể.
- ✓Khi bạn cần tạm dừng, tiếp tục hoặc thay đổi một tác vụ theo lịch đang có.
- ✓Khi bạn muốn một tác vụ chạy lặng lẽ ở nền, với kết quả được lưu trong lịch sử của nó.
Liên kết skill
https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/cron-en/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập một công việc gửi tôi bản tóm tắt vào lúc 9 giờ sáng mỗi ngày làm việc.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill tạo, liệt kê, cập nhật, tạm dừng hoặc xóa các công việc theo lịch thông qua một công cụ dòng lệnh. Mỗi lệnh đều chỉ rõ agent mà nó thuộc về, để tác vụ không rơi vào không gian làm việc mặc định.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Only use cron for future scheduled or periodic execution
- If it only needs to be done once immediately, do not create a cron job
- Before creating, confirm execution time/schedule, target channel, target-user, and target-session
- All cron commands must explicitly include
--agent-id - Do not rely on the default agent, or the task may end up in the default workspace
- For an agent task that should run without channel output, add
--silent; execution, session history, trace, and optional Inbox recording still continue - Never run or resume an imported job while
requires_reviewis 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
scheduledtasks: pass only--run-atand do not pass any--repeat-*options - For repeating
scheduledtasks: pass--repeat-every-daysand 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
- fixed count:
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:
- If the agent task involves web search, code execution, or multi-step tool calls, set
--timeout 600or higher - 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:
--timeoutshould not exceed 900 seconds - Every 10 minutes:
--timeoutrecommend no more than 80% of interval (i.e. 480 seconds) - Daily:
--timeoutcan be larger, no special restriction needed
- Every 15 minutes:
- 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)- `--
Câu hỏi thường gặp
Tôi có nên dùng nó cho tác vụ một lần không?
Không. Nếu tác vụ chỉ cần chạy một lần, ngay bây giờ, skill nói hãy làm trực tiếp thay vì lập lịch.
Tại sao phải cung cấp ID của agent?
Nếu không có nó, tác vụ có thể rơi vào không gian làm việc mặc định, nên skill luôn yêu cầu ID này.
Chế độ im lặng làm gì?
Nó chạy tác vụ của agent mà không gửi đầu ra đến kênh nào, nhưng vẫn giữ lại lịch sử.
Chi tiết
Mô tả gốc của tác giả
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.
repo: agentscope-ai/QwenPaw
Độ phổ biến
- Sao GitHub
- 37k
- Vị trí xếp hạng
- #7574
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
terraform-skill
37kGiúp agent của bạn viết, kiểm thử và xem xét mã hạ tầng Terraform hoặc OpenTofu, bao gồm module, CI/CD, quét bảo mật và các vấn đề về state.
computer_use
37kGiúp agent của bạn thao tác một ứng dụng Windows hoặc macOS đang chạy bằng cách quan sát màn hình, nhấp chuột và kiểm tra từng kết quả, khi không có công cụ trực tiếp nào làm được việc.
browser
37kGiúp agent của bạn điều khiển trình duyệt web thực qua QwenPaw Browser SDK, đọc trang, thao tác trên đó và kiểm tra kết quả trước khi báo cáo thành công.
channel_message
37kGiúp agent của bạn gửi một tin nhắn một chiều đến một kênh hoặc phiên trò chuyện cụ thể, chẳng hạn thông báo khi tác vụ xong, sau khi nó đã tìm được đích đúng.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.