Show a web app running in a Cloudroom cloud thread through the user’s own localhost. Use after starting a development server or when asked to show a browser preview.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cloud Preview?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/davidondrej-cloud-preview-c6f14f76)
---
name: cloud-preview
description: 'Show a web app running in a Cloudroom cloud thread through the user’s own localhost. Use after starting a development server or when asked to show a browser preview.'
---
# Cloud preview
1. Start the HTTP development server on IPv4 loopback (`127.0.0.1`) as the normal agent user. Keep its process running. Do not install packages just to expose it.
2. Run `room-cli preview PORT` with its actual port.
3. Only when the JSON says `state: ready`, post the returned `url` as a Markdown link. Do not guess a localhost port, open the browser automatically, or use BB Connect or other public hosting.
4. If pending, explain that the paired computer must be connected; use `room-cli preview status PORT` to check again. A failed or pending preview does not stop cloud work.
5. `room-cli preview close PORT` closes forwarding, not the app. Stop the app separately only when requested, by its own PID or the port's listener (`lsof -t -sTCP:LISTEN -i :PORT`): a plain `lsof -t -i :PORT` also matches Cloudroom's preview forwarding, and killing it can restart Cloudroom and cut off running work.
Local threads use their ordinary localhost server directly. Do not change server security settings to allow all hosts/origins. Never ask for or print SSH private keys, core tokens, or hosting credentials.