一键导入
agents-create-cubit
Scaffold or add a feature Cubit with Freezed state, tests, and repo-standard placement under presentation/cubit/.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold or add a feature Cubit with Freezed state, tests, and repo-standard placement under presentation/cubit/.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Canonical rules — feature layers, domain purity, cubit vs widget roles, DI entrypoints, Freezed. Part of agents-canonical-rules split.
Figma design-to-code for this repo (figma-sync assets, Flutter adaptation, MCP).
Dependency direction and feature composition. Use for shared package/app-shell changes, cross-feature deps, auth/theme contracts.
External references and key file paths for this repo. Use when locating theme, DI, lifecycle, sync, HTTP, or Supabase code.
Flutter BLoC app stack snapshot and lib/ layout. Use at task start or when adding features, routes, or shared code.
Request-id, in-flight coalesce, stream emit safety, offline don't-overwrite. Use for async repos/cubits and remote→local merge.
| name | agents-create-cubit |
| description | Scaffold or add a feature Cubit with Freezed state, tests, and repo-standard placement under presentation/cubit/. |
Use when adding a new Cubit to an existing feature or during feature delivery.
Read in order:
docs/bloc/cubit_file_template.mddocs/bloc_standards.mddocs/review/bloc_checklist.mdRules:
Cubit; do not add Bloc unless event-queue complexity is documented.apps/mobile/lib/features/<feature>/presentation/cubit/ (singular).apps/mobile/lib/app/composition/ with existing idempotent helpers.Proof: flutter test test/features/<feature>/presentation/ + ./tool/analyze.sh.