When users report broken preview tabs, blank screens, or missing browser previews, this skill knows exactly what to check. It reads the actual registry files at `/data/previews.json` and `/data/preview_history.json` to diagnose what's running versus what crashed. More importantly, it prevents the classic mistake of telling users to visit localhost URLs that they can't actually reach from their browser. It also catches the absolute path gotcha that breaks static assets when served through the reverse proxy. Think of it as the troubleshooting manual for Claude's iframe preview system, with step-by-step debugging that actually works.

skills.sh installs
4.6K
GitHub stars
32
last updated
Aug 21, 2026

Install

$ npx -y skills add starchild-ai-agent/official-skills --skill browser-preview --agent claude-code

Installs into .claude/skills of the current project.

Files

logo.png

Browser Preview

You already know preview_serve and preview_stop. This skill fills the gap: what happens after preview_serve returns a URL — how the user actually sees it.

What is the Preview Panel

The frontend has a right-side panel with two tabs: Files and Preview. The Preview tab renders preview URLs inside an iframe. When you call preview_serve, the frontend automatically opens a Preview tab loading that URL. (Jobs are now managed in a standalone modal accessible from the left sidebar, not in the right panel.)

Key facts:

  • Each preview_serve call creates one Preview tab
  • URL format: https://<host>/preview/{id}/
  • Preview panel has a ⋮ menu (top-right) showing "RUNNING SERVICES" list
  • Preview tab can be closed by the user without stopping the backend service
  • Backend service stopping → Preview tab shows an error page

⚠️ CRITICAL: Never Tell Users to Access localhost

The user's browser CANNOT access localhost or 127.0.0.1. These addresses point to the server container, not the user's machine. The preview architecture uses a reverse proxy:

Sponsors

Details

Repository
github.com/starchild-ai-agent/official-skills
Categories
AI & Agent Building, Automation & Workflows, CLI & Terminal

More from starchild-ai-agent/official-skills

All 43
1affaan-m avatarmcp-server-patternsaffaan-m/everything-claude-codemcp server patterns4.6Kskills.sh installs
2nidhinjs avatarprompt-masternidhinjs/prompt-masterprompt master4.5Kskills.sh installs
3colosseumorg avatarcolosseum-copilotcolosseumorg/colosseum-copilotResearch Solana/crypto startup opportunities using builder project history, crypto archives, investor theses, and market signals. Answers questions conversation4.5Kskills.sh installs
4jeffallan avatarmcp-developerjeffallan/claude-skillsUse when building, debugging, or extending MCP servers or clients that connect AI systems with external tools and data sources. Invoke to implement tool handler4.4Kskills.sh installs
5github avatarcopilot-spacesgithub/awesome-copilotUse Copilot Spaces to provide project-specific context to conversations. Use this skill when users mention a "Copilot space", want to load context from a shared4.4Kskills.sh installs
6starchild-ai-agent avatarchartingstarchild-ai-agent/official-skillsGenerate TradingView-style candlestick charts with indicators. Use when the user wants a visual chart, price visualization, or technical analysis plot.4.4Kskills.sh installs