jackspace/claudeskillz/cloudflare-full-stack-scaffold
- community
Checking that the SKILL.md file is still in the repository.
Production-ready starter project for React 19 + Cloudflare Workers + Hono, with D1, KV, R2, and Workers AI pre-configured plus opt-in enable scripts for Clerk auth, AI chat, Queues, and Vectorize. Ships Tailwind v4, shadcn/ui, TypeScript, the Vite Cloudflare plugin, AI SDK provider setup (Workers AI, OpenAI, Anthropic, Gemini), planning docs, and a session handoff protocol. Use when starting a new full-stack Cloudflare project, scaffolding a React + Hono web app, building an AI chat or RAG application, or needing a complete production boilerplate instead of hours of manual setup. Prevents service binding mistakes, CORS errors, frontend-backend connection issues, Clerk integration problems, and AI SDK configuration confusion.
Install
npx vskill@latest install jackspace/claudeskillz/cloudflare-full-stack-scaffoldSKILL.md
Cloudflare Full-Stack Scaffold
Complete, production-ready starter project for building full-stack applications on Cloudflare with React, Hono, AI SDK, and all Cloudflare services pre-configured.
When to Use This Skill
Use this skill when you need to:
- Start a new full-stack Cloudflare project in minutes instead of hours
- Build AI-powered applications with chat interfaces, RAG, or tool calling
- Have core Cloudflare services ready (D1, KV, R2, Workers AI)
- Opt-in to advanced features (Clerk Auth, AI Chat, Queues, Vectorize)
- Use modern best practices (Tailwind v4, shadcn/ui, AI SDK, React 19)
- Include planning docs and session handoff from the start
- Choose your AI provider (Workers AI, OpenAI, Anthropic, Gemini)
- Enable features only when needed with simple npm scripts
- Avoid configuration errors and integration issues
What This Skill Provides
Complete Scaffold Project
A fully working application you can copy, customize, and deploy immediately:
Result: Full-stack app running in ~5 minutes with:
- ✅ Frontend and backend connected
- ✅ Core Cloudflare services configured (D1, KV, R2, Workers AI)
- ✅ AI SDK ready with multiple providers
- ✅ Planning docs and session handoff protocol
- ✅ Dark mode, theming, UI components
- ✅ Optional features (1 script each to enable):
- Clerk Auth (
npm run enable-auth) - AI Chat UI (
npm run enable-ai-chat) - Queues (
npm run enable-queues) - Vectorize (
npm run enable-vectorize)
Scaffold Structure
Helper Scripts
`scripts/setup-project.sh`:
- Copies scaffold to new directory
- Renames project in package.json
- Initializes git repository
- Runs npm install
- Prompts to initialize services
`scripts/init-services.sh`:
- Creates D1 database via wrangler
- Creates KV namespace
- Creates R2 bucket
- Updates wrangler.jsonc with IDs
- (Queues and Vectorize created when enabled)
`scripts/enable-auth.sh`:
- Uncomments all Clerk auth patterns
- Enables ProtectedRoute component
- Enables auth middleware
- Prompts for Clerk API keys
- Updates .dev.vars
`scripts/enable-ai-chat.sh`:
- Uncomments ChatInterface component
- Uncomments Chat page
- Enables AI SDK UI patterns
- Adds chat route to App.tsx
- Prompts for AI provider API keys
`scripts/enable-queues.sh`:
- Uncomments Queues routes and bindings
- Enables async message processing
- Provides queue creation instructions
- Updates backend and config files
`scripts/enable-vectorize.sh`:
- Uncomments Vectorize routes and bindings
- Enables vector search and RAG
- Provides index creation instructions
- Configures embedding dimensions
Reference Documentation
`references/quick-start-guide.md`:
- 5-minute setup walkthrough
- First deployment guide
- Common customizations
`references/service-configuration.md`:
- Details on each Cloudflare service
- When to use each one
- Configuration options
`references/ai-sdk-guide.md`:
- AI SDK Core vs UI
- Provider switching patterns
- Streaming and tool calling
- RAG implementation
`references/customization-guide.md`:
- Removing unused services
- Adding new routes/pages
- Customizing theme
- Project structure best practices
`references/enabling-auth.md`:
- Clerk setup walkthrough
- JWT template configuration
- Testing auth flow
Key Integrations
1. AI SDK Integration (Three Approaches)
Direct Workers AI Binding (fastest):
AI SDK with Workers AI (portable code, same infrastructure):
AI SDK with External Providers (OpenAI, Anthropic, Gemini):
AI SDK v5 UI - Chat Interface (COMMENTED, enable with script):
2. Forms & Data Fetching (React Hook Form + Zod + TanStack Query)
Industry-Standard Libraries for Production Apps:
React Hook Form - Performant form state management:
Zod v4 - TypeScript-first schema validation:
TanStack Query v5 - Smart data fetching & caching:
Full-Stack Validation Pattern:
- ✅ Define schema in
shared/schemas/(single source of truth) - ✅ Frontend validates instantly (React Hook Form + Zod)
- ✅ Backend validates securely (same Zod schema)
- ✅ TypeScript types inferred automatically
- ✅ Update validation once, applies everywhere
Complete Working Examples:
- Profile page with form:
/profileroute - Dashboard with queries:
/dashboardroute - Form component:
src/components/UserProfileForm.tsx - Backend validation:
backend/routes/forms.ts - Shared schemas:
shared/schemas/userSchema.ts
See references/supporting-libraries-guide.md for comprehensive guide.
3. All Cloudflare Services Pre-Configured
Database (D1):
- Schema file with example tables
- Migrations directory
- Typed query helpers
- Example CRUD routes
Key-Value Storage (KV):
- Get/put/delete examples
- TTL patterns
- Bulk operations
Object Storage (R2):
- Upload/download examples
- Presigned URLs
- Streaming large files
AI Inference (Workers AI):
- Text generation
- Embeddings
- Image generation (Stable Diffusion)
Vector Database (Vectorize):
- Insert/query embeddings
- RAG patterns
- Similarity search
Message Queues:
- Producer examples
- Consumer patterns
- Batch processing
3. Optional Clerk Authentication
All auth patterns included but COMMENTED - uncomment to enable:
What gets enabled:
- Frontend: ProtectedRoute component, auth in api-client
- Backend: JWT verification middleware
- Protected API routes
- Auth loading states
- Session management
4. Planning Docs + Session Handoff Protocol
docs/ directory - Complete planning structure:
- ARCHITECTURE.md: System design
- DATABASE_SCHEMA.md: D1 schema docs
- API_ENDPOINTS.md: All routes documented
- IMPLEMENTATION_PHASES.md: Phased build approach
- UI_COMPONENTS.md: Component hierarchy
- TESTING.md: Test strategy
SCRATCHPAD.md - Session handoff protocol:
- Current phase tracking
- Progress checkpoints
- Next actions
- References to planning docs
Usage Guide
Quick Start (5 Minutes)
Visit: http://localhost:5173
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloudflare-full-stack-scaffold/SKILL.md
Popularity
- Repository stars
- 12
- Repository forks
- 4
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 1 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jackspace/claudeskillz/cloudflare-full-stack-scaffold)