# deploy-static-site-with-wrangler

deploy-static-site-with-wrangler is a Claude Code skill that uploads static site builds to temporary public Cloudflare URLs. It triggers when someone asks to share or preview built HTML assets.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 171 repo stars
- Author: drawthingsai
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/drawthingsai/local-code-community/tree/HEAD/Apps/LocalCode/Resources/Skills/deploy-static-site-with-wrangler/SKILL.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/deploy-static-site-with-wrangler

## What it does

This skill locates an existing build folder such as `dist`, `build`, or `out` and publishes it via Cloudflare's temporary preview flow. If the site is not built yet, it runs the project's native build step without touching the bundler configuration. It also checks the output directory beforehand so credentials and local environment files remain private.

Execution relies on strictly pinned dev dependencies: `wrangler@4.118.0` alongside `esbuild@npm:esbuild-wasm@0.28.1`. The assistant invokes Wrangler directly at `node node_modules/wrangler/wrangler-dist/cli.js` with `--no-bundle`. It conducts a `--dry-run` first to confirm file counts and transfer weights before creating external resources.

The resulting preview URL stays live for roughly 60 minutes unless claimed via the provided bearer URL. Active Cloudflare authentication blocks this flow because Wrangler denies `--temporary` whenever stored credentials exist.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill deploy-static-site-with-wrangler -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/deploy-static-site-with-wrangler/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/deploy-static-site-with-wrangler/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill deploy-static-site-with-wrangler -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/deploy-static-site-with-wrangler/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill deploy-static-site-with-wrangler -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/deploy-static-site-with-wrangler/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install drawthingsai/local-code-community Apps/LocalCode/Resources/Skills/deploy-static-site-with-wrangler
```

2. **Manually: put the files in place**
- File: `.github/skills/deploy-static-site-with-wrangler/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill deploy-static-site-with-wrangler -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/drawthingsai/local-code-community --path Apps/LocalCode/Resources/Skills/deploy-static-site-with-wrangler
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/deploy-static-site-with-wrangler/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/drawthingsai/local-code-community/tree/HEAD/Apps/LocalCode/Resources/Skills/deploy-static-site-with-wrangler/SKILL.md

## When to use it
- share a static build folder using a temporary public URL
- publish frontend bundles without Cloudflare account login
- verify asset counts and sizes using an initial dry run
- prevent environment files and keys from being uploaded

## Example prompts
- Share a temporary preview link for the built `dist` folder
- Host the `build` directory online for external review
- Deploy my static web files temporarily using Wrangler

## Similar
- [wrangler](https://affpapa.org/en/nevibecode/skills/wrangler.md) — skill · 3 installs
- [render-static-sites](https://affpapa.org/en/nevibecode/skills/render-static-sites.md) — skill · 434 installs
- [vercel-deploy](https://affpapa.org/en/nevibecode/skills/vercel-deploy.md) — skill · 209 installs
- [cloudflare-pages](https://affpapa.org/en/nevibecode/skills/cloudflare-pages.md) — skill · 371 installs
- [cloudflare-deploy](https://affpapa.org/en/nevibecode/skills/githubcomopenaiskills-cloudflare-deploy.md) — skill · ★ 7191 repo stars
- [cybrix-deploy](https://affpapa.org/en/nevibecode/plugins/cybrix-deploy.md) — plugin · ★ 52 repo stars

From the same set: [drawthingsai/local-code-community](https://affpapa.org/en/nevibecode/by/drawthingsai/local-code-community.md) — 20 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
