mcpField
F
flutter-code-gen

flutter-code-gen

github.com/dhruvanbhalaraDevelopment30253 installsUpdated 8w ago
Repository

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

  1. 01Guidance for generating Mappable classes
  2. 02JSON serialization guidance
  3. 03Build runner command for generation

Use cases

  1. 01Generating code after adding Mappable classes
  2. 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-gen

After installing, type/flutter-code-genin Claude Code to confirm it loaded.

Details

From the project README

Code 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