[Skill idea] flutter-scaffold-mvvm-feature — generate a complete MVVM feature in one shot
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Lĩnh vực
- developer-experience, mobile-dev, tooling
Hướng nghiên cứu
Bắt đầu bằng việc xem xét skill hiện có flutter-apply-architecture-best-practices và cách các skill được tổ chức trong repository này. Xác định luồng sinh dựa trên các đầu vào và đầu ra được liệt kê, sau đó xác minh rằng một feature được sinh ra luôn bao gồm Page, ViewModel, Status, Effect tùy chọn, route export, DI registration và ViewModel unit-test stub một cách nhất quán.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Dart
- Star
- 3k
- Fork
- 180
- Merge trung bình
- 5 ngày 29 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flutter/agent-plugins
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
flutter/agent-plugins#239 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
flutter/agent-plugins#233 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Linter
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
flutter/agent-plugins#165 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Documentation P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
flutter/agent-plugins#100 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Linter P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
flutter/agent-plugins#92 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của flutter/agent-plugins
Issue tương tự
-
area-clientside-dartpad
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: 一个小问题反馈,交互按钮的错误与重复Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
firebase/flutterfire#18726 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug claude
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
linagora/tmail-flutter#4878 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày