Agent skill · Audited from source
Flutter Ui Design
skill · K9i-0/ccpocketMIT licenceAudited 12 Oct 2026 · source 6b4afc353bc7
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 6b4afc353bc7 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Flutter UI実装のアーキテクチャ規約・コンポーネント分割・状態管理ガイド(Bloc/Cubit版)
Cite
Cite this page
ModelsAtlas. “Flutter Ui Design (K9i-0/ccpocket)”. Retrieved 12 Oct 2026. https://modelsatlas.com/skills/k9i-0/flutter-ui-design
Trust audit
Audit 0.4.1 · source read 12 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 2 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (2)
MEDIUMInventory / provenanceinv.symlink · .agents/skills
.agents/skills
- Why
- link not followed
- Fix
- —
LOWInventory / provenanceinv.symlink · AGENTS.md
AGENTS.md
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha 6b4afc353bc7 · 12 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- PublisherK9i-0 GitHub userOwner of the repository this skill is read from
- Source folderK9i-0/ccpocket/.claude/skills/flutter-ui-designThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict6b4afc353bc7A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Flutter UI実装のアーキテクチャ規約・コンポーネント分割・状態管理ガイド(Bloc/Cubit版)
---
name: flutter-ui-design
description: Flutter UI実装のアーキテクチャ規約・コンポーネント分割・状態管理ガイド(Bloc/Cubit版)
allowed-tools: Bash(flutter:*), Bash(dart:*), Read, Write, Edit, Glob, Grep
---
# Flutter UI 実装規約
## アーキテクチャ概要
SSOT (Single Source of Truth) + UDF (Unidirectional Data Flow) に基づく設計。
### データフローパターン
- **Path A (Query)**: Cubit/Bloc → Widget (BlocBuilder/BlocListener)
- サーバー状態、永続化データ、共有状態
- BlocProvider を通じて単方向に流れる
- **Path B (Command)**: Widget → Cubit method → State emit
- ユーザーアクション、API呼び出し
- Cubit のメソッド経由で状態を変更
- **Path C (Local)**: StatefulWidget / useState
- テキスト入力、スクロール位置、展開状態等の一時的UI状態
## Widget 分割ルール
### 禁止パターン
```dart
// NG: プライベートメソッドでのWidget分割
class MyScreen extends StatefulWidget {
Widget _buildHeader() { ... }
Widget _buildBody() { ... }
Widget _buildFooter() { ... }
}
```
### 推奨パターン
```dart
// OK: 独立したWidgetクラスに分割
class MyScreenHeader extends StatelessWidget { ... }
class MyScreenBody extends StatelessWidget { ... }
class MyScreenFooter extends StatelessWidget { ... }
```
### 分割の判断基準
- 20行以上のbuildメソッド内ブロック → 独立Widgetに
- 独自のCubitを持つ → 独立Widget + BlocProvider
- BlocBuilder を含む → 独立Widget
- 表示のみ → StatelessWidget
## 状態管理
### Cubit パターン
```dart
class ChatSessionCubit extends Cubit<ChatSessionState> {
ChatSessionCubit() : super(const ChatSessionState());
void sendMessage(String text) {
// Command (Path B)
emit(state.copyWith(/* ... */));
}
}
```
### BridgeCubit パターン(Stream購読)
```dart
class ConnectionCubit extends BridgeCubit<BridgeConnectionState> {
ConnectionCubit(super.initialState, super.stream);
}
```
### Freezed State
```dart
@freezed
class ChatSessionState with _$ChatSessionState {
const factory ChatSessionState({
@Default([]) List<ChatEntry> entries,
@Default(SessionStatus.idle) SessionStatus status,
}) = _ChatSessionState;
}
```
- 全ての状態クラスは Freezed で定義
- sealed union で排他的状態を表現
- `@Default` で初期値を明示
## ファイル構成
### feature-first 構造
```
lib/features/<feature>/
├── <feature>_screen.dart # 画面Widget
├── state/
│ ├── <feature>_state.dart # Freezed state classes
│ ├── <feature>_cubit.dart # Cubit
│ └── <feature>_state.freezed.dart # 生成ファイル
└── widgets/
├── <component_a>.dart # 独立Widget
└── <component_b>.dart
```
### 命名規約
| 種別 | 命名 | 例 |
|------|------|-----|
| 画面 | `*_screen.dart` | `chat_screen.dart` |
| 状態 | `*_state.dart` | `chat_session_state.dart` |
| Cubit | `*_cubit.dart` | `chat_session_cubit.dart` |
| Widget | 機能を表す名前 | `chat_app_bar.dart` |
## ValueKey 命名規約(MCP自動テスト対応)
UI要素にはValueKeyを付与し、Marionette MCPでの自動テストを可能にする。
### 命名パターン
```
{要素の機能}_{要素タイプ}
```
### 例
```dart
ElevatedButton(
key: const ValueKey('approve_button'),
onPressed: _approve,
child: const Text('Approve'),
)
TextField(
key: const ValueKey('message_input'),
controller: _controller,
)
```
### 要素タイプ一覧
| タイプ | 用途 |
|--------|------|
| `_button` | ボタン |
| `_field` | テキスト入力 |
| `_input` | テキスト入力(短い) |
| `_list` | リスト |
| `_fab` | FloatingActionButton |
| `_toggle` | トグル |
| `_chip` | チップ |
| `_badge` | バッジ |
| `_indicator` | インジケーター |
## Flutter ベストプラクティス
Flutter公式AIルール (flutter/flutter docs/rules) から、本プロジェクトに適用可能なものを抜粋。
### パフォーマンス
- **build()内で重い処理をしない**: ネットワーク呼び出し・複雑な計算はbuild()の外で行う
- **ListView.builder / SliverList**: 長いリストは必ずbuilder系コンストラクタで遅延生成する
- **constコンストラクタ**: Widget・build()内で可能な限り `const` を使いリビルドを削減する
- **Isolate**: JSON解析等の重い処理は `compute()` で別Isolateに逃がす
### Dartコーディング
- **Null Safety**: ! (bang operator) は値がnon-nullと保証できる場合のみ使用。安易に使わない
- **exhaustive switch**: switch文/式は網羅的に書く。breakは不要
- **パターンマッチング**: コードを簡潔にできる箇所ではパターンマッチングを活用する
- **アロー関数**: 1行で済む関数はアロー構文 (`=>`) を使う
- **関数の長さ**: 1関数20行未満を目指す。超える場合は分割を検討
### レイアウト
- **Expanded / Flexible**: 同一Row/Column内での混在禁止
- **Wrap**: Row/Columnで溢れる要素はWrapで折り返す
- **SingleChildScrollView**: 固定サイズでビューポートを超えるコンテンツに使用
- **FittedBox**: 子Widgetを親のサイズに合わせてスケーリング
- **LayoutBuilder**: レスポンシブレイアウトでの利用可能スペースに基づく分岐
### テーマ・スタイリング
- **ThemeExtension**: 標準ThemeDataに無いカスタムスタイルはThemeExtensionで定義する
- **ColorScheme.fromSeed()**: シードカラーからLight/Dark両テーマを生成
- **WidgetStateProperty**: ボタン等の状態別スタイルは `resolveWith` で定義
### アクセシビリティ
- **コントラスト比**: テキストは背景に対して4.5:1以上(大きいテキストは3:1以上)
- **Semantics**: スクリーンリーダー向けに `Semantics` Widgetで説明ラベルを付与
- **動的テキストスケーリング**: システムフォントサイズ変更時にUIが崩れないことを確認
## build_runner
状態クラスの変更後は必ず実行:
```bash
cd apps/mobile && dart run build_runner build --delete-conflicting-outputs
```
## チェックリスト
実装完了時に確認:
- [ ] `_buildXxx()` メソッドが残っていないこと
- [ ] 全状態がFreezedクラスで管理されていること
- [ ] BlocBuilder/BlocListenerが適切に使い分けられていること
- [ ] 新規UI要素にValueKeyが付与されていること
- [ ] `dart analyze apps/mobile` がクリーン
- [ ] `dart format apps/mobile` が適用済み
- [ ] 既存テストがパス (`flutter test`)
- [ ] 新規Cubitのユニットテストが追加されていること
- [ ] build()内に重い処理(ネットワーク、複雑な計算)がないこと
- [ ] 長いリストがListView.builder/SliverListで実装されていること
- [ ] 可能な箇所でconstコンストラクタが使われていることExcerpt, first 4,852 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 6b4afc3
git clone https://github.com/K9i-0/ccpocket git -C ccpocket checkout 6b4afc353bc7
The author documents no install command, so this uses the repository directly. Our verdict covers commit 6b4afc353bc7 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
6b4afc353bc7
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/k9i-0/flutter-ui-design/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All coding & review skills →K9i-0/ccpocket
Codex の使い方、CLI/app/IDE、rules・hooks・AGENTS.md・skills・subagents・config などを案内する。Codex や OpenAI 製品の仕様を答える前に必ず公式ドキュメントを確認し、rules/approval は `codex execpolicy check` で実検証すること。
K9i-0/ccpocket
Flutter SDKのアップグレード、または指定バージョンへの移行影響を調査するときに使う。
K9i-0/ccpocket
ブランチをメインにマージしてお掃除する
K9i-0/ccpocket
FlutterアプリのUI動作をシミュレーターで検証する、またはBridgeとのE2Eを確認するときに使う。
K9i-0/ccpocket
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications,…
K9i-0/ccpocket
ccpocketアプリのバージョン更新と、指定プラットフォーム向けリリースを行う。
Add this badge to your README
[](https://modelsatlas.com/skills/k9i-0/flutter-ui-design/)
<a href="https://modelsatlas.com/skills/k9i-0/flutter-ui-design/"><img src="https://modelsatlas.com/skills/k9i-0/flutter-ui-design/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Flutter Ui Design
What does the Flutter Ui Design skill do?
Is Flutter Ui Design safe to install?
What can Flutter Ui Design access on my machine?
How current is this page?
Sources
- github.com/K9i-0/ccpocket/tree/main/.claude/skills/flutter-ui-de — the audited source at commit 6b4afc353bc7 and every finding aboveObserved · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Flutter Ui Design skill do?
- Is Flutter Ui Design safe to install?
- What can Flutter Ui Design access on my machine?