flutter-generate

Generate Freezed, Riverpod, and i18n code for Flutter projects with build_runner.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/titabash/gemini-hackathon-game --skill flutter-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-generate
Source: https://github.com/titabash/gemini-hackathon-game/tree/main/.claude/skills/flutter-generate
Command: npx skills add https://github.com/titabash/gemini-hackathon-game --skill flutter-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of boilerplate code for Flutter projects, reducing manual effort and ensuring consistency across models, providers, and internationalization files.

Core Features & Use Cases

  • Code Generation: Automates the creation of .g.dart and .freezed.dart files using build_runner.
  • Multi-package Support: Can generate code for individual packages or the entire monorepo using Melos.
  • Use Case: After defining new immutable data models with Freezed or new state management providers with Riverpod, use this Skill to generate the necessary supporting code.

Quick Start

Run melos run generate from the frontend directory to generate code for all packages.

Frequently Asked Questions about flutter-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Freezed models and Riverpod providers in a Flutter project?

To generate Freezed models and Riverpod providers, use build_runner to automate the creation of `.g.dart` and `.freezed.dart` files. This ensures supporting code stays up-to-date after modifying your data models or state management providers.

What's the best way to run build_runner across a Flutter monorepo?

Running build_runner across a Flutter monorepo is handled via Melos. Execute `melos run generate` from your frontend directory to automatically generate code for all packages and ensure consistency across the entire project.

Can I generate Flutter code for a single package instead of the whole monorepo?

Yes, you can generate Flutter code for individual packages rather than the entire monorepo. The tool supports targeted build_runner execution, allowing you to update specific supporting files after modifying models or providers.

Why do I need to regenerate Flutter code after modifying Freezed models?

Regenerating Flutter code after modifying Freezed models is needed to update the `.freezed.dart` files. Running build_runner ensures the boilerplate code for your immutable data classes remains synchronized with your current source definitions.

Does this code generation approach handle Flutter i18n files?

Yes, this code generation approach handles Flutter i18n files. Alongside Freezed models and Riverpod providers, it automates the creation of internationalization supporting code to reduce manual effort and maintain consistency.