setup-cloudflare-pr-previews

Installation
SKILL.md

Set Up Cloudflare PR Previews

Create a reusable deployment topology while adapting names, build output, migrations, runtime URL variables, and explicitly shared resources to the target project.

Route the task

  1. Inspect repository instructions, package manager, Wrangler/build config, generated Worker output, migrations, bindings, CI, and deployment docs. Inspect Better Auth and Prisma configuration when present.
  2. Read only the references needed:
    • references/topology-and-lifecycle.md for naming, stable/branch topology, aliases, isolation, or environment selection.
    • references/d1-and-deployment.md for provisioning, migrations, binding injection, deploy commands, or target-repository integration.
    • references/cleanup-and-operations.md for PR-close cleanup, GitHub trust boundaries, dashboard configuration, access, or credentials.
    • references/vite-plugin-integration.md when the repository uses @cloudflare/vite-plugin. Read all three core references for a full setup; use only the affected reference for a focused audit or repair.
  3. Resolve the resource prefix, Worker names, production branches, D1 binding/migrations, deployable config path, stable URLs, origin-dependent variables, and isolated versus shared bindings before rendering.
  4. Render the bundled templates into scratch space, never over the target repository:
Installs
24
Repository
biw/skills
GitHub Stars
2
First Seen
Jul 20, 2026
setup-cloudflare-pr-previews — biw/skills