Agent skill

Test Flutter

by K9i-0 in K9i-0/ccpocket

“Flutter App のテスト実行・静的解析・フォーマット・テスト記述ガイド”

— description from SKILL.md by K9i-0
MITAuto-check passedMobile

Install Test Flutter

skills CLI
$ npx skills add K9i-0/ccpocket --skill test-flutter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install K9i-0/ccpocket test-flutter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/K9i-0/ccpocket.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/test-flutter .claude/skills/test-flutter && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-flutter
GitHub stars
1.1k
Token cost
~428 tokens
SKILL.md length
60 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

  • Works in 3 steps: 静的解析 → フォーマット → ユニットテスト
  • SKILL.md covers 実行手順 and テスト記述規約
  • Calls dart and flutter

About this skill

Test Flutter is a skill in K9i-0/ccpocket (1.1k stars). Its SKILL.md is about 428 tokens. Licence: MIT.

Requirements

  • Pre-approved tools (allowed-tools): Bash(flutter:*), Bash(dart:*), Read, Glob, Grep

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. 静的解析
  2. フォーマット
  3. ユニットテスト

What it can do on your machine

Read from SKILL.md and the folder at commit 8354ffd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(flutter:*)
    • Bash(dart:*)
    • Read
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dart
    • flutter

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Test Flutter loads about 428 tokens when it runs. Until then it costs about 13 tokens; SKILL.md has 60 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~13
When it runs · the whole SKILL.md, loaded when a task matches
~428

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from K9i-0/ccpocket at commit 8354ffd, republished under its MIT licence (© K9i-0). 60 words, ~428 tokens.

Download SKILL.mdSave it as .claude/skills/test-flutter/SKILL.md (or your agent's skills folder).
name
test-flutter
description
Flutter App のテスト実行・静的解析・フォーマット・テスト記述ガイド
allowed-tools
Bash(flutter:*), Bash(dart:*), Read, Glob, Grep

Flutter App テスト

実行手順

変更した挙動に対応するテストと静的検証を選ぶ。全体テストは、共通基盤・依存関係への変更や回帰懸念がある場合、または全体検証を依頼された場合に実行する。成功済みの検証を理由なく繰り返さない。以下はコマンドの選択肢。

1. 静的解析
bash
dart analyze apps/mobile

今回の変更で生じた warning 以上は修正する。既存の無関係な問題は報告し、info は必要に応じて対応する。

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

2. フォーマット
bash
dart format <変更したDartファイル>
3. ユニットテスト
bash
cd apps/mobile && flutter test

特定ファイルのみ:

bash
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
dart
import 'package:flutter_test/flutter_test.dart';
import 'package:ccpocket/...';
テスト構造
dart
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領域)

© K9i-0, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/test-flutter of K9i-0/ccpocket.

Open the folder on GitHubat commit 8354ffd

Compare with similar skills

Test Flutter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Flutter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Flutter this skillK9i-0/ccpocket1.1k—~428Automated safety check: PassMIT
Aaalice Dev SessionsAaalice233/Aaalice_NAI_Launcher187—~902Automated safety check: PassMIT
Aaalice Hot ReloadAaalice233/Aaalice_NAI_Launcher187—~531Automated safety check: PassMIT
Aaalice Runtime VerifyAaalice233/Aaalice_NAI_Launcher187—~963Automated safety check: PassMIT
Native Desktop UI TestingFNOSP/FlyNarwhal495—~2.4kAutomated safety check: PassAGPL-3.0
Flutter MCP E2E HarnessArenukvern/mcp_flutter386—~2.2kAutomated safety check: PassMIT

Similar skills

  • Aaalice Dev Sessions

    Aaalice233/Aaalice_NAI_Launcher

    管理 Aaalice NAI Launcher 项目专用的 Windows 与 Android Flutter 开发会话。用户提到 PC热重载、安卓热重载、启动/关闭/重建独立命令行窗口、模拟器启动异常或检查双端会话时使用。

    187 GitHub stars~902 tokensUpdated 2 days ago
    MobileAuto-check passed
  • Aaalice Hot Reload

    Aaalice233/Aaalice_NAI_Launcher

    为 Aaalice NAI Launcher 修改代码后选择并执行 Windows/Android 的 r 热重载、R 热重启或完整重建,并验证结果。已有开发会话运行时,代码修改完成后自动使用;用户要求热重载、热重启、修改后刷新或查看 Flutter 日志时也使用。

    187 GitHub stars~531 tokensUpdated 2 days ago
    MobileAuto-check passed
  • Aaalice Runtime Verify

    Aaalice233/Aaalice_NAI_Launcher

    用户要求自动化运行验收、界面操作、截图检查或双端 UI 测试时,自动启动或复用 Aaalice NAI Launcher 热重载会话,通过项目级 Dart/Flutter MCP 验证应用;Android 系统界面按需使用 ADB。

    187 GitHub stars~963 tokensUpdated 2 days ago
    MobileAuto-check passed
  • Run and verify Flutter desktop behavior on Windows/macOS/Linux native clients.

    495 GitHub stars~2.4k tokensUpdated yesterday
    MobileAuto-check passed
  • Flutter MCP E2E Harness

    Arenukvern/mcp_flutter

    A skill your agent uses when writing or running repeatable E2E scenarios for Flutter apps as checked-in Dart with the fluttermcpharness package (packages/harness) — build/launch the app, attach to…

    386 GitHub stars~2.2k tokensUpdated 5 days ago
    MobileAuto-check passed
  • Flutter MCP Toolkit Debug

    Arenukvern/mcp_flutter

    Diagnose problems in a running Flutter app — read logs, evaluate Dart expressions, interpret error envelopes.

    386 GitHub stars~4.7k tokensUpdated 5 days ago
    MobileAuto-check passed

