Skip to content
Back to skills

Live Preview

ASecurity

Use when building something visual step by step — a CAD part, 3D model, diagram, web page, game scene, character, generated image — or when agents act in a game or simulation the user wants to watch, and the user would benefit from seeing each step as it happens ("show me as you build", "live view", "watch it", "let me see it"). Also use when the user asks how far a build got or which step broke it.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgoshell

Works with

  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add williamblair333/Uncle-J-s-Refinery --skill live-preview --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Live Preview?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Live Preview
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/williamblair333-live-preview/badge)](https://www.skillsdirectory.com/skills/williamblair333-live-preview)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: live-preview
description: Use when building something visual step by step — a CAD part, 3D model, diagram, web page, game scene, character, generated image — or when agents act in a game or simulation the user wants to watch, and the user would benefit from seeing each step as it happens ("show me as you build", "live view", "watch it", "let me see it"). Also use when the user asks how far a build got or which step broke it.
---

# live-preview

A live browser view of any build, one picture per step, with the step history beside it.
The Refinery's `live_preview` MCP server (or `just preview` from the stack repo) does the
publishing and serving. The project only has to produce a picture.

## Loop

1. **Name the session.** `project` = repo name, `session` = what's being built
   (`aaa-tray`, `match-07`). Both are slugs: `[A-Za-z0-9][A-Za-z0-9._-]*`.
2. **Render.** Do it the project's own way, into a scratch dir:
   - FreeCAD / Partikus: `QT_QPA_PLATFORM=offscreen` + `view.saveImage(path, w, h, 'White')`
   - Blender: `blender -b file.blend -o //frame -f 1`
   - Web page: a Playwright or DOMShell screenshot
   - Game: the game's own screenshot, or a frame from its bridge mod
   The first image is the hero. Add extra views (top, side) after it.
3. **Publish.** Call `preview_publish(project, session, images=[...], label="lid attached",
   note="why this step")`. Keep the label to a few words. The note carries the reason.
4. **Show.** Once per session, call `preview_watch(project, session)` and give the user the URL.
   It's on 127.0.0.1 and refreshes about once a second.

Without MCP: `just preview publish --project P --session S --label "..." img.png`, then
`just preview watch --project P --session S --open`.

## Rules

- **Only image files:** png, jpg, gif, webp. Anything else is refused by design.
- **Publish after each step that changes what the user would see.** Don't publish on every
  keystroke. Rendering is the slow part.
- **Several agents can publish into one session safely,** because publishes are serialized.
  Put the agent's name in the label (`red: takes bridge`) so the history reads per agent.
- **A failed render is a step too.** Publish the error screenshot, or say plainly that the
  render failed. Never republish the old picture as if it were new.
- Sessions live in `~/.live-preview/<project>/<session>/`. Delete the directory to discard one.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.