create-feature
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreate a new feature: $ARGUMENTS
创建新功能:$ARGUMENTS
Steps:
步骤:
-
Analyze Requirements
- Break down the feature requirements
- Identify the scope (backend only, frontend only, or full-stack)
-
Identify Service Location
- Determine the appropriate microservice for backend
- Identify the Angular app/module for frontend
-
Plan Implementation
- Domain entities needed
- CQRS Commands/Queries
- API endpoints (controllers)
- Angular components and services
- DTOs and validation
-
Use Platform Patterns
- Reference patterns from CLAUDE.md
- Use templates for scaffolding:
.github/prompts/create-cqrs-command.prompt.mdcreate-cqrs-query.prompt.mdcreate-entity-event.prompt.mdcreate-angular-component.prompt.mdcreate-api-service.prompt.md
-
Wait for Approval
- Present the implementation plan
- DO NOT proceed without explicit approval
-
Create Files (After Approval) Execute in this order:
- Domain entities ()
.Domain/Entities/ - Application layer (,
.Application/UseCaseCommands/).Application/UseCaseQueries/ - Entity DTOs ()
.Application/EntityDtos/ - API controllers ()
.Api/Controllers/ - Frontend components and services
- Domain entities (
-
Verify
- Build backend:
dotnet build - Build frontend:
nx build <app-name>
- Build backend:
-
需求分析
- 拆解新功能需求
- 确定范围(仅后端、仅前端或全栈)
-
确定服务位置
- 为后端选择合适的微服务
- 确定前端对应的Angular应用/模块
-
规划实现方案
- 所需的领域实体
- CQRS命令/查询
- API端点(控制器)
- Angular组件与服务
- DTO与校验规则
-
使用平台模式
- 参考CLAUDE.md中的模式
- 使用下的脚手架模板:
.github/prompts/create-cqrs-command.prompt.mdcreate-cqrs-query.prompt.mdcreate-entity-event.prompt.mdcreate-angular-component.prompt.mdcreate-api-service.prompt.md
-
等待审批
- 提交实现方案
- 未获得明确审批前请勿继续推进
-
创建文件(审批通过后) 按以下顺序执行:
- 领域实体()
.Domain/Entities/ - 应用层(,
.Application/UseCaseCommands/).Application/UseCaseQueries/ - 实体DTO()
.Application/EntityDtos/ - API控制器()
.Api/Controllers/ - 前端组件与服务
- 领域实体(
-
验证
- 构建后端:
dotnet build - 构建前端:
nx build <app-name>
- 构建后端:
IMPORTANT Task Planning Notes
重要的任务规划注意事项
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed
- 始终将任务拆分为多个小型待办项
- 务必添加最终评审待办项,在结束时检查已完成的工作,找出需要修复或优化的内容