dtyq/magic/using-cron
Claude Code and agent skill by dtyq/magic
- community
Checking that the SKILL.md file is still in the repository.
Manage scheduled tasks — create, query, update, and delete. CRITICAL - When user message contains any future time intent (e.g. "in 2 days", "tomorrow at 8am", "every morning"), you MUST load this skill first. Use the Code Mode tools described by this skill.
Install
npx vskill@latest install dtyq/magic/using-cronSKILL.md
The same SKILL.md was published earlier as dtyq/magic/using-cron.
Scheduled Task Management
Use this skill to create, list, inspect, update, and delete magic-service scheduled tasks.
How it works
Scheduled task capabilities are exposed as Code Mode tools (scheduled_task_*). They are not directly callable as standalone tool calls. Invoke them through run_sdk_snippet and sdk.tool.call:
tool.call(name, params) returns:
| Field | Meaning | |
|---|---|---|
result.ok | Whether the operation succeeded. Check this first. | |
result.content | JSON text suitable for reading and reasoning. | |
result.data | Structured payload for follow-up calls. |
Use the Code Mode tools below for every scheduled-task operation.
Available Tools
| Tool name | Purpose | |
|---|---|---|
scheduled_task_create | Create a one-time or recurring scheduled task. | |
scheduled_task_list | List scheduled tasks in the current project. | |
scheduled_task_get | Get one scheduled task by ID. | |
scheduled_task_update | Partially update one scheduled task. | |
scheduled_task_delete | Delete one scheduled task. |
The tools automatically read topic_id, project_id, and current model_id from the current session. Do not pass those IDs yourself.
Schedule Types
schedule_type | Meaning | day | |
|---|---|---|---|
no_repeat | One-time execution | Execution date YYYY-MM-DD (required) | |
daily_repeat | Repeat daily | Not needed | |
weekly_repeat | Repeat weekly | Weekday 0-6, 0=Monday ... 6=Sunday (required) | |
monthly_repeat | Repeat monthly | Day of month 1-31 (required) |
time is always required and must be HH:MM.
day must be passed as a quoted string (e.g. "2"), not a bare integer. For weekly_repeat, day uses 0=Monday, 1=Tuesday, 2=Wednesday, 3=Thursday, 4=Friday, 5=Saturday, 6=Sunday.
deadline is optional for recurring tasks. Use YYYY-MM-DD HH:MM:SS; YYYY-MM-DD is normalized to YYYY-MM-DD 00:00:00.
Agent Modes
agent_mode is optional. Omit it by default; the scheduled task will use the current running mode.
Use agent_mode only when the user explicitly asks for a mode. Built-in values:
agent_mode | Meaning | |
|---|---|---|
magic | General mode | |
slider | Slide generation mode | |
data-analyst | Data analysis mode | |
design | Design mode | |
audio | Audio summary mode |
The tool maps these friendly values to the corresponding magic-service mode identifiers internally.
If the user gives a custom employee identifier/code, pass that value as agent_mode. The tool maps it internally.
Create
Weekly example — pass day as a quoted string; 0=Monday ... 6=Sunday:
For long content, pass a Python triple-quoted string. Do not write a temp script:
For custom employees, keep this parameter contract:
specify_topic
Pass specify_topic=1 only when both conditions hold:
- The task is recurring:
daily_repeat,weekly_repeat, ormonthly_repeat. - The next run time or trigger depends on the current or previous run result, such as "run again 3 days after each completion" or "decide next time based on last result".
For one-time tasks, or fixed schedules that do not depend on previous results, keep specify_topic=0.
List
The list is scoped to the current project.
Get
Update
Only pass fields that should change. When changing time configuration, pass schedule_type and time together.
Delete
Rules
- Never create scheduler scripts or ask the shell to run cron scripts.
- Always call
scheduled_task_listwhen the user asks what scheduled tasks exist. - After
scheduled_task_create, keep the returnedid; use it for get/update/delete. - Check
result.okbefore relying onresult.contentorresult.data. - Surface tool errors directly; do not silently retry with guessed workspace, topic, or project IDs.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbackend/super-magic/agents/skills/using-cron/SKILL.md
Popularity
- Repository stars
- 5,050
- Repository forks
- 566
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 14 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dtyq/magic/using-cron)