vinext-cloudflare-hardening

Reviews Wrangler config, bindings, and cache strategy to produce a Cloudflare deployment hardening plan for vinext projects.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/gmackie/agent-skills --skill vinext-cloudflare-hardening-gmackie
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vinext-cloudflare-hardening
Source: https://github.com/gmackie/agent-skills/tree/main/skills/vinext-cloudflare-hardening
Command: npx skills add https://github.com/gmackie/agent-skills --skill vinext-cloudflare-hardening-gmackie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, jq, and includes scripts (resource) and references (resource) components.

What problem does it solve? After migrating a project to vinext, a successful dev start does not prove the Cloudflare Workers deployment is hardened. This Skill audits the deployment surface—Wrangler config, asset and image bindings, cache strategy, and environment drift—and writes a concrete hardening plan before deploy work begins. ## Core Features & Use Cases - Deployment Surface Inventory: Runs a helper script to detect Wrangler config, Vite config, vinext scripts, bindings, and environment files. - Drift and Risk Review: Compares code and config for gaps like cache handlers without KV bindings or asset usage without an assets binding. - Hardening Plan Output: Produces a dated Markdown plan under docs/cloudflare/ covering bindings, cache, risks, and next steps. - Use Case: A team finished migrating a Next.js SaaS app to vinext and wants to verify KV cache bindings, image handling, and preview/production config consistency before their first real Cloudflare deploy. ## Quick Start Review my vinext project's Cloudflare deployment configuration and write a hardening plan before we deploy to production.

Frequently Asked Questions about vinext-cloudflare-hardening

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

FAQPage Schema
How do I harden a vinext app before deploying to Cloudflare Workers?▼

Run the inspect-vinext-cloudflare.sh helper against your repo to inventory Wrangler config, bindings, and scripts, then review cache strategy, asset and image bindings, and environment handling. The skill writes a hardening plan to docs/cloudflare/ with findings and next steps.

What Cloudflare bindings should a vinext deployment check?▼

Check that an assets binding exists when the Worker serves static assets, image handling is explicitly configured, and KV namespaces exist for any cache handler the app uses. The helper script scans wrangler.jsonc or wrangler.toml for these markers.

Can I use this skill on a project still running Next.js?▼

No. The skill first verifies the repo depends on vinext, has a vite.config file, and uses vinext dev, build, or deploy scripts. If the project is still on Next.js, it routes you to the migrate-to-vinext skill instead.

Why does my vinext app work in dev but fail on Cloudflare deployment?▼

A successful dev start does not validate deployment config. Common causes include missing assets or KV bindings, cache handlers without backing bindings, and config drift between local, preview, and production Wrangler environments.

What does the vinext Cloudflare inspection script output?▼

The script outputs text or JSON listing the repo path, vinext dependency presence, Wrangler and Vite config files, dev/build/deploy scripts, environment files, Wrangler binding markers, and files referencing bindings like KV, R2, or Durable Objects.