live-preview

live-preview is a skill for Claude Code, Codex from masa-san-jp/Agent-Aiko. It costs 171 tokens per session (1,159 once invoked), scanned C, original, MIT.

A skill for showing an HTML file or static project on a temporary live URL that can be opened from another device on the same private Tailscale network. Tailscale is a private network connecting approved devices.

In plain words
What is it for?
Use it to preview landing pages, reports, mockups, or exported slides on another tailnet device. It serves only inside the private network and includes commands to check status and stop the preview.
Why use it?
A file path or localhost address usually cannot be opened from a phone or another computer, while this provides a private preview address.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to preview landing pages, reports, mockups, or exported slides on another tailnet device. It serves only inside the private network and includes commands to check status and stop the preview.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/live-preview
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add masa-san-jp/Agent-Aiko --skill live-preview
Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for live-preview

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/live-preview/github.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/live-preview)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/live-preview"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/live-preview/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for live-preview

Your own site · 80×15
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/live-preview"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/live-preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,159 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00171 $0.01159
Opus 5 $0.00086 $0.00580
Sonnet 5 $0.00034 $0.00232
Haiku 4.5 $0.00017 $0.00116

Measured 9d ago against content hash 2ebe6a98a2d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

live-preview scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

## 有効化(allowlist のみ・sudo 不要)

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

tailscale serve を使わず tailscale IP に直接 bind する方式なので **sudo/operator/HTTPS 証明書は不要**。唯一必要なのは、本スクリプトをエージェントの権限 allowlist に入れること(ネットワーク配信を伴うため)。設定ファイル(例: `{{ORG_REPO_PATH}}/.claude/settings.json` の `permissions.allow`)に、自分の配置
reference/skills/live-preview/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/live-preview

エージェントが作った HTML/静的成果物を、tailnet 内だけで見れる「ライブ URL」として出す共通スキル。汎用スキル tailnet-expose の HTML 特化ラッパー。

何のためか

ユーザーが別端末(スマホ等)から成果物を見る場合、file:// パスやこのマシンの localhost は届かない。作った HTML を本人の端末から URL で見れて初めて「見て決める」が回る。Tailscale の tailnet 内に出せば、同じ tailnet の端末からだけ見れて、外部には出ない。これを全エージェントが 1 コマンドで使える共通スキルにする。

不可侵ルール

  1. tailnet 内のみ。tailscale funnel(インターネット公開)は絶対に使わない。 成果物には未公開情報が含まれうる。露出範囲はユーザー本人の tailnet 端末に限定する。
  2. bind 先は tailscale IP に限定する0.0.0.0/LAN IP に bind しない)。tailnet 外には出さない。
  3. 使い終わったら stop する。 配信を出しっぱなしにしない。次の成果物を出す前に前のを片付ける。
  4. 個人情報・機微を載せた成果物を渡すときも、宛先はユーザー本人の端末のみ(tailnet)であることを前提にする。第三者の実名等は成果物自体に入れない。

使い方

同梱スクリプト {{ORG_REPO_PATH}}/Agent-team/tools/live-preview/live-preview.sh を呼ぶ。

SK={{ORG_REPO_PATH}}/Agent-team/tools/live-preview/live-preview.sh
bash "$SK" serve <path-to-html-or-dir>   # → ライブ URL(http://<host>.<tailnet>.ts.net:<port>/...) を返す
bash "$SK" status                         # 現在の配信状態
bash "$SK" stop                           # 配信停止(必ず最後に)

返ってきた URL をそのままユーザーの端末へ送る。ディレクトリを渡せばその中の index.html が入口。ファイルを渡せば …/<file> が直接開く。

有効化(allowlist のみ・sudo 不要)

tailscale serve を使わず tailscale IP に直接 bind する方式なので sudo/operator/HTTPS 証明書は不要。唯一必要なのは、本スクリプトをエージェントの権限 allowlist に入れること(ネットワーク配信を伴うため)。設定ファイル(例: {{ORG_REPO_PATH}}/.claude/settings.jsonpermissions.allow)に、自分の配置に合わせた絶対パスで登録する:

"Bash(bash {{ORG_REPO_PATH}}/Agent-team/tools/live-preview/live-preview.sh:*)"

これで全エージェントが serve 一発でライブ URL を出せる。

URL の形

http://<host>.<tailnet>.ts.net:<port>/。MagicDNS が引ければホスト名、引けなければ tailscale IP を使う。HTTP(HTTPS でない)だが tailnet 内に閉じているため preview 用途では十分。

制約

  • 実体は汎用スキル tailnet-expose。本スクリプトはその HTML 特化ラッパーで、内部で tailnet-exposeserve を呼ぶ。
  • 成果物ごとに配信を切り替えるため、前の配信を stop してから次を serve する。

関連

  • 汎用版:{{ORG_REPO_PATH}}/Agent-team/reference/skills/tailnet-expose/SKILL.md/tailnet-expose
  • 実装本体:{{ORG_REPO_PATH}}/Agent-team/tools/live-preview/live-preview.sh

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 57 lines · 171 tokens per session scan C 2ebe6a98a2d6

Subscribe to this mod's changes

live-preview is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 171 tokens to every session and 1,159 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it C with 2 findings (asks for root, reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.