cloudflare-workflows:setup

cloudflare-workflows:setup is a command for coding agents from secondsky/claude-skills. It costs 40 tokens per session (4,074 once invoked), scanned A, original, MIT.

A guided setup tool for adding Cloudflare Workflows to a Cloudflare Worker project. It can initialize a project, configure it, create the workflow code structure, and prepare deployment.

In plain words
What is it for?
Use it to create a first workflow or add workflow infrastructure to an existing Worker project. It also checks whether the project is new or already configured.
Why use it?
It removes the need to assemble the project files and settings by hand when starting a workflow.

Command

Part of the cloudflare-workflows plugin — 1 skill, 4 commands, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/secondsky/claude-skills/workflow-setup
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Or install cloudflare-workflows, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloudflare-workflows:setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/workflow-setup.svg)](https://agentmods.dev/commands/secondsky/claude-skills/workflow-setup)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/workflow-setup"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/workflow-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,074 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00040 $0.04074
Opus 5 $0.00020 $0.02037
Sonnet 5 $0.00008 $0.00815
Haiku 4.5 $0.00004 $0.00407

Measured yesterday against content hash f7cb7774fdb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloudflare-workflows:setup scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

async fetch(req: Request, env: Env): Promise<Response> {
plugins/cloudflare-workflows/commands/workflow-setup.md · 669 lines

How it starts

The opening of the file, as written. The whole thing — 669 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Workflow Setup Wizard

Overview

Complete interactive setup wizard for Cloudflare Workflows: project initialization, configuration, class scaffolding, and deployment preparation.

Prerequisites

Check before starting:

  • Cloudflare account with wrangler authenticated (wrangler whoami)
  • Node.js/Bun installed
  • Existing Worker project OR willingness to create one
  • Write access to wrangler.jsonc

Steps

Step 1: Project Detection

Check if this is a new or existing project:

# Check for wrangler.jsonc
if [ -f "wrangler.jsonc" ]; then
  EXISTING_PROJECT=true
else
  EXISTING_PROJECT=false
fi

# Check for package.json
if [ -f "package.json" ]; then
  HAS_PACKAGE_JSON=true
else
  HAS_PACKAGE_JSON=false
fi

If new project ($EXISTING_PROJECT == false):

Use AskUserQuestion:

  • Question: "No Worker project detected. Create new project?"
  • Options:
    • "Yes - Create new Worker project" → Run npm create cloudflare@latest
    • "No - I'll set up manually" → Exit with setup instructions

If existing project: Continue to Step 2


Step 2: Gather Workflow Requirements

Use AskUserQuestion to collect setup preferences.

Question 1: Workflow Name

  • Header: "Workflow Name"
  • Question: "What should your workflow be named?"
  • multiSelect: false
  • Options:
    • label: "Custom name (I'll type it)"
    • description: "Enter a unique workflow name (e.g., order-processing, user-onboarding)"

Capture input: Ask user to provide workflow name

  • Validation: Must be lowercase, alphanumeric + hyphens only (^[a-z0-9-]+$)
  • Store as: workflowName
  • Generate: className = PascalCase version (e.g., "order-processing" → "OrderProcessing")

Question 2: Workflow Purpose

  • Header: "Workflow Type"
  • Question: "What type of workflow are you building?"
  • multiSelect: false
  • Options:
    • label: "Sequential Processing"
    • description: "Multi-step data processing with automatic retries"

Read the full file on GitHub · 669 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 669 lines · 40 tokens per session scan A f7cb7774fdb8

Subscribe to this mod's changes

cloudflare-workflows:setup is a command published in the GitHub repository secondsky/claude-skills (214 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 4,074 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.