create-feature

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Create a new feature: $ARGUMENTS
创建新功能:$ARGUMENTS

Steps:

步骤:

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