一键导入
cf-temp-dropper
Use when a user wants to share a local file through a short-lived Cloudflare Workers temporary deployment, especially via npx cf-temp-dropper.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a user wants to share a local file through a short-lived Cloudflare Workers temporary deployment, especially via npx cf-temp-dropper.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cf-temp-dropper |
| description | Use when a user wants to share a local file through a short-lived Cloudflare Workers temporary deployment, especially via npx cf-temp-dropper. |
| version | 0.1.0 |
| author | kiyo-e |
| license | MIT |
| metadata | {"hermes":{"tags":["cloudflare","workers","file-sharing","temporary","npx","cli"],"homepage":"https://github.com/kiyo-e/cf-temp-dropper"}} |
Use cf-temp-dropper when the user wants to turn a local file into a temporary public Cloudflare-hosted download/preview page.
The tool:
wrangler deploy --temporary;workers.dev URL plus a Cloudflare claim URL;/file for direct streaming/download with HEAD and byte-range support;npx --yes cf-temp-dropper@latest ./path/to/file
For reproducible tests, pin a version:
npx --yes cf-temp-dropper@0.1.0 ./path/to/file
Confirm the file exists before invoking the tool.
test -f ./path/to/file && stat -c '%n %s bytes' ./path/to/file
Deploy through npx unless the user specifically asks to use a local checkout.
npx --yes cf-temp-dropper@latest ./path/to/file --yes --keep
Capture both URLs from stdout:
https://...workers.devhttps://dash.cloudflare.com/claim-preview?...Verify the public page and manifest.
curl -sSIL https://<worker>.workers.dev/ | sed -n '1,12p'
curl -sS https://<worker>.workers.dev/manifest.json
For direct file download, use /file.
curl -L -o <filename> https://<worker>.workers.dev/file
Resume interrupted downloads:
curl -L -C - -o <filename> https://<worker>.workers.dev/file
Report the result succinctly: page URL, claim URL, file name, size, SHA-256, and any verification performed.
Use --no-deploy when the user wants to inspect generated files without uploading:
npx --yes cf-temp-dropper@latest ./path/to/file --no-deploy --out ./drop-build --yes
cd ./drop-build
npm install
npm run dev
Generated project layout:
package.json
wrangler.jsonc
src/index.ts
public/index.html
public/styles.css
public/app.js
public/manifest.json
public/chunks/part-00000.bin
Blob assembly, so very large files may hit browser storage or memory limits./file is Content-Disposition: inline for media preview. curl -OJ https://.../file may save as file; prefer curl -L -o <filename> https://.../file.Deploy an audio file and verify media headers:
npx --yes cf-temp-dropper@latest ./recording.mp3 --yes --keep
curl -sSIL https://<worker>.workers.dev/file | sed -n '1,20p'
Expected useful headers:
content-type: audio/mpeg
content-length: <bytes>
accept-ranges: bytes
content-disposition: inline; filename*=UTF-8''recording.mp3
Test a range request:
curl -sS -D headers.txt -H 'Range: bytes=0-99' -o segment.bin \
https://<worker>.workers.dev/file
sed -n '1,20p' headers.txt
wc -c segment.bin
A good response is HTTP 206 with content-range and exactly 100 bytes for bytes=0-99.
--no-deploy; run without it for a live temporary URL.wrangler deploy --temporary, but local shell customization can still surprise you. Prefer the default npx path.curl -OJ saves as file: use -o original-name.ext because /file is optimized for browser preview.Before telling the user it worked, verify at least:
curl -I <url>/ returns HTTP 200;curl <url>/manifest.json returns the expected file name, size, and SHA-256;curl -I <url>/file returns accept-ranges: bytes and a correct content type.