AGENT SKILL
flutter-feature-contract-scaffold
暂无简介
适用职业律师与法务
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
flutter-feature-contract-scaffold
Purpose
Create the minimal domain contract files for a Flutter feature, such as entities and repository interfaces.
Use when
- The feature folder exists and the next step is domain contracts
- You need repository and entity definitions before implementation
- Another skill will handle the data or presentation layers
Do NOT use when
- The task is only to create folders
- You need state, routing, or platform configuration in the same pass
- The domain model already exists unchanged
Inputs required
- Feature name
- Entity names
- Repository interface names
Constraints
- Create domain-only files
- Keep contracts independent of SDKs and UI
- Do not add data-layer implementation here
Step-by-step workflow
- Define the core entity type.
- Define repository interfaces.
- Define any domain use case names required by the feature.
- Write minimal signatures only.
- Return the created file list.
Output contract
- Entity file path
- Repository interface path
- Optional use case file paths
Validation checklist
- Domain files import no Flutter SDKs
- Interfaces are minimal and typed
- No data-source implementation is included
- File names match the feature vocabulary
Related skills
flutter-feature-folder-scaffoldflutter-riverpod-state-skeletonflutter-firestore-repository
References
Real example
For a profile feature:
lib/features/profile/domain/entities/profile.dart
lib/features/profile/domain/repositories/profile_repository.dart
Real file output sample
lib/features/profile/domain/entities/profile.dart
lib/features/profile/domain/repositories/profile_repository.dart
04 同仓库更多 Skills
toolkit-i18n-operator
Use the toolkit-i18n CLI for repeated Flutter localization workflows with compact outputs, CSV validation, key coverage reporting, generated JSON exports, and safe non-mutating behavior.
★ 0
toolkit-design-operator
Use the toolkit-design CLI for repeated repository workflows.
★ 0
toolkit-ci-operator
Use the toolkit-ci CLI for repeated repository workflows.
★ 0
toolkit-arch-operator
Use the toolkit-arch CLI for repeated repository workflows, including Flutter i18n usage scans, layer checks, and localization coverage.
★ 0
web-testing
暂无简介
★ 0
web-state
暂无简介
★ 0