Ask HN:你向 LLM 提过的最有价值的问题是什么?

1作者: baalimago9 个月前
我正在进行重构后 Terraform 状态的迁移。这是一个非常繁琐的问题(正如你们中的一些人可能知道的那样)。大约需要销毁 50 个资源,并创建 50 个资源,如果手动迁移状态,我至少需要 1-2 个小时,如果我在某个地方搞砸了,不得不重做,时间还会更长。<p>所以,为了避免这种情况,我创建了一个详细的提示,要求 Claude Sonnet 4 帮我完成这项任务。我给了它非常清晰的指令(大约 2 分钟的编写)+ 纯文本的 Terraform 计划。它成功地生成了我需要的所有 terraform state mv 命令,大约 1-2 分钟就完成了,我可以用 xargs 执行它们,搞定!这是一个高价值的 LLM 查询!输入 token 数量少(相对而言),输出 token 数量也少,节省了大量时间(众所周知,时间就是金钱)。<p>请分享你的高价值 LLM 查询!
查看原文
I&#x27;m moving some terraform state after a refactor. A very tedious problem (as some of you may know). About 50 resources to be destroyed, and 50 to be created, it would take me at least 1-2 hours to manually move the state, more if I mess up somewhere along the way and have to redo it.<p>So, to dodge this, I created a detailed prompt asking claude sonnet 4 to do this for me. I gave it very clear instructions (~2 min writeup) + the plaintext terraform plan. It successfully generated all the terraform state mv commands I needed in about 1-2 minutes, which I could xargs and boom, done! High value LLM query! Low amount of input tokens (relatively speaking), low amount of output tokens, saving magnitudes of time (which, as we all know, is money).<p>Please share your high-value LLM queries!