跳至主要内容
小龙虾小龙虾AI
🤖

Schedule

Program recurring or one-time tasks. User defines what to do, skill handles when.

下载2.2k
星标2
版本1.0.2
效率工具
安全通过
💬Prompt

技能说明


name: Schedule slug: schedule version: 1.0.2 description: Program recurring or one-time tasks. User defines what to do, skill handles when. changelog: Clarified user-driven execution model, removed assumed access patterns metadata: {"clawdbot":{"emoji":"📅","requires":{"bins":[]},"os":["linux","darwin","win32"]}}

Data Storage

~/schedule/
├── jobs.json           # Job definitions
├── preferences.json    # Timezone, preferred times
└── history/            # Execution logs
    └── YYYY-MM.jsonl

Create on first use: mkdir -p ~/schedule/history

Scope

This skill:

  • ✅ Stores scheduled job definitions in ~/schedule/
  • ✅ Triggers jobs at specified times
  • ✅ Learns timezone and time preferences from user

Execution model:

  • User explicitly defines WHAT the job does
  • User grants any permissions needed for the job
  • Skill only handles WHEN, not WHAT

This skill does NOT:

  • ❌ Assume access to any external service
  • ❌ Modify system crontab or launchd
  • ❌ Execute jobs without user-defined instructions

Quick Reference

TopicFile
Cron expression syntaxpatterns.md
Common mistakestraps.md
Job formatjobs.md

Core Rules

1. User Defines Everything

When user requests a scheduled task:

  1. WHAT: User specifies the action (may require other skills/permissions)
  2. WHEN: This skill handles timing
  3. HOW: User grants any needed access explicitly

Example flow:

User: "Every morning, summarize my emails"
Agent: "I'll schedule this for 8am. This will need email access — 
        do you want me to use the mail skill for this?"
User: "Yes"
→ Job stored with explicit reference to mail skill

2. Simple Requests

RequestAction
"Remind me to X at Y"Store job, confirm
"Every morning do X"Ask time, store job
"Cancel X"Remove from jobs.json

3. Confirmation Format

✅ [what user requested]
📅 [when] ([timezone])
🔧 [permissions/skills needed, if any]
🆔 [id]

4. Job Persistence

In ~/schedule/jobs.json:

{
  "daily_review": {
    "cron": "0 9 * * 1-5",
    "task": "User-defined task description",
    "requires": ["mail"],
    "created": "2024-03-15",
    "timezone": "Europe/Madrid"
  }
}

The requires field explicitly lists any skills/access the job needs.

5. Execution

When scheduled time arrives:

  • Agent executes the user-defined task
  • Uses only permissions user explicitly granted
  • Logs result to history/

6. Preferences

After first job, store in preferences.json:

  • Timezone
  • Preferred "morning" / "evening" times
  • Default notification style

如何使用「Schedule」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Schedule」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能