workflow-feature-development

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Feature Development Workflow

功能开发工作流

Step-by-step process for developing features properly.
正确开发功能的分步流程。

Phase 1: Design

第一阶段:设计

Agents:
system-architect
  • Design feature architecture
  • Identify components and boundaries
  • Define API contracts
  • Document data flow
Output: Architecture diagram, component list, API contracts
Agents:
system-architect
  • 设计功能架构
  • 确定组件与边界
  • 定义API契约
  • 记录数据流
输出: 架构图、组件列表、API契约

Phase 2: Planning

第二阶段:规划

Agents:
requirements-analyst
  • Break down into implementable tasks
  • Identify dependencies
  • Estimate timeline
  • Define acceptance criteria
Output: Task breakdown, dependency graph, timeline
Agents:
requirements-analyst
  • 拆解为可执行任务
  • 识别依赖关系
  • 预估时间线
  • 定义验收标准
输出: 任务拆解、依赖关系图、时间线

Phase 3: Implementation

第三阶段:实现

  • Implement feature following architecture
  • Work in small, testable increments
  • Commit frequently with clear messages
  • 遵循架构实现功能
  • 以可测试的小增量进行开发
  • 频繁提交并附带清晰的提交信息

Phase 4: Review

第四阶段:评审

Agents:
code-reviewer
,
security-auditor
  • Code review for quality and standards
  • Security review for vulnerabilities
  • Focus: auth, input validation, data access
Blocking: Must pass before proceeding
Agents:
code-reviewer
,
security-auditor
  • 针对代码质量与标准进行评审
  • 针对漏洞进行安全评审
  • 重点:认证、输入验证、数据访问
阻塞项: 必须通过后才能继续

Phase 5: Testing

第五阶段:测试

Agents:
test-automator
  • Unit tests (80% coverage target)
  • Integration tests
  • E2E tests for critical paths
Agents:
test-automator
  • 单元测试(目标覆盖率80%)
  • 集成测试
  • 关键路径的端到端测试

Phase 6: Performance

第六阶段:性能

Agents:
performance-engineer
Validate against thresholds:
  • Response time: <200ms
  • Memory usage: <100MB
  • Bundle size: <500KB
Agents:
performance-engineer
验证是否符合阈值:
  • 响应时间:<200ms
  • 内存占用:<100MB
  • 包大小:<500KB

Phase 7: Documentation

第七阶段:文档

Agents:
technical-writer
  • API documentation
  • User guide updates
  • Changelog entry
Agents:
technical-writer
  • API文档
  • 用户指南更新
  • 更新变更日志条目

Phase 8: Deployment Prep

第八阶段:部署准备

Agents:
deployment-engineer
Checklist:
  • Version bump
  • Changelog updated
  • Migration scripts ready
  • Rollback plan documented
Agents:
deployment-engineer
检查清单:
  • 版本号升级
  • 变更日志已更新
  • 迁移脚本已准备就绪
  • 回滚计划已记录

Success Criteria

成功标准

  • All tests pass
  • Security scan clean
  • Performance within limits
  • Documentation complete
  • 所有测试通过
  • 安全扫描无问题
  • 性能在限制范围内
  • 文档完整

Rollback Plan

回滚计划

  1. Revert database migrations
  2. Restore previous version
  3. Notify stakeholders
  1. 回滚数据库迁移
  2. 恢复上一版本
  3. 通知相关利益相关方