cfdrop-relay
Push a freshly deployed cfdrop URL to a cfdrop relay so a paired viewer device (e.g. an iPad running the cfdrop viewer app) opens it automatically. Use when the user says "cfdrop and open on the viewer", "push to the relay", "show it on the iPad", or wants a deployed site to appear on a paired screen without sharing the URL manually.
- License 许可
- MIT
- 最近更新
- 2026-10-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- cfdrop-relay
- source
- external:github.com/oablab/cfdrop
- checksum
- sha256:4b0c76fd7b958f83fa60df3233320220b6e48fcd623b790dc26d01670d05e0e9
- metadata
- { "short-description": "Push a deployed cfdrop URL to a relay so a paired viewer device opens it automatically" }
- requires
- [ { "min": "0.6.1", "name": "cfdrop" } ]
- capability
- { "tools": [ "Bash" ], "network": true }
- pinned-ref
- 66a5877653f8e8290605457652fa628c71d7ee05
- description
- Push a freshly deployed cfdrop URL to a cfdrop relay so a paired viewer device (e.g. an iPad running the cfdrop viewer app) opens it automatically. Use when the user says "cfdrop and open on the viewer", "push to the relay", "show it on the iPad", or wants a deployed site to appear on a paired screen without sharing the URL manually.
03 SKILL.md 正文
cfdrop-relay — Auto-open Deploys on a Paired Viewer
Extends the cfdrop skill: after a successful deploy, --notify (cfdrop ≥0.6.1)
pushes the live URL to a relay server, and any viewer device paired with that relay
opens the site immediately. The relay server and viewer app live in the
cfdrop-app repo.
Prerequisites
cfdrop≥0.6.1 (cfdrop --version)- A running cfdrop relay (default port 8788) reachable from this machine — referred
to below as
relay-host - The relay token, stored on the relay host at
~/.cfdrop-relay-token
Usage
export CFDROP_NOTIFY=http://relay-host:8788 # relay endpoint
export CFDROP_RELAY_TOKEN=$(ssh relay-host 'cat ~/.cfdrop-relay-token')
cfdrop deploy --directory /tmp/<slug>-site --name <slug> -y --notify
Everything else (site generation, mobile design rules, verification) follows the
base cfdrop skill — --notify is purely additive.
Behavior
- cfdrop deploys as usual and prints the live URL.
- It warms up the site first (probes
<url>/?cfdrop-warmup=Nwith retries) so the viewer doesn't land on a cold edge cache. - It POSTs the URL to
${CFDROP_NOTIFY}/pushwith the token in anx-relay-tokenheader. - On success it prints
Pushed URL to relay at <endpoint>.
Failure modes
- Notify failure never fails the deploy — the site is live either way; cfdrop
prints
warning: relay notify failed: ...and exits 0. Re-share the URL manually. CFDROP_NOTIFY must be set for --notify— export the relay endpoint (see Usage).CFDROP_RELAY_TOKEN must be set for --notify— export the token (see Usage).relay returned 401/403— token mismatch; re-read it fromrelay-host:~/.cfdrop-relay-token.warning: site not reachable yet, skipping notify— warm-up probes never got a 200; the URL is still printed, push it again once the site responds (redeploying with--notifyis idempotent).- Connection refused — relay not running on
relay-host, or wrongCFDROP_NOTIFY.
04 同仓库更多 Skills
b-skill
fixture skill B.
a-skill
fixture skill A (has a nested reference dir to exercise recursive staging).
demo-skill
fixture skill that requires a bin tool (drives the requires closure).
skill-creator
Create a new Agent Skill or revise an existing one (SKILL.md frontmatter, instructions, scripts/, references/, assets/) following the Agent Skills specification, then validate and optionally test it. Use when the user wants to make, write, scaffold, update, refactor, validate, or test a skill, improve a skill's description or triggering, or turn a workflow from the conversation into a reusable skill. Not for system prompts, memory/notes files, MCP servers, or hooks.
hello-capability
Minimal example skill proving the capability-provisioning pipeline end to end. Use only as a scaffold reference when authoring a real skill; it prints a short confirmation and does nothing else.
cfdrop
Explain or present anything as a mobile-optimized static website deployed to a temporary Cloudflare account via the cfdrop CLI. Use when the user says "cfdrop this", "explain this by cfdrop", "cfdrop mobile optimized", "deploy as mobile site", or asks to turn content (a topic, codebase, issue list, analysis, report) into a browsable mobile web page with a live URL.