From flutter-craft
Brainstorms Flutter features into designs and specs via dialogue, exploring requirements and proposing state management like Riverpod + Freezed before implementation.
npx claudepluginhub vp-k/flutter-craftThis skill uses the workspace's default tool permissions.
Help turn ideas into fully formed Flutter designs and specs through natural collaborative dialogue.
Provides expert Flutter/Dart patterns for cross-platform mobile apps including feature-first project structure, const widget best practices, and Riverpod/Bloc state management.
Provides Flutter/Dart guidance on architecture (BLoC, Riverpod), state management, widgets, navigation (GoRouter), data (Dio, Hive), performance, and testing for cross-platform mobile apps.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Share bugs, ideas, or general feedback.
Help turn ideas into fully formed Flutter designs and specs through natural collaborative dialogue.
Start by understanding the current project context (pubspec.yaml, lib/ structure, existing features), then ask questions one at a time to refine the idea. Once you understand what you're building, present the design in small sections (200-300 words), checking after each section whether it looks right so far.
Announce at start: "I'm using the flutter-brainstorming skill to design this feature."
Check project context first:
# Check pubspec.yaml for dependencies
cat pubspec.yaml
# Check existing lib/ structure
ls -la lib/
# Check existing features
ls -la lib/features/ 2>/dev/null || echo "No features folder yet"
Ask questions one at a time:
Key questions to explore:
Propose 2-3 different approaches with trade-offs:
Example for state management:
Approach A: Riverpod + Freezed (Recommended for new projects)
- Pros: Compile-time safety, immutable states, no boilerplate with codegen
- Cons: Learning curve, requires build_runner
- Best for: Most Flutter projects
Approach B: BLoC Pattern
- Pros: Separation of concerns, testable, scalable
- Cons: More boilerplate
- Best for: Complex state, multiple streams, large teams
Approach C: Provider + ChangeNotifier
- Pros: Simple, familiar
- Cons: Less structured, harder to test
- Best for: Simple local state, small projects
Riverpod + Freezed Pattern Example:
// State with freezed
@freezed
class AuthState with _$AuthState {
const factory AuthState.initial() = _Initial;
const factory AuthState.loading() = _Loading;
const factory AuthState.authenticated(User user) = _Authenticated;
const factory AuthState.error(String message) = _Error;
}
// Notifier with riverpod_generator
@riverpod
class Auth extends _$Auth {
@override
AuthState build() => const AuthState.initial();
Future<void> login(String email, String password) async {
state = const AuthState.loading();
try {
final user = await ref.read(authRepositoryProvider).login(email, password);
state = AuthState.authenticated(user);
} catch (e) {
state = AuthState.error(e.toString());
}
}
}
Lead with your recommendation and explain why.
Present the design in sections of 200-300 words:
Feature Overview
Clean Architecture Structure
lib/features/<feature_name>/
├── domain/
│ ├── entities/ # Business objects
│ ├── repositories/ # Repository interfaces
│ └── usecases/ # Business logic
├── data/
│ ├── models/ # DTOs (fromJson, toJson)
│ ├── datasources/ # Remote & Local data sources
│ └── repositories/ # Repository implementations
└── presentation/
├── bloc/ or provider/ # State management
├── widgets/ # Reusable UI components
└── screens/ # Full screen widgets
Data Flow
UI/UX Design
Testing Strategy (priority-based)
Ask after each section: "Does this look right so far?"
Write the validated design to:
docs/plans/YYYY-MM-DD-<feature>-design.md
Design document template:
# <Feature Name> Design
## Overview
[1-2 sentences describing the feature]
## User Stories
- As a user, I want to...
## Clean Architecture
### Domain Layer
- Entities: [list]
- UseCases: [list]
- Repository interfaces: [list]
### Data Layer
- Models: [list]
- DataSources: [list]
- Repository implementations: [list]
### Presentation Layer
- State Management: [BLoC/Provider/Riverpod]
- Screens: [list]
- Widgets: [list]
## Data Flow
[Diagram or description]
## API Contract
[If applicable]
## Testing Plan
- Unit tests: [list]
- Widget tests: [list]
- Integration tests: [if needed]
## Dependencies
[New packages needed in pubspec.yaml]
Commit the design document to git:
git add docs/plans/
git commit -m "docs: add <feature> design document"
Ask: "Ready to create an implementation plan?"
If yes:
flutter-craft:flutter-planning to create detailed implementation planflutter-craft:flutter-worktrees if isolated workspace is neededAfter completing brainstorming and documenting the design, you MUST invoke: → Skill tool: flutter-craft:flutter-planning
This is NOT optional. The workflow is incomplete without a detailed implementation plan.
Never skip brainstorming because: