About flutter-code-gen
A coding skill for Dart projects that documents when and how to generate Mappable classes, JSON serialization, and other generated code. It specifies the build_runner command to use after adding or changing Mappable classes.
Key features
- 01Guidance for generating Mappable classes
- 02JSON serialization guidance
- 03Build runner command for generation
Use cases
- 01Generating code after adding Mappable classes
- 02Regenerating code after changing Mappable classes
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dhruvanbhalara/ skills --skill flutter-code-genAfter installing, type/flutter-code-genin Claude Code to confirm it loaded.
Details
From the project READMECode Generation Guidelines
- Generate code for:
- Mappable classes
- JSON serialization
- Other generated code
- Use this command for code generation:
dart run build_runner build --delete-conflicting-outputs - Run code generation after:
- Adding new Mappable classes
- Modifying existing Mappable classes
Comments
Markdown supported