# Flutter Coding Rules

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-eaglesakura-agent-skills-flutter-coding-rules`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [eaglesakura](https://agentstack.voostack.com/s/eaglesakura)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [eaglesakura](https://github.com/eaglesakura)
- **Source:** https://github.com/eaglesakura/agent-skills/tree/main/packages/flutter/.apm/skills/flutter-coding-rules

## Install

```sh
agentstack add skill-eaglesakura-agent-skills-flutter-coding-rules
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Flutter & Dart コーディング規約

`*.dart` を書く・直すときは、この SKILL の規約と、文脈に合う参照ドキュメントに従う。
レイヤー設計そのものは `flutter-layered-architecture-*` 側が主で、本 SKILL は言語・ファイル・コメント・定番パターンの土台である。

## いつ使うか

* Dart の新規実装・修正・レビュー指摘の反映
* データオブジェクト / Delegate / enum / 例外処理 / 可視性 / ファイルレイアウト / コメント

## 作業手順

1. 変更対象の種類を特定する（DTO、Delegate、enum、コメントのみ、など）
2. 下表から必要な `references/`（と snippets）をロードする
3. 規約に沿って実装する
4. Analyzer / Formatter で検証する
5. 解析エラーの直し方に迷ったら [fix-error](./references/fix-error.md) を読む

## 文脈に応じたドキュメントのロード

| 参照 | 使うとき |
| --- | --- |
| [クラス作成テンプレート](./assets/architecture_data_object.code-snippets) | データオブジェクト等のひな形が欲しいとき |
| [data_object](./references/data_object.md) | DTO / data class / 構造体的な型 |
| [delegate-pattern](./references/delegate-pattern.md) | Delegate による責務分離 |
| [code_comment](./references/code_comment.md) | ドキュメントコメント・Example |
| [code_internal](./references/code_internal.md) | `@internal` / `@visibleForTesting` / `@protected` 等 |
| [dart_file_layout](./references/dart_file_layout.md) | ファイル名・1クラス1ファイル・library・配置 |
| [enum](./references/enum.md) | enum・dot-shorthands・switch 網羅 |
| [try-catch](./references/try-catch.md) | 例外処理・Error/Exception の catch |
| [fix-error](./references/fix-error.md) | Analyzer / よくある修正の手順 |

必要な参照だけ読む。全部を一度にロードしない。

## 他 SKILL との境界

* 画面の MVVM: `flutter-layered-architecture-screen-mvvm`
* Usecase / Repository 設計: `flutter-layered-architecture-design-patterns`
* アプリ起動・DTD デバッグ: `flutter-app-debug`

## ナレッジベース

### DO: プロジェクト規定のコマンド prefix を付ける

* `mise` / `fvm` 等がある場合はそのルールに従う（例: `flutter ...`）

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [eaglesakura](https://github.com/eaglesakura)
- **Source:** [eaglesakura/agent-skills](https://github.com/eaglesakura/agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-eaglesakura-agent-skills-flutter-coding-rules
- Seller: https://agentstack.voostack.com/s/eaglesakura
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