More from K9i-0/ccpocket

All 17 skills in this repo
  • Sim Preview

    K9i-0/ccpocket

    iOSシミュレーターで動くFlutterアプリをExpo Device HubとTailscale HTTPSでスマホのブラウザへ配信・操作するときに使う。

    1.1k GitHub stars~711 tokensUpdated 5 days ago
    Auto-check passed
  • Codex Guide

    K9i-0/ccpocket

    Codex の使い方、CLI/app/IDE、rules・hooks・AGENTS.md・skills・subagents・config などを案内する。Codex や OpenAI 製品の仕様を答える前に必ず公式ドキュメントを確認し、rules/approval は codex execpolicy check で実検証すること。

    1.1k GitHub stars~475 tokensUpdated 5 days ago
    Auto-check passed
  • Submit Store Review

    K9i-0/ccpocket

    既存の安定ビルドをApp Store / Google Playの審査へ提出・再提出する。新規ビルドはrelease-appを使う。

    1.1k GitHub stars~1.8k tokensUpdated 5 days ago
    Auto-check passed
  • Web Preview

    K9i-0/ccpocket

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

    1.1k GitHub stars~359 tokensUpdated 5 days ago
    Auto-check passed
  • Flutter UI Design

    K9i-0/ccpocket

    Flutter UI実装のアーキテクチャ規約・コンポーネント分割・状態管理ガイド(Bloc/Cubit版). An agent skill from K9i-0/ccpocket.

    1.1k GitHub stars~1.2k tokensUpdated 5 days ago
    Auto-check passed
  • Flutter Upgrade

    K9i-0/ccpocket

    Flutter SDKのアップグレード、または指定バージョンへの移行影響を調査するときに使う. An agent skill from K9i-0/ccpocket.

    1.1k GitHub stars~789 tokensUpdated 5 days ago
    Auto-check passed

Categories

Questions about Test Flutter

How do I install Test Flutter in Claude Code?

Run `npx skills add K9i-0/ccpocket --skill test-flutter -a claude-code`. Or copy the skill folder (.claude/skills/test-flutter in K9i-0/ccpocket) into .claude/skills/test-flutter in your project. Claude Code loads it when a task matches its description.

How do I install Test Flutter in Codex?

Run `npx skills add K9i-0/ccpocket --skill test-flutter -a codex`. Or copy the skill folder (.claude/skills/test-flutter in K9i-0/ccpocket) into .agents/skills/test-flutter in your project. Codex loads it when a task matches its description.

Can I use Test Flutter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add K9i-0/ccpocket --skill test-flutter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-flutter, .gemini/skills/test-flutter, .github/skills/test-flutter and .opencode/skills/test-flutter in your project.

What does Test Flutter need to run?

Going by SKILL.md and its folder, Test Flutter needs the command-line tools its instructions call (dart and flutter). Its frontmatter pre-approves these tools: Bash(flutter:*), Bash(dart:*), Read, Glob, Grep.

Does Test Flutter access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Test Flutter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test Flutter use?

Test Flutter is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Test Flutter use?

About 428 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Test Flutter?

Skills that share tags, products or a category with Test Flutter: Aaalice Dev Sessions (Aaalice233/Aaalice_NAI_Launcher, 187 stars), Aaalice Hot Reload (Aaalice233/Aaalice_NAI_Launcher, 187 stars), Aaalice Runtime Verify (Aaalice233/Aaalice_NAI_Launcher, 187 stars) and Native Desktop UI Testing (FNOSP/FlyNarwhal, 495 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Flutter?

K9i-0 (a GitHub user) maintains it in K9i-0/ccpocket, which has 1,083 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 3, 2026.

Source: K9i-0/ccpocket on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.