Init
Template for Flutter mobile applications.
npx -y skills add launch52-ai/flutter-template --skill initAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Initialize a new Flutter project. Gathers requirements, runs flutter create, adds dependencies, configures environment, and sets up main.dart. Run this first when creating a new app.
SKILL.md
5.6 KB, as published. Nobody here has run it
Init - Project Initialization
Initialize a new Flutter project with proper architecture and dependencies.
When to Use This Skill
- Starting a new Flutter project from scratch
- Setting up project structure before adding features
- Run this FIRST before any other skills
Workflow
Phase 1: Gather Requirements
Ask the user these questions using AskUserQuestion tool:
Required Information
- App Name (display name, e.g., "My App")
- Project Name (snake_case, e.g., "my_app")
- Bundle ID (e.g., "com.company.myapp")
- Organization (e.g., "com.company")
- Description (short app description)
Backend Options
- Use Supabase? (yes/no, default: yes)
- API Base URL (optional, for custom REST API)
Authentication Methods
- Which auth methods? (multi-select)
- Social Login (Google + Apple)
- Phone OTP
- Email/Password
Design
- Primary Color (hex, default: #2D9D78)
- Theme Mode (light/dark/both, default: both)
Phase 2: Create Project
# Verify Flutter is ready
flutter doctor
# Create project in current directory
flutter create --org {organization} --project-name {project_name} .
Phase 3: Add Dependencies
Update pubspec.yaml with dependencies from templates/pubspec_additions.yaml.
Conditional dependencies:
supabase_flutter- Only if Supabase = yesdio- Only if API Base URL providedgoogle_sign_in,sign_in_with_apple,crypto- Only if Social Login selected
flutter pub get
Phase 4: Configure Environment
- Create
.env.examplefrom templates/env_example.txt - Create
.env(copy of .env.example) - Add to
.gitignorefrom templates/gitignore_additions.txt
Phase 5: Setup Analysis Options
Replace analysis_options.yaml with templates/analysis_options.yaml.
Phase 6: Modify main.dart
Update the generated lib/main.dart:
- Add imports
- Add
WidgetsFlutterBinding.ensureInitialized() - Add
await dotenv.load() - Add Supabase initialization (if selected)
- Wrap app in
ProviderScope
See templates/main_dart.dart for the template.
Phase 7: Create build.yaml
Create build.yaml for slang localization from templates/build.yaml.
Phase 8: Verify Setup
flutter pub get
flutter analyze
Output
After running /init, the project will have:
project/
├── lib/
│ └── main.dart # Modified with ProviderScope, Supabase
├── pubspec.yaml # With all dependencies
├── analysis_options.yaml # Configured linting rules
├── build.yaml # Slang configuration
├── .env.example # Environment template
├── .env # Local environment (gitignored)
└── .gitignore # Updated with .env, etc.
Next Steps
After /init, run these skills in order:
Core Setup (Required)
/core- Generate theme, router, providers, services, error handling
Authentication (Based on your selections)
/auth- Generate auth feature scaffold/social-login- (If you selected Social Login)/phone-auth- (If you selected Phone OTP)
Features
/feature-init dashboard- Initialize dashboard feature/feature-init settings- Initialize settings feature
Polish
/i18n- Localize all strings/testing- Write tests/design- Review UI/UX/a11y- Accessibility audit
Release (When ready)
/release- App store preparation/ci-cd- Automated builds (optional)
Stored Configuration
The skill stores gathered information for other skills to use:
// Values available to other skills:
appName: String // "My App"
projectName: String // "my_app"
bundleId: String // "com.company.myapp"
organization: String // "com.company"
description: String // "App description"
useSupabase: bool // true/false
apiBaseUrl: String? // "https://api.example.com" or null
authMethods: List // ["social", "phone", "email"]
primaryColor: String // "#2D9D78"
themeMode: String // "both" | "light" | "dark"
Troubleshooting
Gradle Build Fails
cd android && ./gradlew clean && ./gradlew --stop && cd ..
flutter clean && flutter pub get
CocoaPods Issues
cd ios && rm -rf Pods Podfile.lock && pod install --repo-update && cd ..
Flutter Doctor Issues
flutter doctor --android-licenses
flutter upgrade
Guides
| Guide | Use For |
|---|---|
| templates/ | pubspec additions, main.dart, env, build.yaml templates |
Related Skills
/core- Run immediately after init to create core infrastructure/auth- Add authentication after core setup/feature-init- Initialize feature scaffolds after auth
Checklist
After running /init:
-
flutter createcompleted successfully - Dependencies added to pubspec.yaml
-
flutter pub getsucceeded -
.env.exampleand.envcreated -
.gitignoreupdated -
analysis_options.yamlconfigured -
build.yamlcreated -
main.dartmodified with ProviderScope -
flutter analyzepasses