Skip to content
Agent Workspaces
Skill

/web-preview

Flutter Web版をビルドしてユーザーにプレビューURLを案内する。playwright-cliでアクセス確認も行う。

From plugin
ccpocket
1.1k18 skills2 agents2 MCP

Claude Code

$ npx -y skills add K9i-0/ccpocket --skill web-preview --agent claude-code

SKILL.md

web-preview.SKILL.md
name: web-preview
description: Flutter Web版をビルドしてユーザーにプレビューURLを案内する。playwright-cliでアクセス確認も行う。
allowed-tools: Bash(bash:*), Bash(playwright-cli:*)

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_URL`(`127.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.title` が `ccpocket` であることを確認する
  • スクリーンショットを取得してページが正常に表示されることを確認する
  • エラーがあればユーザーに報告する

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
Read more
@k9i-0
Ships withccpocket

Your agents. In your pocket. Codex and Claude, with a chat UI made for your phone. Start a task, approve the next step, and review the result. Pick up the same work on your tablet or Mac.

1.1k18 skills2 agents2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of K9i-0/ccpocket on GitHub, a chart by star-history.com

Other skills on ccpocket.

codex-guide

codex-guide

Codex の使い方、CLI/app/IDE、rules・hooks・AGENTS.md・skills・subagents・config などを案内する。Codex や OpenAI…

@k9i-0@k9i-0Install Skill
flutter-ui-design

flutter-ui-design

Flutter UI実装のアーキテクチャ規約・コンポーネント分割・状態管理ガイド(Bloc/Cubit版)

@k9i-0@k9i-0Install Skill
flutter-upgrade

flutter-upgrade

Flutter SDKのアップグレード、または指定バージョンへの移行影響を調査するときに使う。

@k9i-0@k9i-0Install Skill
merge

merge

作業ブランチを main にマージして push し、ブランチと worktree を片付ける

@k9i-0@k9i-0Install Skill
mobile-automation

mobile-automation

FlutterアプリのUI動作をシミュレーター・エミュレーター・実機で検証する、BridgeとのE2Eを確認する、または権限ダイアログ等のネイティブUIを操作するときに使う。

@k9i-0@k9i-0Install Skill
playwright-cli

playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to…

@k9i-0@k9i-0Install Skill

More skills from other plugins.

paseo

paseo

Paseo reference for managing hosts, projects, workspaces, workspace scripts, agents, schedules, and heartbeats.

paseo12d23k
@getpaseo@getpaseoInstall Skill
10x
Auto-invoked

10x

Personalized audit that teaches the advanced Paradev (formerly Superset) features the user isn't using yet (automations, parallel…

paradev3d16k
@superset-sh@superset-shInstall Skill
capabilities

capabilities

Your capability catalog — read this at boot. Lists the temporal date-range skills and the external integrations (reached via the…

@chaitanyagiri@chaitanyagiriInstall Skill

Questions about web-preview.

Which coding agents can use web-preview?
web-preview installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.