建筑师模式 prompt 笔记(一)

大空神
09-28

我经常重复强调一件事:

一个真正的作者分享,创造而不是割韭菜。

如果你觉得看到一篇文章觉得自己很无知,那么非常好,你可以进步,这是最好的事,因为99%的人不喜欢不觉得不习惯自己无知。

我每天都在和无知的自己作战。

每天问问自己一个问题,关注我,是你让自己变得像一个韭菜了,还是你开始觉得其他人是韭菜了?

#######以下正文#########

更多内容移步:blog.ztrader.ai

以下为部分我常用的指令集。

如果会使用他们这将是你巨大的财富。

相同的类似prompt 思路也可以应用到其他copilot

GPT-Codex 指令集(扩展版)① 代码搜索 / 导航常见需求:快速找到函数、变量、依赖、调用链。 • “Locate the definition of TradeEngine.run.” • “Find all files that import Zchart.” • “Show me where getMarketData is called.” • “List all exports in utils/index.ts.” • “Search for MarkingTheClose strategy implementation.”⸻② 新功能开发常见需求:你只要写“需求说明”,Codex 写 patch。 • “Add a new API /api/health that returns {status: 'ok'}.” • “Implement a MeanReversionStrategy in /strategies/meanReversion.ts with params: window=20, threshold=2σ.” • “Add a dark mode toggle to the top navigation bar.” • “Create a CLI command ztrader backtest that runs strategy simulation.”⸻③ 测试驱动常见需求:你不用懂测试框架,只描述场景。 • “Write Jest tests for auth/login covering success, wrong password, and empty email.” • “Add pytest cases for calculateSharpeRatio with random returns input.” • “Generate integration tests for /api/orders GET/POST endpoints.” • “Ensure TradeEngine throws an error if no strategy is provided.”

更多内容移步blog.ztrader.ai解锁。

免责声明:上述内容仅代表发帖人个人观点,不构成本平台的任何投资建议。

精彩评论

我们需要你的真知灼见来填补这片空白
发表看法