Agent skill

Live Preview

by vicoa-ai in vicoa-ai/vicoa

Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown.

AGPL-3.0Auto-check: notesDocuments & Office

Install Live Preview

skills CLI
$ npx skills add vicoa-ai/vicoa --skill live-preview -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vicoa-ai/vicoa live-preview --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vicoa-ai/vicoa.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/live-preview .claude/skills/live-preview && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
live-preview
GitHub stars
504
Token cost
~755 tokens
SKILL.md length
371 words
Files
2
Skills in repo
3
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown.

  • Works in 6 steps: Resolve runtime plan → Handle local port and app process → Verify local readiness → …
  • The user asks for a preview URL
  • SKILL.md covers 1) Resolve runtime plan, 2) Handle local port and app…, 3) Verify local readiness and 4) Start tunnel, plus 2 more sections
  • Calls cloudflared and ngrok

What it does

Live Preview is an agent skill from vicoa-ai/vicoa. Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.

Its SKILL.md is about 760 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `reference/output-contract.md`).

It sits in Documents & Office, covering Markdown. It works with Flutter, Next.js, Python and TypeScript. The repository describes itself as: Vicoa is the agentic IDE for running a team of coding agents from desktop, mobile, VPS. Open-source, self-hostable. The licence is AGPL-3.0.

When your agent uses it

  • The user asks for a preview URL
  • Shareable localhost
  • Mobile/web preview

Example prompts

  • “/live-preview”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, LS, Bash

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Resolve runtime plan
  2. Handle local port and app process
  3. Verify local readiness
  4. Start tunnel
  5. Emit structured Markdown result
  6. Keep lifecycle predictable

What it can do on your machine

Read from SKILL.md and the folder at commit 96000b9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • LS
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cloudflared
    • ngrok

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Live Preview loads about 755 tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 371 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~755

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Glob, Grep, LS, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from vicoa-ai/vicoa at commit 96000b9, republished under its AGPL-3.0 licence (© vicoa-ai). 371 words, ~755 tokens.

Download SKILL.mdSave it as .claude/skills/live-preview/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
live-preview
description
Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.
allowed-tools
Read, Glob, Grep, LS, Bash
argument-hint
[optional: run command | port | provider]
disable-model-invocation
true

Create and report a live preview endpoint for the current repository.

Use arguments:

  • Raw arguments: $ARGUMENTS
  • First argument: $0
  • Second argument: $1

Follow this workflow.

1) Resolve runtime plan

  • Prefer explicit user arguments for run command, port, and tunnel provider.
  • Otherwise infer a dev/start command from project files (e.g., package.json, pyproject.toml, requirements.txt, Cargo.toml, go.mod) and repository docs.
  • Prefer loopback bind target (127.0.0.1).

2) Handle local port and app process

  • Before starting a new service, check whether the target port is already in use.
  • If port is free, start the app in background and capture PID.
  • If port is occupied, inspect the owning process command/cwd.
  • If the process appears to be the same project and same service (matching repository path and compatible run command), reuse that existing service and keep the same port.
  • If the process is different (other project or different service), choose one alternate port and start a new service once.
  • Include in message whether the preview reused an existing service or started a new one.

3) Verify local readiness

  • Probe http://127.0.0.1:<port> for up to 60 seconds.
  • Treat any HTTP response as reachable preview surface.
  • If unreachable, return an error result in the structured Markdown format.
Show full SKILL.md (174 more words)Show less

4) Start tunnel

  • Try Cloudflare first: cloudflared tunnel --url http://127.0.0.1:<port>.
  • Parse https://*.trycloudflare.com from output.
  • If unavailable or failed, try ngrok (ngrok http <port>) and read URL from http://127.0.0.1:4040/api/tunnels.
  • If both fail due to cloudflare or ngrok not installed, install them and try again.
  • If tunnel setup fails, return an error result that includes a concrete install/action hint.

5) Emit structured Markdown result

  • Print final output as Markdown bullets only, with * at the beginning of each line.
  • Extract the tunnel URL from provider output and include it as public_url.
  • Include exactly these fields, one per line:
  • status: ok or error
  • provider: cloudflare, ngrok, or none
  • local_url: local URL such as http://127.0.0.1:3000
  • port: numeric local port
  • pid: process id or null
  • message: short actionable summary
  • public_url: tunnel URL or null
  • Do not print secrets.
  • Keep message concise and actionable.

6) Keep lifecycle predictable

  • Keep preview processes running unless the user asked for one-shot verification only.
  • If user asked to stop/cleanup, terminate local app and tunnel processes and return success result in the same structured Markdown format.

© vicoa-ai, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/live-preview of vicoa-ai/vicoa.

  • SKILL.md
  • reference/output-contract.md

