Comprehensive guidelines for reviewing Flutter code in the YouDown project, focusing on Bloc, performance, and best practices.
Use this skill when asked to review code or before finalizing significant changes. Focus on the following areas to ensure high quality, stability, and maintainability.
@immutable or using Freezed).BlocBuilder for rebuilding UI part.BlocListener for side effects (navigation, toasts, dialogs).build() methods.fromJson/toJson) handles nulls and data migration gracefully.Controllers (VideoPlayer, Chewie, TextEditing, Animation), Timers, and Streams are properly disposed in dispose().video_player and just_audio instances are stopped/paused before disposal to prevent background audio leaks.build(). Use late final or initState where appropriate.const for widgets and values wherever possible to optimize rebuilds.Dio requests must be wrapped in try/catch blocks handling DioException.manageExternalStorage, photos, etc.) check the Android SDK version correctly (SDK 30+ vs older).!) unless absolutely certain. Use ?. and ?? defaults.ColorScheme, proper typography).Theme.of(context).colorScheme).easy_localization keys (e.g., "key".tr()). No hardcoded strings.FlutterForegroundTask.GoRouter for all navigation. Avoid Navigator.push unless working with dialogs/overlays that require it.path_provider and validate paths before writing.npx skills add tsiresymila1/Code Review (Flutter/Dart)下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer