一键导入
agents-feature-delivery
Cursor/Codex feature delivery contract for folder shape, use cases, DTO mapping, testing matrix, DI/routes, and validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Cursor/Codex feature delivery contract for folder shape, use cases, DTO mapping, testing matrix, DI/routes, and validation.
用 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.
Scaffold or add a feature Cubit with Freezed state, tests, and repo-standard placement under presentation/cubit/.
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.
| name | agents-feature-delivery |
| description | Cursor/Codex feature delivery contract for folder shape, use cases, DTO mapping, testing matrix, DI/routes, and validation. |
Use before adding or changing apps/mobile/lib/features/**.
Read:
docs/ai/ai_failure_risks.md (Pre-Flight + applicable risk rows)agents-common-pitfallsdocs/feature_implementation_guide.mddocs/architecture/feature_structure_contract.mddocs/architecture/reference_features.mddocs/architecture/use_case_dto_policy.mddocs/testing/matrix_required_by_change.mddocs/bloc_standards.md when Cubit/BLoC touchedDo:
bash tool/scaffold_feature_contract.sh --name <feature>; use --apply
only after the name is final.Presentation -> Domain <- Data (CA skeleton). MVVM only in
presentation — View = pages//widgets/; ViewModel = presentation/cubit/.
Domain = entity + repository interface (+ use cases when policy requires).
Data = repository impl + datasource + DTO.docs/design_system.md § Reusable widgets;
mirror tests under test/features/<feature>/presentation/widgets/.docs/design_system.md § Cross-platform form factors;
flutter-cross-platform-modern.Proof:
bash tool/check_clean_architecture_imports.shbash tool/check_feature_folder_contract.sh (--strict for new features)bash tool/check_feature_brief_linked.shflutter test <paths>./tool/analyze.shdocs/engineering/validation_routing_fast_vs_full.md.