[Skill idea] flutter-scaffold-mvvm-feature — generate a complete MVVM feature in one shot
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- dart, flutter
Línea de trabajo
Comienza revisando el skill existente flutter-apply-architecture-best-practices y cómo están estructurados los skills en este repositorio. Define el flujo de generación en torno a las entradas y salidas indicadas y, después, verifica que una feature generada incluya de forma consistente Page, ViewModel, Status, el Effect opcional, la exportación de la ruta, el registro de DI y un stub de prueba unitaria de ViewModel.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Environment
- Language model: Claude Opus 4.7
- Agent harness: Claude Code
- Project type: Production Flutter app (logistics / driver-facing), strict MVVM
The current flutter-apply-architecture-best-practices skill is educational — it teaches the layered MVVM pattern. What's missing is a generative counterpart that scaffolds a full feature end-to-end: Page + ViewModel + Status + (optional) Effect + Route + DI registration + unit test, all wired and consistent.
Today, generating a new feature in a strict-MVVM app is a 10–15 file edit dance that's easy to get inconsistent (route variant wrong, DI not registered, ViewModel imports flutter/material, test missing mocks). A single skill that drives this correctly removes a recurring source of drift.
Proposed skill
Name: flutter-scaffold-mvvm-feature
Description (draft):
Scaffold a complete MVVM feature (Page, ViewModel, Status, optional Effect, Route, DI registration, and unit test) wired consistently across layers. Use when adding a new screen, sheet, or dialog to an app that already follows the MVVM pattern, to guarantee correct layer separation and DI on first generation.
Inputs the skill should ask upfront (in a single batch):
- Feature name (snake_case)
- Page type (full-screen / bottom-sheet / dialog)
- Needs Effects? (snackbars, async navigation events)
- Needs offline/connectivity awareness?
- Domain model the page receives (or none)
- Initial Status fields
Outputs:
lib/features/{name}/{name}_page.dartlib/features/{name}/{name}_view_model.dartlib/features/{name}/{name}_status.dartlib/features/{name}/{name}_effect.dart(only if Effects needed)- Route file + export
- DI factory registration
- Unit test stub for the ViewModel
Why this is hard for a single-pass skill
Layer-correct generation benefits from parallel sub-agents (one per layer: data/VM, UI, tests) so the skill can produce 5–7 files coherently in one turn. We've implemented this pattern internally and it works well — happy to share the orchestration approach if useful.
Real-world reference
We run an internal version of this in production (Claude Code, ~9k LOC monthly throughput). Generation success rate (no follow-up edit needed) is materially higher than per-file generation.
Roadmap fit
This complements flutter-apply-architecture-best-practices (P1, already published) — that one teaches the pattern, this one applies it.
- Lenguaje dominante
- Dart
- Estrellas
- 3k
- Forks
- 180
- Merge medio
- 5 d 29 min
- PR fusionados (30 d)
- 6
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de flutter/agent-plugins
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
flutter/agent-plugins#239 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
flutter/agent-plugins#233 ·
-
Linter
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
flutter/agent-plugins#165 ·
-
Documentation P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
flutter/agent-plugins#100 ·
-
Linter P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
flutter/agent-plugins#92 ·
Todos los issues de flutter/agent-plugins
Issues similares
-
[Super Editor][Chat] - Floating editor scaffold does not reset panel height after closing panel Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
status: needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
a2ui-project/a2ui#2763 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
AOSSIE-Org/Ell-ena#332 ·
-
ui/ux
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
HemantKArya/BloomeeTunes#489 ·