flutter-subagent-dev について
flutter-subagent-devは、Flutterの実装計画をタスクごとに新しいサブエージェントで進めるスキルです。各タスクで仕様適合性を先に確認し、次にコード品質をレビューして、完了後はflutter-finishingへ引き継ぎます。
主な機能
- 01計画からタスクリストを作成
- 02タスクごとに新しいサブエージェントを使用
- 03仕様適合性を先にレビュー
- 04続けてコード品質をレビュー
- 05問題の修正と再レビュー後に続行
活用シーン
- 01独立性の高いFlutterタスク計画の実行
- 02実装ごとの要件適合性の確認
- 03Flutterプロジェクト完了前の段階的レビュー
インストール
コマンドをコピーしてターミナルで実行します。
npx skills add https:/ / github.com/ vp-k/ flutter-craft --skill flutter-subagent-devインストール後、Claude Code で/flutter-subagent-devを入力して読み込まれたか確認します。
詳細
Flutter サブエージェント駆動開発
タスクごとに新しいサブエージェントを割り当てて計画を実行し、各タスクの後に仕様準拠レビュー、次にコード品質レビューの2段階レビューを行います。
基本原則: タスクごとに新しいサブエージェントを割り当て、2段階レビューを行うことで、高品質な Flutter コードを迅速に作成できます。
開始時に宣言: "I'm using the flutter-subagent-dev skill to execute this plan."
使用する場面
Have implementation plan?
├─ NO → Use flutter-brainstorming first
└─ YES → Tasks mostly independent?
├─ NO → Tightly coupled → Use flutter-executing instead
└─ YES → Stay in this session?
├─ YES → Use flutter-subagent-dev (this skill)
└─ NO → Use flutter-executing (parallel session)
Flutter Executing(バッチモード)との比較:
- 同じセッション内で実行(コンテキストの切り替えなし)
- タスクごとに新しいサブエージェントを割り当て(コンテキストの汚染なし)
- 各タスクの後に2段階レビューを実施
- より迅速に反復
プロセス
1. Read plan, extract all tasks, create todo entries (task tracking tool)
↓
2. For each task:
├─ Dispatch implementer subagent
├─ Implementer asks questions? → Answer, then proceed
├─ Implementer implements, runs flutter analyze, commits
├─ Dispatch spec reviewer subagent
├─ Spec compliant?
│ ├─ NO → Implementer fixes, re-review
│ └─ YES → Continue
├─ Dispatch code quality reviewer subagent
├─ Quality approved?
│ ├─ NO → Implementer fixes, re-review
│ └─ YES → Mark task complete
└─ Next task
↓
3. After all tasks:
├─ Dispatch final code reviewer
└─ Use flutter-finishing skill
サブエージェントのプロンプトテンプレート
実装サブエージェント
subagent_type: "flutter-craft:flutter-dart-specialist" を指定して割り当てます。このエージェント定義には、Flutter/Dart の実装規範(Riverpod のパターン、ウィジェットの原則、パフォーマンス、推奨パッケージ)が含まれているため、それらをプロンプトに貼り付ける必要はありません。
You are implementing Task N: [task name]
## Task Description
[Full task text from plan - copy exactly]
## Context
- Project: Flutter app using [BLoC/Provider/Riverpod]
- Architecture: Clean Architecture
- This task is part of: [feature name]
- Previous tasks completed: [list]
- Dependencies: [what this task depends on]
## Layer
[Domain / Data / Presentation / Test]
## Before You Begin
If you have questions about:
- Clean Architecture placement
- State management approach
- Widget composition
- Test strategy
Ask before implementing.
## Your Job
1. Implement exactly as specified in task
2. Run `flutter analyze` - must show no issues
3. Commit with conventional commit message
4. Self-review: Check against task requirements
5. Report what you implemented
## Verification
After implementation:
$ flutter analyze lib/features/<feature>/
Expected: No issues found!
仕様レビュアーサブエージェント
You are reviewing whether an implementation matches its specification.
## What Was Requested
[Full task requirements from plan]
## What Implementer Claims They Built
[From implementer's report]
## CRITICAL: Do Not Trust the Report
Verify everything independently by reading actual code.
**DO NOT:**
- Take their word for what they implemented
- Trust claims about completeness
- Accept their interpretation of requirements
**DO:**
- Read the actual code they wrote
- Compare actual implementation to requirements line by line
- Check for missing pieces
- Look for extra features not in spec
## Your Job
Read the implementation code and verify:
**Missing requirements:**
- Did they implement everything requested?
- Are there requirements they skipped?
**Extra/unneeded work:**
- Did they build things not requested?
- Did they add "nice to haves" not in spec?
**Flutter-Specific Checks:**
- Is the layer correct (Domain/Data/Presentation)?
- Does Clean Architecture structure match?
- Are dependencies pointing correct direction?
**Report:**
- ✅ Spec compliant (everything matches after code inspection)
- ❌ Issues found: [list specifically what's missing or extra, with file:line references]
コード品質レビュアーサブエージェント
subagent_type: "flutter-craft:flutter-code-reviewer" を指定して割り当てます。品質チェックリスト(クリーンアーキテクチャ、状態管理、ウィジェットの品質、Dart のスタイル、優先度に基づくテストカバレッジ)のすべてはこのエージェント定義に記載されており、唯一の信頼できる情報源です。チェックリストをプロンプトに貼り付けないでください。
You are reviewing Flutter code quality after spec compliance is confirmed.
## What Was Implemented
[Description]
## Git Range to Review
Base: {BASE_SHA}
Head: {HEAD_SHA}
Apply your full review checklist. Additionally verify that tests actually
test logic (not just mocks).
## Output Format
### Strengths
[What's well done?]
### Issues
#### Critical (Must Fix)
[Bugs, security issues, broken functionality]
#### Important (Should Fix)
[Architecture problems, missing features, test gaps]
#### Minor (Nice to Have)
[Style, optimization]
### Assessment
**Ready to proceed?** [Yes/No/With fixes]
ワークフローの例
You: I'm using Flutter Subagent-Driven Development to execute this plan.
[Read plan: docs/plans/auth-plan.md]
[Extract all 5 tasks with context]
[Create todo entries for all tasks]
Task 1: User Entity (Domain Layer)
[Dispatch implementer subagent with full task text]
Implementer: "Implementing User entity in domain layer..."
- Created lib/features/auth/domain/entities/user.dart
- flutter analyze: No issues found!
- Committed: "feat(auth): add User entity"
[Dispatch spec reviewer]
Spec reviewer: ✅ Spec compliant - User entity matches requirements
[Dispatch code quality reviewer]
Code reviewer:
Strengths: Clean entity, proper const constructor
Issues: None
Assessment: Approved
[Mark Task 1 complete]
Task 2: AuthRepository Interface (Domain Layer)
[Dispatch implementer subagent]
Implementer: "Question: Should login return Either<Failure, User> or just User?"
You: "Use Either<Failure, User> pattern with fpdart package"
Implementer: "Got it. Implementing..."
- Created auth_repository.dart with Either return types
- flutter analyze: No issues found!
- Committed
[Dispatch spec reviewer]
Spec reviewer: ❌ Issues:
- Missing: logout() method specified in plan
- Extra: Added refreshToken() not in spec
[Implementer fixes]
Implementer: Added logout(), removed refreshToken()
[Spec reviewer reviews again]
Spec reviewer: ✅ Spec compliant
[Dispatch code quality reviewer]
Code reviewer: ✅ Approved
[Mark Task 2 complete]
... (continue for remaining tasks)
[After all tasks]
[Dispatch final code reviewer for entire feature]
[Use flutter-finishing skill]
注意すべき兆候
禁止事項:
- レビューを省略する(仕様準拠レビュー、またはコード品質レビュー)
- 未修正の問題を残したまま進める
- 仕様準拠レビューの前にコード品質レビューを開始する ✅
- 実装担当者に
flutter analyzeを省略させる - サブエージェントからの質問を無視する
サブエージェントから質問があった場合:
- クリーンアーキテクチャにおける配置について明確に回答する
- 状態管理の方針を明確にする
- 既存のパターンに関する背景情報を提供する
レビュアーが問題を見つけた場合:
- 実装担当者が修正する
- レビュアーが再レビューする
- 承認されるまで繰り返す
必須サブスキル
すべてのタスク完了後: → flutter-craft:flutter-finishing(完了時の選択肢を提示)