Shell Tool · engineering · Sentinel

Schedule a Workflow

Build a CF Workflow — multi-day durable orchestration with sleeps + retries that survive redeploys.

Updated today
View as MarkdownsentinelsonnetstandardMax 10 turns

Overview

Implements workflows/SKILL.md. Scaffolds a Cloudflare Workflow that runs on a schedule, sleeps arbitrary durations between steps (hours, days, weeks), retries failed steps with backoff, and resumes after Worker redeploys. Each step must be idempotent (re-running it produces the same result). Best for slow pipelines, daily digests, multi-day onboarding sequences, retry-tomorrow-on-failure jobs.

When to use this

  • user wants something to run daily / weekly / on a cadence
  • user says 'run this every morning' / 'schedule this workflow' / 'do X then sleep a day then Y'
  • pipeline needs to retry on failure with backoff

When NOT to use this

  • user wants a one-shot task → just run it
  • the schedule is intra-second / sub-minute → use a Durable Object alarm or queue instead
  • user wants an autonomous agent on the agent-runtime → use build-agent

Example prompts

schedule a daily digest of competitor news at 9am UTC
build a workflow that emails the user every Monday with last week's metrics
run scraper, sleep 1 day, summarize, sleep 1 day, send report

Inputs and output

Inputs

FieldDescription
purposewhat the workflow does in one sentence
cadencehow often it runs (e.g. '@daily 9am UTC')

Output

Workflow file path in /work + deploy instructions + the cron trigger config.

Runtime profile

What the engine commits when this skill runs.

PropertyValueMeaning
Model tiersonnetThe balanced default model class. Trades quality against cost for the vast majority of skill runs.
Cost classstandardThe balanced default model. Right for most skills.
Turn budget10Hard cap on tool-calling iterations before the engine forces a final answer.
ExecutionsynchronousRuns inside the live turn; result lands in the same response.

Under the hood

Tools the engine exposes to this skill and integrations it needs.

ResourceKind
shell_exectool
shell_writetool

Tags: engineering, workflow, schedule

Execution template

Shell tools dispatch via a command template. The model substitutes user inputs into the placeholders before firing the underlying tool.

shell_execbash
1follow workflows/SKILL.md; scaffold a Workflow with {{cadence}} for {{purpose}}

Invoking this from an agent

Three paths reach this skill. From the chat UI, a user can type the persona slash command followed by a natural request and the discovery step resolves to this skill automatically. From the MCP server, fetch the skill detail with get_skill({id: "schedule-workflow"}) and then invoke it through the agent runtime once the authenticated tier ships. From your own code, hit /docs/skills/schedule-workflow/llm.txt for the token-efficient markdown body and feed it to your model directly.

Note
Every skill page has a canonical permalink and a markdown alternate that LLM crawlers consume via Accept: text/markdown. The full machine-readable catalog lives at /.well-known/agent-skills/index.json.