بنقرة واحدة
scheduled-task
当用户需要创建、管理、查询定时任务时使用。帮助用户设置定期执行的自动化任务,如每日汇总、定期检查、周期性分析等。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
当用户需要创建、管理、查询定时任务时使用。帮助用户设置定期执行的自动化任务,如每日汇总、定期检查、周期性分析等。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Expert in building cross-platform desktop applications using web technologies (HTML/CSS/JS) with the Electron framework.
TypeScript and JavaScript expert with deep knowledge of type-level programming, performance optimization, monorepo management, migration strategies, and modern tooling.
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
Refine academic writing for computer science research papers targeting top-tier venues (NeurIPS, ICLR, ICML, AAAI, IJCAI, ACL, EMNLP, NAACL, CVPR, WWW, KDD, SIGIR, CIKM, and similar). Use this skill whenever a user asks to improve, polish, refine, edit, or proofread academic or research writing — including paper drafts, abstracts, introductions, related work sections, methodology descriptions, experiment write-ups, or conclusion sections. Also trigger when users paste LaTeX content and ask for writing help, mention "camera-ready", "rebuttal", "paper revision", or reference any academic venue or conference. This skill handles both full paper refinement and section-by-section editing.
The Baidu Baike Component is a knowledge service tool designed to query authoritative encyclopedia explanations for various nouns. Its core function is given a specific "noun" (object, person, location, concept, event, etc.) provided by the user, it returns a standardized, detailed entry explanation sourced from Baidu Baike.
Baidu Scholar Search - Search Chinese and English academic literature (journals, conferences, papers, etc.)
| name | scheduled_task |
| description | 当用户需要创建、管理、查询定时任务时使用。帮助用户设置定期执行的自动化任务,如每日汇总、定期检查、周期性分析等。 |
定时任务管理功能允许用户创建、查询、修改和删除定时执行的自动化任务。系统会按照设定的时间规则自动执行任务,并将结果保存到文件中。
适用场景:
用户可以通过 ScheduledTaskManager 工具创建定时任务。
调度类型:
cron - 使用 cron 表达式定义复杂的时间规则
格式: "分 时 日 月 周"
示例:
- "0 9 * * *" 每天9点
- "0 */2 * * *" 每2小时
- "0 9 * * 1-5" 工作日9点
- "30 14 1 * *" 每月1号14:30
interval - 固定时间间隔(秒)
示例:
- "3600" 每小时
- "86400" 每天
- "1800" 每30分钟
datetime - 一次性任务(ISO 8601格式)
示例:
- "2026-04-10T14:30:00" 在2026年4月10日14:30执行一次
示例对话:
用户: 请帮我创建一个每天早上9点的数据汇总任务
助手: 好的,我来为您创建一个每日数据汇总的定时任务。
[调用 ScheduledTaskManager 工具]
{
"operation": "create",
"task_name": "每日数据汇总",
"prompt": "请汇总昨天的数据分析结果,包括:1) 用户活跃度 2) 系统性能指标 3) 异常事件统计",
"schedule_type": "cron",
"schedule_config": "0 9 * * *",
"task_description": "每天早上9点自动生成前一天的数据汇总报告"
}
✅ 定时任务创建成功!
任务ID: task_abc12345
下次执行: 2026-04-10T09:00:00
查看当前用户的所有定时任务。
示例对话:
用户: 我有哪些定时任务?
助手: [调用 ScheduledTaskManager 工具]
{
"operation": "list"
}
共有 3 个定时任务:
- **每日数据汇总** (task_abc12345)
- 状态: enabled
- 调度: cron - 0 9 * * *
- 下次执行: 2026-04-10T09:00:00
- 执行次数: 15
- **系统监控** (task_def67890)
- 状态: enabled
- 调度: interval - 3600
- 下次执行: 2026-04-09T20:30:00
- 执行次数: 48
查看特定任务的完整配置信息。
示例:
{
"operation": "get",
"task_id": "task_abc12345"
}
删除不再需要的定时任务。
示例对话:
用户: 删除那个系统监控任务
助手: [调用 ScheduledTaskManager 工具]
{
"operation": "delete",
"task_id": "task_def67890"
}
✅ 任务已删除: task_def67890
暂时禁用或重新启用任务,而不删除它。
示例:
{
"operation": "toggle",
"task_id": "task_abc12345",
"enabled": false
}
查看任务的执行历史记录,包括成功/失败状态、执行时长等。
示例:
{
"operation": "get_results",
"task_id": "task_abc12345",
"limit": 10
}
获取任务生成的输出文件列表。每次任务执行都会生成一个 Markdown 格式的输出文件。
示例:
{
"operation": "get_outputs",
"task_id": "task_abc12345",
"limit": 10
}
读取特定输出文件的完整内容。
示例:
{
"operation": "read_output",
"file_path": "/path/to/outputs/task_abc12345/20260409_090000.md"
}
输出文件位置:
<base_dir>/scheduled_tasks/outputs/<task_id>/<timestamp>.md
输出文件格式:
# 定时任务执行结果
**任务名称:** 每日数据汇总
**任务ID:** task_abc12345
**执行时间:** 2026-04-09 09:00:00
**用户ID:** user@example.com
**会话ID:** thread_xyz
---
## 执行内容
请汇总昨天的数据分析结果...
---
## 执行结果
[助手生成的汇总报告内容]
创建任务时,在 prompt 字段中清晰描述:
定期检查:
get_results)error_count)read_output)Q: 任务没有按时执行?
enablednext_run 时间是否正确Q: 如何停止正在运行的任务?
disabledQ: 执行结果保存在哪里?
get_outputs 查看输出文件列表read_output 读取具体文件内容<base_dir>/scheduled_tasks/outputs/<task_id>/Q: cron 表达式怎么写?
格式: 分 时 日 月 周
* * * * *
│ │ │ │ │
│ │ │ │ └─ 周几 (0-6, 0=周日)
│ │ │ └─── 月份 (1-12)
│ │ └───── 日期 (1-31)
│ └─────── 小时 (0-23)
└───────── 分钟 (0-59)
特殊符号:
* - 任意值
*/n - 每n个单位
n-m - 范围
n,m - 列举
当用户提到以下需求时,应该使用定时任务功能:
✅ 应该使用:
❌ 不应该使用:
创建任务时应明确:
需要帮助? 随时询问如何创建或管理定时任务!