← 返回案例库
CUSTOMER STORY · 多模型统一接入与成本控制

Claude Code 迁移密码重置流程:比手写还慢一点

Migrate a password reset flow to modern libraries

Tools · 使用工具Claude Code
Source · 来源原作者 · Hacker News
Zaowuyun · 可参考能力Token Hub + 私有化部署
01

谁在用

Who

一位资深 Web 开发者。

02

遇到什么问题

Challenge

要把网站密码重置流程从遗留库和架构迁移到现代库。

03

怎么用 AI 解决

Solution
  1. 用工作 API 令牌,先在 Claude Code 中制定计划。
  2. 再让最新的 Opus 执行迁移,他逐一审阅每个提议。
  3. 最后花大量时间清理输出。
04

结果如何

Results据原作者自述
  • 小范围代码尚可,但架构上不对,还会偏离去做无关改动
  • 约半个工作日花掉约两个月 Pro 订阅的额度,比手写稍慢;审阅和清理开销抵消了生成速度

以上内容均由原作者自行报告,未经独立核实,也不代表造物云产品的效果。

05

提示词

Prompt

参考提示词(由 agentusecases.ai 整理为模板,非原帖原文)

中文

在这个仓库中,把【路径或模块】的密码重置流程从【遗留库或做法】迁移到【现代库】。先写简短计划并列出要改的文件,等我批准。改动仅限重置流程,改完运行现有测试。

ENGLISH

In this repo, migrate the password reset flow in [path or module] from [legacy library or approach] to [modern library]. First write a short plan and list the files you intend to touch, then wait for my approval. Keep changes limited to the reset flow, run the existing tests after each step, and stop when the tests pass and you have summarized the diff. Pause and ask before deleting any files or changing unrelated code.