Skip to content
Discussion options

You must be logged in to vote

我提供一下我们内部的最佳实践,以 Claude Code 为例,我们的目前工作流程是:澄清需求 -> 自动编码 -> 自动评审(这个环节会让 CC 自动总结当前的需求背景、关键边界等,类似 commit msg 的一条消息传入 Background)-> 自动修复,然后循环上述流程后两个环节。

我们认为核心点应该是简要的总结 + 关键的边界,其他非动态的背景上下文应该使用规则文件来管理,例如 xxx 组件是你们公司内部的独有用法。

举个例子,在一个电商应用的订单模块中,增加“新用户专享”优惠券功能。

反例:
-b
新增“新用户专享”优惠券类型

正例:
-b
新增“新用户专享”优惠券类型
CR 描述:

  • 增加“新用户专享”的优惠券类型。
  • 该优惠券有效期为 30 天。
  • 退款时退回优惠券,过期时间在原基础上增加 7 天。

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by lizhengfeng101
Comment options

You must be logged in to vote
3 replies
@lizhengfeng101
Comment options

@duringnone
Comment options

@lizhengfeng101
Comment options

Comment options

You must be logged in to vote
1 reply
@lizhengfeng101
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants