web-preview

web-preview is a skill for Claude Code, Codex from K9i-0/ccpocket. It costs 32 tokens per session (660 once invoked), scanned A, original, MIT.

A Flutter web preview workflow that builds the web app, starts a local server, checks it in Playwright, and provides viewing URLs.

In plain words
What is it for?
Use it to verify a Flutter web build, inspect its page title and appearance in a browser, and share local or network access URLs.
Why use it?
It removes the manual work of starting the preview and checking whether the page loads correctly. It also reports errors and provides a screenshot for confirmation.

Skill for Claude CodeCodex

About the project

CC Pocket is a mobile and desktop client for controlling Codex and Claude coding-agent sessions through a self-hosted Bridge Server running on another computer. It lets users start sessions, approve actions, answer questions, review changes, and continue coding from supported devices. The catalogue entries provide the skills, hooks, MCP servers, agents, instructions, and settings used by this client.

K9i-0/ccpocket · 1,060 stars · on GitHub · k9i-0.github.io

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.

agentmods
npx agentmods add skills/k9i-0/ccpocket/web-preview
Any agent
npx skills add K9i-0/ccpocket --skill web-preview
Clone the repo
git clone --depth 1 https://github.com/K9i-0/ccpocket

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 web-preview

README.md
[![agentmods](https://agentmods.dev/badge/skills/k9i-0/ccpocket/web-preview.svg)](https://agentmods.dev/skills/k9i-0/ccpocket/web-preview)
Your own site
<a href="https://agentmods.dev/skills/k9i-0/ccpocket/web-preview"><img src="https://agentmods.dev/badge/skills/k9i-0/ccpocket/web-preview.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 660 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00032 $0.00660
Opus 5 $0.00016 $0.00330
Sonnet 5 $0.00006 $0.00132
Haiku 4.5 $0.00003 $0.00066

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

Security

Grade A, and why

web-preview scanned grade A with 1 finding 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/web-preview.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `curl` で起動完了を待機・検証
.claude/skills/web-preview/SKILL.md · 72 lines

What it actually says

Web Preview

Flutter Web版をビルド → サーバー起動 → Playwright でアクセス確認 → URLをユーザーに案内する。

手順

1. ビルド & サーバー起動(スクリプト)

bash .claude/skills/web-preview/scripts/web-preview.sh .

スクリプトが以下を一括で行う:

  • flutter build web --release
  • ポート8888の既存プロセスを停止(PIDファイル優先)
  • nohup python3 -m http.server で安定してバックグラウンド起動
  • curl で起動完了を待機・検証
  • LOCAL_URL127.0.0.1)と共有用 URL(Tailscale優先)を出力

出力例:

PID: 12345
LOCAL_URL: http://127.0.0.1:8888
URL: http://<tailscale-ip>:8888

2. Playwright でアクセス確認

Playwright検証は LOCAL_URL を優先して実施する:

playwright-cli open <LOCAL_URL>
playwright-cli eval "document.title"
playwright-cli screenshot --filename=web-preview.png
playwright-cli close
  • document.titleccpocket であることを確認する
  • スクリーンショットを取得してページが正常に表示されることを確認する
  • エラーがあればユーザーに報告する

3. ユーザーへの案内

以下の情報をユーザーに伝える:

  • ローカル確認URL(LOCAL_URL
  • 共有用URL(URL。通常はTailscale)
  • スクリーンショット(確認用)
  • ⚠️ ブラウザキャッシュクリア(Cmd+Shift+R)してからリロードすること

トラブルシュート

  • ERR_CONNECTION_REFUSED が出る場合:
    • curl -I <LOCAL_URL> でサーバー生存確認
    • lsof -nP -iTCP:8888 -sTCP:LISTEN で待受確認
    • /tmp/ccpocket-web-preview-8888.log を確認
  • 一部の実行環境では、コマンド終了時にバックグラウンドプロセスが回収されることがある。 その場合は別ターミナルで以下を起動してから Playwright を実行する:
cd apps/mobile/build/web
python3 -m http.server 8888
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 72 lines · 32 tokens per session scan A d8d61596d96a

Subscribe to this mod's changes

web-preview is a skill published in the GitHub repository K9i-0/ccpocket (1,060 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 660 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

zmr-mobile-testing

Use when testing mobile apps with Zeno Mobile Runner, integrating app-local .zmr setup, driving Android or iOS simulator scenarios, using JSON-RPC or MCP agent sessions, exporting traces, or comparing mobile runner benchmarks.

johnmikel/zeno-mobile-runner · 50 tokens

android-e2e-readiness

Use when Android mobile E2E flows are flaky, Compose and View screens disagree with automation, hybrid screens are ambiguous, retries hide the real issue, or the team keeps collapsing the problem to selector-vs-timing without checking Android-specific readiness contracts.

shenyuexin/mobile-e2e-mcp · 57 tokens

ios-e2e-readiness

Use when iOS mobile E2E flows are flaky, SwiftUI and UIKit surfaces disagree with automation, mixed screens are ambiguous, retries hide the real issue, or the team keeps collapsing the problem to timing-only or SwiftUI-only without checking iOS-specific readiness contracts.

shenyuexin/mobile-e2e-mcp · 61 tokens

mobile-e2e-readiness-baseline

Use when mobile E2E flows are flaky across Android and iOS, visible screens are not reliably actionable, retries hide the real problem, or a team needs a platform-neutral readiness review before platform-specific guidance.

shenyuexin/mobile-e2e-mcp · 51 tokens

maestro-testing

Generate and manage Maestro test flows for mobile (Android, iOS) and web apps. Use this skill whenever the user mentions mobile testing, UI testing, end-to-end testing, Maestro flows, app automation, test generation from PRDs/specs/user stories, or wants to create/edit/debug YAML test flows. Trigger for any app…

eagleisbatman/maestro-skill · 176 tokens

upgrade-browser

Upgrade browser versions (Chrome or Firefox) in the Flutter Web Engine and/or Framework tests. Use when asked to roll or upgrade Chrome or Firefox to a newer version.

flutter/flutter · 36 tokens