Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cloudflare-drop

БесплатноБез исполняемых скриптовНе проверен

Publish a static site (a folder of HTML/CSS/JS/images/fonts) to Cloudflare and get back a live, shareable URL in seconds. Use when you have a finished static…

ofoxaiот ofoxai570 установок в других каталогах

Об этом скилле

cloudflare-drop: publish a static site as a shareable link

Turn a finished static page into a live URL with one command. Cloudflare serves it from its edge at https://<name>.<account>.workers.dev in seconds.

Two hosting modes, and the skill picks the one that will actually work:

when lifetime
permanent CLOUDFLARE_API_TOKEN is set forever — it's in your account
temporary preview no usable credentials 60 minutes, unless claimed

The mode is detected, not guessed, and always reported back — so you never hand someone a link believing it's permanent when it dies in an hour.

Protection contract

When the user asks for password protection, use -otp on a permanent deployment. Temporary previews and renew reject it before upload. Never omit the flag on retry, change hosting mode silently, embed the report behind a client-side password form, or fall back to publishing an unprotected copy. An explicit --permanent uses the operator's Cloudflare account and requires authentication. Without -otp, behavior is unchanged.

Stage only intended deliverables in a dedicated input folder: the existing helper copies sibling files too. Keep CSV exports, credentials, source repositories and unrelated reports out of that folder. A protected share authorizes access to all its staged assets after login. Use a fresh worker name when moving previously public content behind a password; old downloads and cached public copies cannot be revoked. Every deploy now prints the staging review described below before it uploads — read it, and say something to the user if it flags a file.

What is about to become public

Staging copies the page's whole sibling directory, recursively, because a multi-file page renders broken without its assets. node_modules, .git, __MACOSX and every dotfile (so .env too) were already excluded. What was never visible is the ordinarily-named file — secrets.json, credentials.txt, backup.sql, id_rsa — and this skill's whole job is to turn a folder into a public URL.

So every run prints, on stderr, before the upload:

STAGED_FILES 7
STAGED_REVIEW 4 of 7 staged files are outside HTML/CSS/JS/images/fonts. …
  SENSITIVE_NAME  secrets.json  (312 bytes)
  UNEXPECTED_TYPE  backup.sql  (24 bytes)

A clean run prints STAGED_FILES n and STAGED_REVIEW ok — the headline is printed on every path, so its absence means the review did not run, not that there was nothing to say.

This never blocks a deploy (discipline #3). It is a report. When it flags something, the fixes are: re-stage from a folder holding only the deliverable, or re-run with --assets-only, which stages only recognised static assets and prints STAGED_SKIPPED naming every file it left behind. Relay the flagged names to the user rather than deciding for them — a data.sql someone means to publish is their call.

The one command

node references/deploy.mjs <page.html> [--ttl 30m] [--name my-report] [--permanent] [--assets-only]

It resolves the countdown window → stages the page as index.html at a clean root → deploys via Wrangler → curl-verifies HTTP 200 → prints:

RESULT_URL   https://my-report.ethereal-composer.workers.dev
MODE         temporary
CLAIM_LINK   https://dash.cloudflare.com/claim-preview?claimToken=…
EXPIRY_EPOCH 1785499999

It never prints a URL it didn't verify, and never invents one. The verify is content, not just status: after the 200 backoff, the served page must match the source's byte size (within the injected countdown's growth) and carry a body sentinel — a blank/truncated page that still 200s fails as URL_UNVERIFIED.

URL_UNVERIFIED = deploy failed — do NOT deliver that URL; fall back to the file. If the script prints URL_UNVERIFIED (no 200, or a blank/truncated page that didn't match the content self-verify), the deploy did not succeed. Never hand that URL to the user — treat it as a failure, say so plainly, and offer the HTML file instead (fail-open, discipline #3).

Why Wrangler and not the browser dropzone: cloudflare.com/drop's own "For AI agents" section instructs agents to prefer Wrangler for local CLI workflows. The packaged playwright path was removed in 2.0.0 — the dropzone DOM changed and it silently returned no URL. v1 predicted this switch; this is it.

Flags

flag effect
--ttl 30m countdown window shown on the page. Accepts s/m/h/d; a bare number is minutes. Default 60m (the real preview lifetime), or $CLOUDFLARE_DROP_TTL. Values above 60m are clamped — see below.
--name my-report worker name (becomes the subdomain). Defaults to a sanitized filename.
-otp / --otp generate a random six-digit access code; permanent links only. Prints OTP_CODE separately after verification.
--permanent force a normal (account) deploy. Requires credentials.
--no-pause-oauth n
Полный SKILL.md на ClawHub

Установить cloudflare-drop в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл cloudflare-drop?

Publish a static site (a folder of HTML/CSS/JS/images/fonts) to Cloudflare and get back a live, shareable URL in seconds. Use when you have a finished static page or site and need to hand someone a link they can open on any device — reports, mockups, one-off landing pages, AI-generated HTML, "give me a link I can share". Runs one packaged command (references/deploy.mjs) built on the Wrangler CLI, which is what Cloudflare's own agent guidance tells agents to use. Deploys permanently to your Cloudflare account when credentials are present, or as a 60-minute claimable preview when they are not — and says plainly which one you got. Bakes an expiry countdown into previews (matched to the real 60-minute limit; --ttl to shorten it), and supports optional server-side six-digit access-code protection with -otp for permanent links only. Unprotected delivery may fall back to a file; protected delivery fails closed.

Как установить скилл cloudflare-drop?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cloudflare-drop запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cloudflare-drop с