| name | flutter-executing |
| description | Use when you have a written implementation plan to execute with review checkpoints |
Executing Flutter Implementation Plans
Overview
Load plan, review critically, execute tasks in batches, run Flutter verifications, report for review between batches.
Core principle: Batch execution with checkpoints for review.
Announce at start: "I'm using the flutter-executing skill to implement this plan."
The Process
Step 1: Load and Review Plan
-
Read plan file
cat docs/plans/YYYY-MM-DD-<feature>-plan.md
-
Check dependencies first
cat pubspec.yaml
-
Install new dependencies if needed
flutter pub get
-
Review critically:
- Are file paths correct?
- Is layer order followed (Domain โ Data โ Presentation)?
- Are there any gaps in the plan?
-
If concerns: Raise them before starting
-
If no concerns: Create todo entries (task tracking tool) and proceed
Step 2: Execute Batch
Default: First 3 tasks
For each task:
- Mark as in_progress in the task tracker
- Create/modify files as specified
- Write complete code (from plan)
- Run verification:
flutter analyze lib/features/<feature>/
- Commit:
git add <files>
git commit -m "<conventional commit message>"
- Mark as completed in the task tracker
Step 3: Verify Batch
After completing 3 tasks, run full verification:
flutter analyze
flutter test test/features/<feature>/
flutter build <target> --debug
Step 4: Report
When batch complete, report:
## Batch N Complete
**Tasks completed:**
1. โ
Task 1: [description]
2. โ
Task 2: [description]
3. โ
Task 3: [description]
**Verification:**
- flutter analyze: No issues found
- flutter test: X/X passed
**Files created/modified:**
- lib/features/.../entity.dart
- lib/features/.../repository.dart
- ...
**Ready for feedback.**
Step 5: Continue
Based on feedback:
- Apply changes if needed
- Execute next batch of 3 tasks
- Repeat until all tasks complete
Step 6: Complete Development
After all tasks complete and verified:
-
Run final verification:
flutter analyze
flutter test
flutter build <target> --debug
-
Announce: "I'm using the flutter-finishing skill to complete this work."
-
REQUIRED SUB-SKILL: Use flutter-craft:flutter-finishing
- Verify tests
- Present 4 options (merge/PR/keep/discard)
- Execute choice
- Cleanup worktree if applicable
Flutter-Specific Verification Commands
| Stage | Command | Expected Output |
|---|
| Per-file | flutter analyze lib/path/file.dart | No issues found |
| Per-batch | flutter analyze lib/features/<feature>/ | No issues found |
| Test | flutter test test/features/<feature>/ | All tests passed |
| Final | flutter build <target> --debug | Built successfully |
When to Stop and Ask for Help
STOP executing immediately when:
flutter analyze shows errors (not just warnings)
- Tests fail with unclear cause
- Missing dependency not in pubspec.yaml
- Plan has unclear instructions
- File path in plan doesn't match project structure
- State management pattern unclear
Ask for clarification rather than guessing.
Layer Order Verification
Before executing, verify plan follows this order:
1. Domain Layer tasks first
โโโ Entities
โโโ Repository interfaces
โโโ UseCases
2. Data Layer tasks second
โโโ Models
โโโ DataSources
โโโ Repository implementations
3. Presentation Layer tasks third
โโโ State Management
โโโ Widgets
โโโ Screens
4. Test tasks after implementation
โโโ Repository tests (priority 1)
โโโ State tests (priority 2)
โโโ Widget tests (priority 3)
If plan doesn't follow this order, raise concern before starting.
REQUIRED SUB-SKILL
During Execution
After EACH batch, you MUST invoke:
โ flutter-craft:flutter-verification (verify before continuing)
After All Tasks Complete
You MUST invoke:
โ flutter-craft:flutter-finishing (present completion options)
Remember
- Review plan critically first - Don't blindly execute
- Follow layer order - Domain โ Data โ Presentation
- Run flutter analyze per batch - Catch errors early
- Commit after each task - Atomic commits
- Report and wait - Don't continue without feedback
- Stop when blocked - Don't guess, ask