ccpocket: Skill for Claude Code

.claude/skills/web-preview/SKILL.md

web-preview is a skill for Claude Code from K9i-0/ccpocket. It costs 32 tokens per session (652 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 Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

This is K9i-0/ccpocket's own configuration. It tells Claude Code how to work on ccpocket itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ccpocket configures →

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,092 stars · on GitHub · k9i-0.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to K9i-0/ccpocket. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/K9i-0/ccpocket/main/.claude/skills/web-preview/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/K9i-0/ccpocket

Made for: Claude Code.

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/github.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/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 web-preview

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 23
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00652
Opus 5.5 $0.00013 $0.00261
Sonnet 5.5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 1mo ago against content hash 52ce5e100bf6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 71 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_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
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. 1mo ago Changed · -1 lines 52ce5e100bf6
  2. 1mo 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,092 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 652 once invoked, about $0.0001 per session on Opus 5.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

noqa-testing

Use this skill when the user wants to boot and interact with iOS or Android devices/simulators — inspect the screen, execute actions, generate or edit test cases, or run UI tests via the noqa platform.

noqa-ai/noqa · 47 tokens

mobiloop-mobile-qa

Test mobile apps with MobiLoop MCP, collect device evidence, and fix and retest confirmed failures within the user's scope. Use for Flutter, React Native, Android, or iOS QA on an emulator, simulator, or device, including relevant mobile security checks.

enessubass/mobiloop-mcp · 60 tokens

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