Open the folder on GitHubat commit 96000b9

Compare with similar skills

Live Preview next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Live Preview compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Live Preview this skillvicoa-ai/vicoa504—~755Automated safety check: NotesAGPL-3.0
jscpd Code Migration Trackerkucherenko/jscpd6.4k—~5kAutomated safety check: PassMIT
Grix Pre Push Checksaskie/grix153—~831Automated safety check: PassCustom licence
Engine Whats Newflutter/flutter179k—~978Automated safety check: PassBSD-3-Clause
App Store Screenshots GeneratorParthJadhav/app-store-screenshots7.2k—~16kAutomated safety check: PassMIT
Mobilerun Docs Referencedroidrun/mobilerun9.6k—~943Automated safety check: PassMIT

Similar skills

  • Measures a code port between languages or frameworks with jscpd's function-level comparison, porting tests before code and tracking what is left unmatched.

    6.4k GitHub stars~5k tokensUpdated today
    DevelopmentAuto-check passed
  • Select and run the smallest sufficient validation set for Grix changes before push, review handoff, or completion.

    153 GitHub stars~831 tokensUpdated today
    MobileAuto-check passed
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    179k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed
  • App Store Screenshots Generator

    ParthJadhav/app-store-screenshots

    Scaffolds a Next.js editor for designing App Store and Google Play screenshots as ads and exporting them at every required size, for iOS, Mac and Android.

    7.2k GitHub stars~16k tokensUpdated today
    MobileAuto-check passed
  • Mobilerun Docs Reference

    droidrun/mobilerun

    Answers questions about Mobilerun, the LLM-agent framework for automating Android and iOS devices, by pointing the agent to the right page of its v5 documentation.

    9.6k GitHub stars~943 tokensUpdated today
    MobileAuto-check passed
  • Phoneagent

    rounak/PhoneAgent

    Control a connected iPhone, iOS simulator, Android emulator, or Android device from macOS through PhoneAgent's JSON-RPC bridge.

    800 GitHub stars~2.2k tokensUpdated 1 mo ago
    MobileAuto-check passed

More from vicoa-ai/vicoa

  • Stack Preview

    vicoa-ai/vicoa

    Run the whole Vicoa stack (Postgres, backend, realtime server, web dashboard) from the current checkout and publish it at one public tunnel URL, so a branch can be reviewed from another machine or…

    504 GitHub stars~1.8k tokensUpdated today
    Auto-check: notes
  • Vicoa CLI

    vicoa-ai/vicoa

    Operate Vicoa from the terminal with the vicoa CLI — list and inspect agent sessions (and their transcripts) across machines, start/resume/stop sessions, manage the task backlog with projects and…

    504 GitHub stars~5.8k tokensUpdated today
    Auto-check passed

Questions about Live Preview

What does Live Preview do?

Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Live Preview is an agent skill from vicoa-ai/vicoa. Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown.

When should I use Live Preview?

Live Preview fits situations like: the user asks for a preview URL; shareable localhost; mobile/web preview.

How do I install Live Preview in Claude Code?

Run `npx skills add vicoa-ai/vicoa --skill live-preview -a claude-code`. Or copy the skill folder (skills/live-preview in vicoa-ai/vicoa) into .claude/skills/live-preview in your project. Claude Code loads it when a task matches its description.

How do I install Live Preview in Codex?

Run `npx skills add vicoa-ai/vicoa --skill live-preview -a codex`. Or copy the skill folder (skills/live-preview in vicoa-ai/vicoa) into .agents/skills/live-preview in your project. Codex loads it when a task matches its description.

Can I use Live Preview in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vicoa-ai/vicoa --skill live-preview -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/live-preview, .gemini/skills/live-preview, .github/skills/live-preview and .opencode/skills/live-preview in your project.

What does Live Preview need to run?

Going by SKILL.md and its folder, Live Preview needs the command-line tools its instructions call (cloudflared and ngrok). Its frontmatter pre-approves these tools: Read, Glob, Grep, LS, Bash.

Does Live Preview access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Live Preview safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Live Preview use?

Live Preview is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Live Preview use?

About 755 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Live Preview?

Skills that share tags, products or a category with Live Preview: jscpd Code Migration Tracker (kucherenko/jscpd, 6.4k stars), Grix Pre Push Checks (askie/grix, 153 stars), Engine Whats New (flutter/flutter, 179k stars) and App Store Screenshots Generator (ParthJadhav/app-store-screenshots, 7.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Live Preview?

vicoa-ai (a GitHub organization) maintains it in vicoa-ai/vicoa, which has 504 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 10, 2026.

Source: vicoa-ai/vicoa on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.