← ClaudeAtlas

setup-projectlisted

Check all prerequisites needed to run this Flutter project locally. Verifies Flutter SDK, Dart, dependencies, generated files, git hooks, available run targets, and static analysis. Auto-fixes missing dependencies and generated files. For platform tools (Android Studio, Xcode), shows flutter doctor output only — no install or configuration commands. Invoke with $setup-project or ask about project setup.
abhinav503/flutter-agentic · ★ 6 · AI & Automation · score 78
Install: claude install-skill abhinav503/flutter-agentic
Check every prerequisite needed to run this Flutter project locally, then show the user a checklist with the status of each item. ## What to check Run these checks using terminal/shell tools. Never assume — always verify the actual state. ### 1. Flutter SDK - Run `flutter --version` — capture the version string - Check that the Flutter version meets the `environment.sdk` constraint in `pubspec.yaml` - If Flutter is not installed or the wrong version: ❌ — tell the user to install Flutter from https://docs.flutter.dev/get-started/install ### 2. Dart SDK - Confirm Dart version from `dart --version` - Cross-check against `environment.sdk` in `pubspec.yaml` ### 3. Dependencies - Check if `pubspec.lock` exists - If missing: **automatically run `flutter pub get`** and report it as fixed, not as an error - Show ✅ after it completes successfully, ❌ if it fails ### 4. Code generation - Scan `lib/` for `part '*.freezed.dart'` and `part '*.g.dart'` declarations whose target files don't exist on disk - If any are missing: **automatically run `dart run build_runner build --delete-conflicting-outputs`** and report it as fixed - Show ✅ after it completes successfully, ❌ if it fails - Do not ask the user — just run it and report the outcome ### 5. Git hooks - Check if `git config core.hooksPath` is set to `.githooks` - Check if `.githooks/pre-commit` is executable (`-x` permission) ### 6. Available run targets - Run `flutter devices` — list all currently visible targets - Report each