بنقرة واحدة
code-hygiene
Applies Dart fixes and formats Dart code according to standard guidelines.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Applies Dart fixes and formats Dart code according to standard guidelines.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | code-hygiene |
| description | Applies Dart fixes and formats Dart code according to standard guidelines. |
When the user asks to clean up the codebase, fix linting issues, or format code, perform the following actions using the run_in_terminal tool:
To resolve common linting issues (like removing unused imports, adding const modifiers):
dart fix --apply
To format all Dart files recursively:
dart format .
Report the results of both operations back to the user.
Sweeps the `assets/` folder and registers them in `pubspec.yaml`, preventing runtime "Asset not found" crashes.
Executes `dart run build_runner build -d` to generate code for packages like Freezed, JSON Serializable, and Riverpod.
Generates a standard Domain-Driven Design (DDD) feature-first directory structure inside the `lib` folder.
Configures and runs the `flutter_launcher_icons` package to generate native app icons for iOS and Android.
Safely modifies `AndroidManifest.xml` and `Info.plist` to add native permissions (e.g., Camera, Location, Storage).
Cleans up the Flutter and iOS environments to recover from mysterious build errors and cached states.