先证明再删除死代码

审计未使用的遗留代码和臃肿测试。删除前要证明已经失效,真问题要修,不能靠删测试掩盖。

编程Agent/工作流ChatGPT · CursorEnglish

原始来源 · Xhttps://x.com/emanueledpt/status/2111457244311347691

提示词原文
Run a deep test audit to find unused legacy code, using subagents where helpful.
Prove code and tests are obsolete before removing them; fix genuine bugs instead of hiding failures.
Preserve meaningful coverage, run relevant checks, and report changes and remaining blockers.
许可
作者在公开帖中供复制。见 sourceUrl。
备注
正文为帖中引号内的可复制提示词,与公开长文一致。配图和引言未收录。

相近

相近提示词