Walk through setting up a Claude Code cloud-hosted scheduled routine — cron, GitHub webhook, or API trigger.
/schedule-routine [--list] [--delete <name>]
/schedule-routine
What you’ll see: a 6-step guided setup — name, repository, prompt, trigger, connectors, validate & deploy. Progress is saved to .claude/.routine-draft.json, so you can stop and resume across sessions.
/schedule-routine # start the guided 6-step setup
/schedule-routine --list # list existing routines (not scoped to the current repo)
/schedule-routine --delete pr-digest # delete a named routine
| Flag | Values | Default | What it does |
|---|---|---|---|
--list |
— | off | List existing routines (name, trigger, last run, status) |
--delete |
<name> |
— | Delete a named routine |
If a draft from a previous session exists, you’re first asked whether to resume it or start fresh (user-confirmation checkpoint). Then the guided setup runs:
gh CLI and asks you to pick one (user-confirmation checkpoint); falls back to manual org/repo entry.routines create syntax differs from what the skill expects, it falls back to showing manual web-UI deployment steps instead.After deployment you get a post-deployment checklist: test the routine, verify connector authorizations, confirm it appears in --list, and set up a /monitor ci watcher if you want to be notified of routine failures.
.claude/.routine-draft.json — in-progress setup state (deleted after successful deployment)| Problem | Fix |
|---|---|
Claude Code CLI not found |
Install the Claude Code CLI and authenticate, then re-run — your draft is saved, nothing is lost |
500 error on --list / --delete |
Known API bug (claude-code issue #43440) — routines still execute correctly; only management operations are affected |
gh CLI not authenticated in Step 2 |
Type the repo manually as org/repo |
| Prompt flagged as vague or context-dependent | Routines run with no conversation memory — rewrite the prompt to be fully self-contained |
| Invalid cron expression | The skill shows the format and common examples, then asks again |