AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

cloudflare

Discover and choose Cloudflare products for apps, APIs, AI agents, storage, networking, and security. Use for architecture and product selection, including when the user describes a need without naming a Cloudflare product; then find the relevant skill or documentation.

Original source
cloudflare
License
Apache-2.0
Pinned revision
e44f580f9c4fa3bf268e284ae7706c7954ba31fd

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read cloudflare--cloudflare at revision e44f580f9c4fa3bf268e284ae7706c7954ba31fd, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 135

references/workflows/patterns.md

Workflow Patterns

Design Decisions

Read Rules of Workflows before choosing step boundaries or concurrency patterns.

  • Separate work into steps that can be retried independently. Persist results through step returns and keep side effects inside steps.
  • Make side effects safe to repeat. A retry can happen after an external write succeeds; use the destination's idempotency mechanism or atomic deduplication. A separate check followed by a write does not itself guarantee idempotency.
  • Base step names, loops, and branches on stable input or persisted results. In-memory state and fresh time/random values cannot serve as durable replay state.
  • Await step operations, and check the documented replay behavior before combining steps in parallel or racing them.
  • Keep large data in external storage when appropriate and pass references between steps; consult current return-type and size constraints.

Examples and Orchestration

| Task | Documentation | | --- | --- | | Process images with human approval; handle approval events and timeouts | Human-in-the-loop image tagging | | Implement a payment and notification sequence | Pay cart and send invoice | | Export data to object storage | Export and save D1 database | | Delay lifecycle follow-ups or retry transient failures | Sleeping and retrying | | Schedule jobs or start child Workflows | Trigger Workflows | | Design parallel work, races, conditional steps, and batch creation | Rules of Workflows |

Testing Workflows

Fetch Vitest setup for current dependencies and configuration, then use the Workflow test APIs for introspection, step/event mocks, sleep controls, and cleanup.

Test retry behavior, event arrival and timeout paths, and duplicate external effects. Use documented introspection waits to observe completion rather than assuming a newly created instance has finished.

See configuration.md, api.md, and gotchas.md.