/skills:remote-previewfrom skills
Spin up ephemeral Cloudflare quick tunnels (trycloudflare.com) to share mocks, static HTML files, brainstorming servers, Remotion studios, shadcn previews, or any local dev server with a public URL. Use when the user is reviewing designs remotely, wants to approve mocks off-network, or asks to "share" / "tunnel" / "expose" / "host" a file or local port. Each call creates a separate tunnel so many mocks can be previewed concurrently. Tracks active tunnels and supports list/stop.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill whenever you generate a mock, preview, or brainstorming server that the user might want to review from another device or off-network. It wraps cloudflared tunnel --url http://localhost:PORT so each invocation creates an independent ephemeral *.trycloudflare.com URL. No account required.
Two entry points:
host.sh <file-or-dir> — you have a static file (e.g. design-showcase.html) and want a public URL in one call. Spins up python3 -m http.server on a free port AND the tunnel.share.sh <port> — you already have a dev server running on a known port and just need the tunnel.Offer to share a preview whenever:
ui-ux-pro-max, shadcn, remotion-best-practices, playwright-cli) produces HTML/component mocks on a local portDo not silently share. Always confirm with the user before creating a tunnel. Public tunnels expose your localhost; only share what is safe to expose.
For stable, named tunnels on bokendell.com (dev APIs, Expo), use swarm tunnel / swarm dev --tunnel instead — this skill is for throwaway previews.
If you are inside a workspace worktree (.workspace.json exists in CWD or a parent), the named tunnel on *.dev.bokendell.com is already configured. Use workspace tunnel URLs instead of creating a new quick tunnel:
# Check for active workspace
cat .workspace.json 2>/dev/null
If .workspace.json is found, prefer https://<app>-<workspace-name>.dev.bokendell.com over starting a new trycloudflare.com tunnel. The named tunnel is stable, always-on, and works even on Tailscale Wi-Fi (where trycloudflare.com URLs are blocked by Tailscale DNS).
If no .workspace.json exists (not in a workspace), proceed with the quick tunnel commands below.
cloudflared installed (brew install cloudflared or winget install Cloudflare.cloudflared)Check once:
scripts/check.sh
If it errors, stop and ask the user to install cloudflared.
All scripts live in scripts/ relative to this skill. Run with the port or label as an argument.
bash scripts/host.sh <file-or-dir> [label] [port]
Use this for HTML mocks, design showcases, decision mocks, SVG exports, or anything that doesn't need a real dev server. In one call it:
python3 -m http.server --bind 127.0.0.1 rooted at the file's parent dirshare.sh to start a cloudflared tunnel on that port<path> is a file) so the URL points directly at the mockExample — sharing a decision mock generated by /dev research:
bash scripts/host.sh docs/planning/course-search-redesign/design-showcase.html "course-search-mock"
# → https://devoted-infinite-hitachi-facts.trycloudflare.com/design-showcase.html
Both the HTTP server and the tunnel are tracked in the state file; stop.sh <label> kills both.
When to use host.sh vs share.sh: if the thing being shared is already running (Next.js dev server, Expo web, shadcn preview, Remotion studio, etc.), use share.sh. If it's a plain HTML file sitting on disk, use host.sh — no need to pre-run a server. host.sh binds to 127.0.0.1 only so the content is reachable exclusively through the tunnel.
bash scripts/share.sh <port> [label]
<port>: local port to expose (e.g. 3000)[label]: optional short name (e.g. ui-mock-dashboard) — shown in list outputPrints the public URL on success and records it in /tmp/claude-remote-preview/tunnels.json.
Example:
bash scripts/share.sh 3000 "shadcn-login-preview"
# → https://random-three-words.trycloudflare.com
bash scripts/list.sh
Shows every tunnel this skill has started, with label, port, URL, PID, and whether the process is still alive.
bash scripts/stop.sh <port|label|--all>
Kills the cloudflared process for that tunnel and removes it from the registry.
Static HTML mock (most common for /dev research, brainstorming, decision mocks):
.html file in the repo (e.g. docs/planning/foo/design-showcase.html).bash scripts/host.sh <path-to-html> "<short-label>" — no need to start any server first.stop.sh <label>.Already-running dev server (shadcn preview, Next.js, Remotion, Expo web):
bash scripts/share.sh N "<short-label>".Session cleanup (IMPORTANT):
Tunnels do not self-expire — they stay up until stop.sh kills them or cloudflared itself dies. You are responsible for tearing down tunnels you created before the session ends. The workflow:
host.sh or share.sh again with a different label — each call gets its own URL. Old tunnels keep running in parallel.bash scripts/stop.sh --all (or per-label) as one of your last tool calls. Never leave orphaned cloudflared or Python http.server processes behind.stop.sh later.bash scripts/list.sh if you suspect stale tunnels from a prior crashed session and offer to clean them up.Optional hardening: a SessionEnd hook in .claude/settings.json that runs bash .claude/skills/remote-preview/scripts/stop.sh --all will make teardown automatic even if I forget or the conversation crashes. This is opt-in — ask before editing settings.
dig +short <host> to get a Cloudflare edge IP, then curl --resolve host:443:ip ....--config /dev/null is mandatory for quick tunnels. If the user has ~/.cloudflared/config.yml (e.g. from swarm tunnel init), cloudflared silently applies its ingress rules to --url quick tunnels too. Any hostname not matching an ingress rule gets caught by the catchall and cloudflared returns its own 404 without ever reaching the origin. share.sh passes --config /dev/null to guarantee quick tunnels are isolated from the user's named-tunnel config.http://127.0.0.1:PORT, not http://localhost:PORT. On macOS localhost can resolve ::1 first, and most dev servers (Python http.server --bind 127.0.0.1, Next.js, Metro) only listen on IPv4.127.0.0.1, not 0.0.0.0. host.sh does this so the only path to the content is through cloudflared — nothing on your LAN can accidentally find the file.stop.sh identifies what to kill, and host.sh uses it to name the state record when attaching the HTTP-server PID. Use a short kebab-case tag like course-search-mock, not the full filename.stop.sh now kills both PIDs. Previously it only killed cloudflared and orphaned the Python http.server PID from host.sh — fixed. Always check list.sh after stopping to confirm nothing was left behind.pick_port() grabs a new random high port, but a manually-passed port can collide with a stale process. stop.sh --all clears the state; if a port is still in use, wait for TIME_WAIT (~30s on macOS) or pick another.http://127.0.0.1:<metrics-port>/metrics from cloudflared to confirm requests are reaching it. If cloudflared total_requests is non-zero but all responses are 404 with zero origin errors, it warns about the ingress-config-leak signature.swarm tunnel for stable, authenticated tunnelsremote-preview is for throwaway, public previews. For dev APIs and Expo dev clients you use day to day, prefer swarm tunnel / swarm dev --tunnel <app> (in this monorepo's CLI). Those give you:
*-dev.bokendell.com URLs (stable, bookmarkable on your phone)EXPO_PUBLIC_API_URL / NEXT_PUBLIC_*_URL / TUNNEL_URL into process.env before turbo spawns, so the Expo client on your phone hits the tunneled API instead of localhostinfisical run -- pnpm swarm dev --tunnel <app> and the CLI patches env vars AFTER Infisical injects them but BEFORE the dev server startsSee the marketplace remote-tunnels.md pattern doc (resolve via the context-patterns skill: ${CLAUDE_PLUGIN_ROOT}/../../references/patterns/) for full setup (one-time swarm tunnel init --app <id>, CORS allowlist updates, Cloudflare Access rules).
trycloudflare.com URLs are logged in Cloudflare; treat them as public.swarm tunnel with Cloudflare Access instead./tmp/claude-remote-preview/tunnels.json — JSON array of {pid, port, label, url, startedAt}. Safe to delete; list.sh rebuilds from it.
What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/agent-browserDrive a real headless Chrome from the shell with Vercel's agent-browser for agent web QA, smoke checks, repros and screenshots. Use when an agent needs to open a local dev server, workspace or stage admin, click through a flow, snapshot the page, run an a11y audit, capture HAR, or visual-diff. Triggers - "test it in the browser", "repro this bug", "screenshot the admin", "a11y audit", "check the page renders". Works on the Mac and in Claude cloud sessions. Not a merge gate - findings become Playwright tests./cursor-agentsHand work off to a Cursor Cloud Agent from a Claude session — launch, poll, follow up, cancel — over the Cloud Agents API. Use when a task needs something only Cursor can do (a public tunnel for phone or browser testing, Cursor-only marketplace plugins), when you want a build running in parallel while you keep working, or when the user says "hand this to Cursor" / "run this in a Cursor agent".
/fly-opsnpx claudepluginhub aaronkendell/skills-marketplace --plugin skillsOther plugins' skills for the same job