deploy-preview

Generate preview deployment configurations for Vercel, Netlify, and Cloudflare Pages.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/calebaero/website-factory --skill deploy-preview-calebaero
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: deploy-preview
Source: https://github.com/calebaero/website-factory/tree/main/skills/deploy-preview
Command: npx skills add https://github.com/calebaero/website-factory --skill deploy-preview-calebaero

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the preparation of a QA-passing preview deployment across major hosts (Vercel, Netlify, and Cloudflare Pages), ensuring previews can be generated without exposing secrets or accidentally deploying to production.

Core Features & Use Cases

  • Resolve the target preview host in order: plan.hostingPlan.platform, brief.hostingPlatform, then starter defaults.
  • Generate and commit host-specific configuration files: vercel.json (for Vercel), netlify.toml (for Netlify), or wrangler.toml + public/_headers (for Cloudflare Pages).
  • Produce an .env.preview.example with public and server variable declarations, and create host-specific setup docs when credentials are missing.
  • Update workflow marker and render artifacts to reflect the preview-ready state without exposing secrets or touching production environments.

Quick Start

Invoke the deploy-preview skill on a built site directory to generate a preview-ready configuration for your chosen host.

Frequently Asked Questions about deploy-preview

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a preview deployment configuration for Vercel, Netlify, or Cloudflare Pages?▼

To generate a preview deployment configuration, the tool resolves your target host from plan or brief defaults and writes host-config files like vercel.json, netlify.toml, or wrangler.toml alongside environment variable examples.

How do I prepare QA-ready previews without exposing secrets or deploying to production?▼

Preparing QA-ready previews safely involves generating an .env.preview.example file for variable declarations and rendering artifacts that reflect a preview-ready state without committing secrets or touching production environments.

How do I add security headers to a Cloudflare Pages preview deployment?▼

Adding security headers to a Cloudflare Pages preview involves generating a wrangler.toml file and a public/_headers file configured according to your specified security-baseline requirements.

How do I resolve which hosting platform to use for my preview environment?▼

Resolving the hosting platform for a preview environment evaluates the platform specified in plan.hostingPlan.platform, falls back to brief.hostingPlatform, and ultimately uses starter defaults if the others are undefined.

What happens if I am missing credentials for my hosting platform preview setup?▼

When credentials are missing for your hosting platform preview setup, the process automatically creates host-specific setup documentation to guide you through completing the required authentication configuration.

Does this preview deployment configuration tool work with Vercel, Netlify, and Cloudflare Pages?▼

Yes, the preview deployment configuration tool works with Vercel, Netlify, and Cloudflare Pages by generating the respective vercel.json, netlify.toml, or wrangler.toml configuration files required for each platform.