xiaohongshu
xiaohongshu
flutter-riverpod-architecture
Clean Architecture patterns for Flutter with Riverpod state management. Use when building or reviewing Flutter apps with layered architecture (Domain, Data, Application, Presentation).
Full skill instructions
This skill provides architectural patterns and rules for building Flutter applications using Clean Architecture with Riverpod for state management. Follow these patterns to maintain clear layer boundaries, testability, and scalability.
┌─────────────────────────────────────────┐
│ Presentation Layer │ Flutter UI, Widgets, Routing
├─────────────────────────────────────────┤
│ Application Layer │ Riverpod Providers, State Management
├─────────────────────────────────────────┤
│ Data Layer │ Repositories, External APIs
├─────────────────────────────────────────┤
│ Domain Layer │ Entities, Value Objects, Business Rules
└─────────────────────────────────────────┘
| Layer | Can Depend On | Cannot Depend On |
|---|---|---|
| Domain | Nothing (pure Dart) | Flutter, Riverpod, Firebase, any SDK |
| Data | Domain | Flutter, Riverpod, Presentation |
| Application | Domain, Data | Flutter UI classes |
| Presentation | Application, Domain | Data (direct access) |
| Layer | Primary Purpose | Key Technology |
|---|---|---|
| Domain | Business entities, Value Objects | Freezed, pure Dart |
| Data | Repository implementations, API calls | Firebase, HTTP clients |
| Application | State management, Provider definitions | Riverpod, AsyncNotifier |
| Presentation | UI components, routing | ConsumerWidget, go_router |
references/domain-layer.md - Freezed entities, Value Objects, immutable datareferences/data-layer.md - Repository pattern, dependency injectionreferences/application-layer.md - Riverpod providers, AsyncNotifier patternreferences/presentation-layer.md - ConsumerWidget, type-safe routingreferences/ui-patterns.md - Widget composition, anti-patternslib/
├── app/
│ ├── route/ # go_router configuration
│ └── providers/ # App-wide providers
├── features/
│ └── {feature}/
│ ├── domain/ # Entities, Value Objects
│ ├── data/ # Repositories
│ ├── application/ # Providers, Notifiers
│ └── presentation/# Screens, Widgets
└── shared/
├── domain/ # Shared entities
├── data/ # Shared repositories
└── widgets/ # Shared UI components
references/domain-layer.mdreferences/data-layer.mdreferences/application-layer.mdreferences/presentation-layer.mdreferences/ui-patterns.md# Verify Domain layer purity
grep -r "package:flutter" lib/features/*/domain/
grep -r "riverpod" lib/features/*/domain/
# Verify Data layer isolation
grep -r "package:flutter" lib/features/*/data/
grep -r "riverpod" lib/features/*/data/
# Verify Presentation doesn't access Data directly
grep -r "features/.*/data/.*_repository" lib/features/*/presentation/
All commands should return empty results if architecture is properly maintained.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience