test-flutter

test-flutter is a skill for Claude Code, Codex from K9i-0/ccpocket. It costs 26 tokens per session (883 once invoked), scanned A, original, MIT.

Flutter app testing guidance covering code checks, formatting, unit tests, and user-interface tests. Flutter is a toolkit for building apps from one codebase.

In plain words
What is it for?
Running analysis, formatting code, and running all or selected Flutter tests. It also helps place, name, group, and structure logic and widget tests.
Why use it?
It gives developers a repeatable order for checking an app and shared rules for writing and naming tests. This helps catch code and interface problems before changes are accepted.

Skill for Claude CodeCodex

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/test-flutter
Any agent
npx skills add K9i-0/ccpocket --skill test-flutter
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 test-flutter

README.md
[![agentmods](https://agentmods.dev/badge/skills/k9i-0/ccpocket/test-flutter.svg)](https://agentmods.dev/skills/k9i-0/ccpocket/test-flutter)
Your own site
<a href="https://agentmods.dev/skills/k9i-0/ccpocket/test-flutter"><img src="https://agentmods.dev/badge/skills/k9i-0/ccpocket/test-flutter.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 883 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00026 $0.00883
Opus 5 $0.00013 $0.00441
Sonnet 5 $0.00005 $0.00177
Haiku 4.5 $0.00003 $0.00088

Measured 4d ago against content hash 78715fdc3bf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-flutter scanned grade A with 0 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 4d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/test-flutter/SKILL.md · 104 lines

What it actually says

Flutter App テスト

実行手順

以下を順番に実行し、全てパスすることを確認する。

1. 静的解析

dart analyze apps/mobile

warning 以上は修正する。info レベルは必要に応じて対応。

MCP代替: mcp__dart-mcp__analyze_files でも実行可能だが、CLI推奨。

2. フォーマット

dart format apps/mobile

3. ユニットテスト

cd apps/mobile && flutter test

特定ファイルのみ:

cd apps/mobile && flutter test test/<filename>_test.dart

MCP代替: mcp__dart-mcp__run_tests でも実行可能だが、CLI推奨。 MCP版はDTD接続不要な操作のため、CLIの方が効率的。

テスト記述規約

ファイル配置・命名

  • テストファイルは apps/mobile/test/ に配置
  • 命名: <対象の概念>_test.dart
    • ウィジェットテスト例: approval_bar_test.dart, chat_input_bar_test.dart
    • ロジックテスト例: chat_message_handler_test.dart

import

import 'package:flutter_test/flutter_test.dart';
import 'package:ccpocket/...';

テスト構造

void main() {
  group('対象クラスまたは機能', () {
    test('動作の説明', () {
      // ロジックテスト
      expect(actual, expected);
    });

    testWidgets('UI動作の説明', (tester) async {
      // ウィジェットテスト
      await tester.pumpWidget(MaterialApp(home: TargetWidget()));
      expect(find.text('expected'), findsOneWidget);
    });
  });
}
  • group で対象機能ごとにグルーピング
  • ロジックテストは test()、UI テストは testWidgets() を使い分ける
  • setUp() でテスト前の共通初期化を行う

テスト対象の方針

  • ウィジェットテスト: 画面の表示・インタラクション検証
    • pumpWidget でウィジェット構築 → find で要素確認 → tap/enterText で操作
  • ロジックテスト: サービス・ハンドラーの振る舞い検証
    • 純粋なDartクラスのメソッド呼び出しと結果確認
  • WebSocket通信やBridge接続のモックが必要なテストは避ける (E2E領域)

既存テストファイル一覧

  • approval_bar_test.dart — 承認バーUI
  • ask_user_question_widget_test.dart — AskUserQuestion UI
  • chat_input_bar_test.dart — チャット入力バーUI
  • chat_message_handler_test.dart — メッセージハンドラーロジック
  • gallery_screen_test.dart — ギャラリー画面
  • home_screen_test.dart — ホーム画面
  • plan_mode_test.dart — プランモードUI
  • session_card_test.dart — セッションカードUI
  • slash_command_test.dart — スラッシュコマンドUI
  • tool_result_bubble_test.dart — ツール結果表示
  • tool_use_tile_test.dart — ツール使用タイル表示
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. 4d ago First seen · 104 lines · 26 tokens per session scan A 78715fdc3bf7

Subscribe to this mod's changes

test-flutter is a skill published in the GitHub repository K9i-0/ccpocket (1,047 stars, last pushed 5d ago), licensed MIT. It adds 26 tokens to every session and 883 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. 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

ios-testing

Testing patterns for Swift and SwiftUI apps.

TalissonVitorino/kmp-ios-skills · 69 tokens