跳到正文
Philipp Schmid· @_philschmid · X·AI 评分41

Gemini 4 Neon 优化循环提示词模板

AI 导读

这是我用来启动 Gemini 4 Neon 优化循环的提示词模板: “为 [仓库或系统] 优化 [目标:延迟 / 吞吐量 / 构建时间 / 打包体积 / 成本]。 在做任何更改之前运行 [确切的基准测试命令] 并记录基线。每次更改后再次运行。只保留能可测量地改善该指标、且通过 [测试命令] 且零视觉或功能回归的更改。” 你也可以在 Google @antigravity 中将其与 /goal 或 /swarm 结合使用。

正文 · 原文

Here is the prompt template I use to kick off an optimization loop with Gemini 4 Neon:

"Optimize [target: latency / throughput / build time / bundle size / cost] for [repo or system].

Run [exact benchmark command] before making changes and record the baseline. Run it again after every change. Only keep changes that measurably improve the metric and pass [test command] with zero visual or functional regressions."

You can also combine this with /goal or /swarm in Google @antigravity.

来源:Philipp Schmid · x.com