/claude-resources:dev-basic-cloudflare-webapp [project description] [--scaffold]from claude-resources
Provides the house tech stack for new web projects on Cloudflare (Workers, D1, KV, R2) with config templates. Scaffolds or recommends stack choices for content sites, SSR apps, APIs, and more.
Ships in claude-resources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The reference for what to pick when starting a new web project. Every choice here is already running in production across the other repos, so matching it means CI, hooks, deploy, and agent workflows all behave the way they do elsewhere.
Cloudflare is the infra and the backend. Workers, D1, KV, R2, Durable Objects, Workers AI, Queues. Not AWS, not Vercel, not Netlify, not Supabase. Reach outside Cloudflare only for something Cloudflare genuinely lacks (Stripe, Resend, npm registry) and say so explicitly.
Reference mode (default) — the user described a project and wants the stack. Read the tables below, pick the project shape, read the reference files that matter for that shape, and report the recommended stack with concrete versions and file names. Do not write files.
Scaffold mode — the user passed --scaffold or asked to actually create the
project. Do reference mode first, confirm the shape, then copy from
assets/templates/ and adapt. See "Scaffolding" below.
| Shape | When | Frontend | Deploy target |
|---|---|---|---|
| Content site | Marketing, blog, portfolio, landing | zfb + Preact + Tailwind v4 | Workers Static Assets |
| Docs site | Reference docs, manuals, changelog | zudo-doc (a zfb preset) | Workers Static Assets |
| SSR app | Auth, forms, DB-backed pages | zfb SSR routes (prerender = false) + CF adapter | Workers Static Assets + bindings |
| API / worker | JSON API, webhook, proxy, cron, agent | Hono on Workers, no frontend | Workers |
| Interactive app | Editor, dashboard, canvas, heavy client state | Vite + React + Tailwind v4 | Workers Static Assets (+ separate API worker) |
| Library / CLI | Publishable npm package | none | npm — use /dev-npm-package instead |
Mixed projects are normal: a pnpm workspace with a zfb site at the root and
worker packages under workers/*. Split when the deploy units differ.
Every repo gets these regardless of shape. Details and rationale in references/tooling.md.
| Concern | Choice |
|---|---|
| Package manager | pnpm, packageManager pinned in package.json, engines.node >= 22 |
| Language | TypeScript, strict: true |
| Unit tests | vitest |
| Worker tests | @cloudflare/vitest-pool-workers |
| E2E | Playwright |
| Format | Prettier for code, @takazudo/mdx-formatter for .md/.mdx |
| Lint | ESLint flat config (eslint.config.js) |
| Git hooks | lefthook (lefthook.yml) + prepare script |
| Pre-push gate | pnpm b4push — mirrors CI locally |
| CI | GitHub Actions, SHA-pinned actions |
| Deploy | wrangler deploy from GitHub Actions |
| Dep updates | Renovate (preferred) or Dependabot |
Load only what the current decision needs.
references/stack.md — every library choice with its
rationale, plus the explicit do-not-use list (Pages, Next.js, AWS SDK, Prisma, Jest, styled-components, …). Read this for any "what should we use for X" question.
references/cloudflare.md — wrangler.toml
anatomy, Workers Static Assets, bindings (D1/KV/R2/DO/AI/Queues/services), named environments, preview aliases, secrets vs vars, and the TOML/config gotchas that cost real debugging time.
references/ci.md — the standard workflow set, SHA pinning,
concurrency, self-skipping deploy jobs, PR preview comments, actionlint, security audit.
references/tooling.md — pnpm settings, workspace
layout, lefthook, prettier, eslint, mdx-formatter, design-token-lint, tsconfig, the b4push script.
references/testing.md — test levels and tiers, what
runs in b4push vs CI vs nightly, Playwright conventions.
references/conventions.md — directory layout,
CLAUDE.md, docs site, README, worktrees, .gitignore, scratch dirs.
For Cloudflare platform API detail (exact binding APIs, runtime limits,
current wrangler flags), defer to the Cloudflare plugin skills — /cloudflare:cloudflare,
/cloudflare:wrangler, /cloudflare:workers-best-practices,
/cloudflare:durable-objects, and /cloudflare:agents-sdk — they
retrieve live docs. This skill owns the opinion; those own the facts.
Report as a short stack table (shape, framework, styling, data, tests, CI, deploy target) plus the list of files the project needs. Name the Cloudflare resources that must be provisioned (D1 database, KV namespace, R2 bucket, custom domain) and the secrets that must be set — these are manual, one-time, and easy to forget.
Only in scaffold mode. Copy from assets/templates/ and adapt — every file
carries comments explaining the traps, so keep them.
| Template | Copy to | Notes |
|---|---|---|
package.json | package.json | Replace latest with resolved versions after the first install |
pnpm-workspace.yaml | same | Delete if single-package |
npmrc | .npmrc | |
gitignore | .gitignore | |
prettierignore | .prettierignore | |
.prettierrc.json | same | |
tsconfig.json | same | |
lefthook.yml | same | |
wrangler.toml | same | Strip unused binding blocks |
.github/workflows/*.yml | same | ci.yml, deploy.yml, actionlint.yml |
scripts/run-b4push.sh | same | chmod +x; keep steps identical to ci.yml |
scripts/smoke.mjs | same | Fill in EXPECTED with real page markers |
scripts/install-git-hooks.sh, scripts/hooks/pre-push | same | chmod +x both |
cloudflare-setup.md | docs/cloudflare-setup.md |
Three templates ship without their leading dot (npmrc, gitignore,
prettierignore) so they stay inert inside this skill's own repo — rename on
copy.
Then:
Replace every __PROJECT_NAME__ and __DOMAIN__ placeholder
Write README.md and CLAUDE.md (outline in
pnpm install, then confirm pnpm b4push passes before the first push
Do not invent Cloudflare resource ids. Leave REPLACE_ME plus the
wrangler ... create command that produces it — the deploy job self-skips until
the real id is committed.
assets/templates/cloudflare-setup.md (opens in a new tab)assets/templates/gitignore (opens in a new tab)assets/templates/lefthook.yml (opens in a new tab)assets/templates/npmrc (opens in a new tab)assets/templates/package.json (opens in a new tab)assets/templates/pnpm-workspace.yaml (opens in a new tab)assets/templates/prettierignore (opens in a new tab)assets/templates/scripts/hooks/pre-push (opens in a new tab)assets/templates/scripts/install-git-hooks.sh (opens in a new tab)assets/templates/scripts/run-b4push.sh (opens in a new tab)assets/templates/scripts/smoke.mjs (opens in a new tab)assets/templates/tsconfig.json (opens in a new tab)assets/templates/wrangler.toml (opens in a new tab)references/ci.md (opens in a new tab)references/cloudflare.md (opens in a new tab)references/conventions.md (opens in a new tab)references/stack.md (opens in a new tab)references/testing.md (opens in a new tab)references/tooling.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
84 skills in this plugin
/bambu-3mfCreate/edit Bambu Studio 3MF projects from a saved printer template. Use for Bambu/H2D printable parts, plate arrangement, 3MF revisions, or print settings, even when the input is STL/STEP./big-planPlan work as one epic plus child GitHub issues, with review and verification. Use for /big-plan, implementation planning/decomposition, UI brainstorming that should end in a plan (-pr), or issue sweeps (-is/-isask)./cclogsLoad recent prototypes, plans, logs and artifacts from the repo-scoped cclogs dir to continue earlier work. Use for /cclogs, or whenever the user refers to a prior session's prototype/plan/report as if it exists.npx claudepluginhub takazudo/claude-resources --plugin claude-resourcesOther plugins' skills for the same job