一键导入
mobiai-flutter
Use when working on a Flutter or Dart project — building, testing, debugging, understanding state management and project structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when working on a Flutter or Dart project — building, testing, debugging, understanding state management and project structure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
first community fixture skill
second community fixture skill
third community fixture skill
Actualiza el binario `mobiai` a la última versión publicada en GitHub Releases. Usá esta skill cuando el banner de SessionStart muestre "MobiAI update available" o cuando el usuario pida explícitamente actualizar MobiAI.
Use when starting any conversation — establishes how to find and invoke MobiAI skills, requiring `Skill` tool invocation before ANY response including clarifying questions, git/file reads, or code exploration
test fixture
| name | mobiai-flutter |
| description | Use when working on a Flutter or Dart project — building, testing, debugging, understanding state management and project structure. |
| license | MIT |
| compatibility | ["claude-code","cursor","copilot","codex"] |
| platforms | ["flutter"] |
Community contribution welcome! Help flesh out this skill with Flutter patterns, state management approaches, and real-world workflows.
Guide for working with Flutter projects.
# Check for Flutter indicators
ls pubspec.yaml lib/ test/ 2>/dev/null
cat pubspec.yaml | head -20
flutter --version
project/
lib/
main.dart # Entry point
app.dart # App widget
features/
home/
home_screen.dart # Screen widget
home_bloc.dart # State management (BLoC example)
home_state.dart
home_event.dart
widgets/ # Feature-specific widgets
core/
models/ # Data models
services/ # API, database
utils/ # Helpers
test/
features/
home/
home_bloc_test.dart
widget_test.dart
pubspec.yaml # Dependencies
analysis_options.yaml # Lint rules
# Run in debug mode
flutter run
# Build debug APK
flutter build apk --debug
# Build release APK
flutter build apk --release
# Build iOS
flutter build ios --release
# Run analysis (lint)
flutter analyze
# Format code
dart format lib/
# BLoC
grep -r "flutter_bloc\|BlocProvider\|BlocBuilder" lib/ --include="*.dart" | head -5
# Riverpod
grep -r "flutter_riverpod\|ProviderScope\|ConsumerWidget" lib/ --include="*.dart" | head -5
# Provider
grep -r "^import.*provider" lib/ --include="*.dart" | head -5
# GetX
grep -r "get:\|GetMaterialApp\|GetxController" lib/ --include="*.dart" | head -5
# MobX
grep -r "flutter_mobx\|Observable\|@action" lib/ --include="*.dart" | head -5
// test/features/home/home_bloc_test.dart
import 'package:test/test.dart';
void main() {
group('HomeBloc', () {
late HomeBloc bloc;
setUp(() {
bloc = HomeBloc(repository: MockRepository());
});
test('initial state is HomeInitial', () {
expect(bloc.state, isA<HomeInitial>());
});
test('emits [Loading, Loaded] when data fetch succeeds', () {
expectLater(
bloc.stream,
emitsInOrder([isA<HomeLoading>(), isA<HomeLoaded>()]),
);
bloc.add(LoadHomeData());
});
});
}
testWidgets('displays loading indicator', (tester) async {
await tester.pumpWidget(
MaterialApp(home: HomeScreen()),
);
expect(find.byType(CircularProgressIndicator), findsOneWidget);
});
# All tests
flutter test
# Specific file
flutter test test/features/home/home_bloc_test.dart
# With coverage
flutter test --coverage
const constructorsR in terminal) or full restartdebugDumpApp()Want to improve this skill? Share your Flutter expertise, architecture patterns, and debugging techniques via a PR.