schedule
БесплатноБез исполняемых скриптовНе проверенCreate, update, list, or run scheduled cloud agents (routines) that execute on a cron schedule.
от lza6★ 19 звёзд на GitHubОб этом скилле
Schedule Cloud Agents
You are helping the user schedule, update, list, or run cloud Claude Code agents. These are NOT local cron jobs — each routine spawns a fully isolated cloud session (CCR) in Anthropic's cloud infrastructure, either on a recurring cron schedule or once at a specific time. The agent runs in a sandboxed environment with its own git checkout, tools, and optional MCP connections.
First Step
Your FIRST action must be a single AskUserQuestion tool call (no preamble). Use this EXACT string for the question field — do not paraphrase or shorten it:
"What would you like to do with scheduled cloud agents?"
Set header: "Action" and offer the four actions (create/list/update/run) as options. After the user picks, follow the matching workflow below.
What You Can Do
Use the RemoteTrigger tool (load it first with ToolSearch select:RemoteTrigger; auth is handled in-process — do not use curl):
{action: "list"}— list all routines{action: "get", trigger_id: "..."}— fetch one routine{action: "create", body: {...}}— create a routine{action: "update", trigger_id: "...", body: {...}}— partial update{action: "run", trigger_id: "..."}— run a routine now{action: "list_runs", trigger_id: "..."}— the routine's recent run sessions, most recently active first{action: "get_run_log", session_id: "..."}— condensed log of one run (provisioning, tool calls and errors, permission denials, API retries, final result)
To debug a routine that misbehaved, call list_runs and then get_run_log on the run in question. A fire that was skipped or refused before a session existed (routine paused, a fire cap, a kill switch) or that failed its pre-creation checks (repository access, environment) leaves no run in list_runs, and a routine that posts into an existing session adds to that session rather than a new run; when the list is empty or short, check the routine itself with get rather than concluding it never fired.
(Note: the API uses trigger_id as the parameter name, but the user-facing term is "routine".)
You CANNOT delete routines. If the user asks to delete, direct them to: https://claude.ai/code/routines
Create body shape
For a recurring schedule:
{
"name": "AGENT_NAME",
"cron_expression": "CRON_EXPR",
"enabled": true,
"job_config": {
"ccr": {
"environment_id": "ENVIRONMENT_ID",
"session_context": {
"model": "claude-sonnet-5",
"sources": [
{"git_repository": {"url": "{{GIT_REPO_URL}}"}}
],
"allowed_tools": ["Bash", "Read", "Write", "Edit", "Glob", "Grep"]
},
"events": [
{"data": {
"uuid": "<lowercase v4 uuid>",
"session_id": "",
"type": "user",
"parent_tool_use_id": null,
"message": {"content": "PROMPT_HERE", "role": "user"}
}}
]
}
}
}
For a one-time run, replace "cron_expression": "CRON_EXPR" with "run_once_at": "YYYY-MM-DDTHH:MM:SSZ" (RFC3339 UTC, must be in the future). Everything else is identical.
Generate a fresh lowercase UUID for events[].data.uuid yourself.
Every events[].data.message must be the API message shape {"role": "user", "content": "..."} — the role field is required, never omit it.
Available MCP Connectors
These are the user's currently connected claude.ai MCP connectors:
{{CONNECTORS_LIST}}
When attaching connectors to a routine, use the connector_uuid and name shown above (the name is already sanitized to only contain letters, numbers, hyphens, and underscores), and the connector's URL. The name field in mcp_connections must only contain [a-zA-Z0-9_-] — dots and spaces are NOT allowed.
Important: Infer what services the agent needs from the user's description. For example, if they say "check Datadog and Slack me errors," the agent needs both Datadog and Slack connectors. Cross-reference against the list above and warn if any required service isn't connected. If a needed connector is missing, direct the user to https://claude.ai/customize/connectors to connect it first.
Environments
Every routine requires an environment_id in the job config. This determines where the cloud agent runs. Ask the user which environment to use.
Available environments: {{ENVIRONMENTS_LIST}}
Use the id value as the environment_id in job_config.ccr.environment_id.
API Field Reference
Create Routine — Required Fields
name(string) — A descriptive name- Exactly ONE of:
cron_expression(string) — 5-field cron in UTC. Minimum interval is 1 hour.run_once_at(string) — RFC3339 UTC timestamp. Must be in the future. Fires once, then auto-disables.
job_config(object) — Session configuration (see structure above)
Create Routine — Optional Fields
enabled(boolean, default: true)mcp_connections(array) — MCP servers to attach:[{"connector_uuid": "uuid", "name": "server-name", "
Установить schedule в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл schedule?
Create, update, list, or run scheduled cloud agents (routines) that execute on a cron schedule.
Как установить скилл schedule?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл schedule запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic