Patterns

Apply Cloudflare reference architecture patterns for CRUD SaaS, collaboration, async exports, AI assistants, RAG, media, webhook ingestion, and migration. Use to turn requirements into an implementation pattern and primitive map.

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add zllovesuki/cloudflare-agent-skills --skill patterns
Manual install
git clone --depth 1 https://github.com/zllovesuki/cloudflare-agent-skills.git /tmp/cloudflare-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/cloudflare-agent-skills/skills/patterns ~/.claude/skills/patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Patterns

Use this skill when a user describes an application and needs a Cloudflare implementation shape.

## Pattern: CRUD SaaS

```text
Worker: API, auth, SSR/static assets
D1: tenants, users, records, permissions
R2: file uploads
KV: cached public/config reads
Queue: email/webhook/export jobs
Observability: request IDs and tenant IDs
```

Add Durable Objects only when a specific entity needs serialized coordination.

## Pattern: collaborative document or chat

```text
Worker: auth and WebSocket upgrade route
Durable Object per room/document: live state, message ordering, presence
D1: metadata, membership, audit/history summaries
R2: snapshots, exports, attachments
Queue: indexing, notifications, compaction
```

Key by `tenant:{tenantId}:doc:{docId}` or similar.

## Pattern: async export/report

```text
Worker: validate request, create job record, enqueue/start workflow
Workflow: durable ordered steps, retries, progress
D1: job status and metadata
R2: generated report
Queue: fan-out chunks when needed
```

Return HTTP 202 with `jobId`; expose a status endpoint.

## Pattern: RAG assistant

```text
Worker: upload/query APIs and auth
R2: original documents and parsed chunks
D1: document metadata, ACL, ingestion status
Workflow/Queue: parse, chunk, embed, index
Vectorize or AI Search: retrieval index
Workers AI / AI Gateway: embeddings and answer generation
```

Ensure retrieval filters enforce tenant/user authorization.

## Pattern: media or large file app
Read the full skill on GitHub

Details

Skill name
patterns
Path
skills/patterns/SKILL.md
Repo updated
28 April 2026

FAQ

What does the Patterns skill do?

Apply Cloudflare reference architecture patterns for CRUD SaaS, collaboration, async exports, AI assistants, RAG, media, webhook ingestion, and migration. Use to turn requirements into an implementation pattern and primitive map.

How do I install the Patterns skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add zllovesuki/cloudflare-agent-skills --skill patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Patterns popular?

It lives in zllovesuki/cloudflare-agent-skills, which has 9 GitHub stars and 0 forks.

Related skills

Agents

9

zllovesuki/cloudflare-agent-skills

Build Cloudflare Agents SDK applications for autonomous multi-step tool use, AIChatAgent chat agents, Durable Object-backed state, tools, scheduling, callable methods, WebSockets, SQL state, and constrained agent behavior. Use when RAG or Workflows are not enough.

AI, LLMs & Agents

Cloudflare Architecture

9

zllovesuki/cloudflare-agent-skills

Choose Cloudflare Developer Platform primitives and architecture shapes before writing code. Use for Cloudflare Workers, Durable Objects, D1, R2, Queues, Workflows, Containers, Realtime, Workers AI, Vectorize, AI Search, Agents, cost, limits, and migration decisions.

Software Development

Containers

9

zllovesuki/cloudflare-agent-skills

Decide when to use Cloudflare Containers instead of Workers and design container-backed workloads, native binaries, long-running processes, image processing, larger runtime shapes, and Worker frontends. Use as an escape hatch when Workers constraints do not fit.

DevOps & Cloud

RAG Vectorize AI Search

9

zllovesuki/cloudflare-agent-skills

Build retrieval augmented generation on Cloudflare with AI Search, Vectorize, Workers AI embeddings, chunking, metadata filters, citations, ingestion pipelines, reranking, and grounded answer generation. Use when implementing RAG, semantic search, or document QA.

AI, LLMs & Agents

Model Evaluation Reviewer

9

shisuidata/ss-data-skills

Use when reviewing or designing the evaluation framework for a machine learning model. Checks metric selection, train-test split, offline-online gap, cold start, business translation of model scores, and monitoring strategy. 中文触发词:模型评估、AUC、模型能不能上线、模型效果审查。

AI, LLMs & Agents

Storage Selection

9

zllovesuki/cloudflare-agent-skills

Choose the right Cloudflare storage primitive: D1, R2, KV, Durable Object storage, Hyperdrive, Vectorize, AI Search, cache, or external databases. Use before modeling data, writing migrations, or deciding consistency/cost trade-offs.

AI, LLMs & Agents

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.