agentleFS
K9i-0K9i-0/ccpocket/.claude/skills/web-preview/SKILL.md

web-preview

Skill1.1k starsChanged 10 months agoMITView on GitHub

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

Trending

Quiet since October.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 3 mentionsApr 2026: 2 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the K9i-0/ccpocket repository that our weekly crawl found: only 8 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about K9i-0/ccpocket

The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 8

Talked about on GitHub, Bluesky and Hacker News (8 times).

On GitHub · 5

The file

Files
SKILL.md

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.