跳到主内容
@wquguru
精选88VoxAI 产品与模型

Claude Code 提示词:让 Opus 5.5 审查应用收款前 23

Claude Code tip: before your vibe-coded app takes its first payment, have Opus 5…

原文
发到 X
推荐理由

提供了结构清晰、可直接复用的 AI Agent 协作工作流,展示了如何利用大模型进行自动化代码审查的具体 Prompt 技巧。

Claude Code tip: before your vibe-coded app takes its first payment, have Opus 5.5 check 𝘁𝗵𝗲𝘀𝗲 𝟮𝟯 𝘁𝗵𝗶𝗻𝗴𝘀:

Claude Code 提示:在你的 vibe-coded(氛围编码)应用收取第一笔款项之前,让 Opus 5.5 检查以下 23 件事:

> One design doc that every color, font size and spacing follows > A real screen for every state: loading, empty, error > Private keys only on the server, with your frontend files and git history searched, and anything that ever leaked replaced > Every endpoint checks login and permissions on the server, and RLS is on in the database > Spending caps or alerts on anything billed per use: AI, SMS, email > Payment webhooks verify their signature, and the same payment sent twice only counts once > Refunds, cancellations and failed charges each run once in test mode, ending in the right status > Access revoked on time when a trial or subscription ends > When payments switch from test to live, the live keys and webhook signing secret are set up again > Money stored as integers in the smallest currency unit, like Stripe does. No floats: in JS, 0.1 + 0.2 isn't 0.3 > A user double-clicking submit creates only one order > Sales tax or VAT set up for the countries you sell to > Your terms and privacy policy match what the code actually does > Daily automatic backups (Supabase's free plan has none, so upgrade to Pro or schedule your own dump), plus one test restore into a new database > Every schema migration has its reverse SQL written and has been run both ways on a copy of production data > Lists over 1,000 rows aren't silently cut off. Supabase's API returns at most 1,000 rows by default > Times stored as timestamptz, with each user's timezone in its own column, so reminders go out in their local time > Soft delete first, with RLS hiding deleted rows too. When a user deletes their account, wipe it for real > Users can export their own data > Names with apostrophes, emoji or right-to-left text don't break any input > Images in WebP or AVIF, with anything below the fold loading as you scroll > Indexes on the fields you filter by most. With a few dozen test rows everything is fast; real data is where it slows down > Error monitoring hooked up, so you're the first to know when something breaks

> 一份设计文档,所有颜色、字体大小和间距都遵循该规范 > 每种状态都有对应的真实界面:加载中、空状态、错误状态 > 私钥仅存在于服务器端,已搜索前端文件和 git 历史,并替换了任何曾泄露的内容 > 每个端点在服务器端都检查登录状态和权限,且数据库中启用了 RLS(行级安全) > 对按使用量计费的项目(AI、短信、邮件)设置支出上限或警报 > 支付 webhook 验证其签名,且重复发送的同一笔付款只计算一次 > 退款、取消和扣款失败在测试模式下各运行一次,并确保最终状态正确 > 试用或订阅结束时及时撤销访问权限 > 当支付从测试环境切换到生产环境时,重新配置生产密钥和 webhook 签名密钥 > 货币以最小单位整数存储(如 Stripe 的做法)。不使用浮点数:在 JS 中,0.1 + 0.2 不等于 0.3 > 用户双击提交按钮只会创建一个订单 > 为销售目标国家/地区设置销售税或增值税 > 服务条款和隐私政策与代码实际行为一致 > 每日自动备份(Supabase 免费计划无此功能,因此请升级至 Pro 版或自行安排数据转储),并在新的数据库中进行一次测试恢复 > 每次模式迁移都编写反向 SQL,并在生产数据的副本上双向执行过 > 超过 1,000 行的列表不会静默截断。Supabase API 默认最多返回 1,000 行 > 时间以 timestamptz 类型存储,每用户的时区单独存于一列,以便提醒在其本地时间发出 > 先软删除,同时通过 RLS 隐藏已删除的行。当用户删除账户时,彻底清除数据 > 用户可导出自己的数据 > 包含撇号、表情符号或从右向左书写的文本的名字不会导致任何输入出错 > 图片使用 WebP 或 AVIF 格式,视口下方的内容随滚动逐步加载 > 对最常过滤的字段建立索引。仅有几十条测试数据时一切很快;真实数据才是性能瓶颈所在 > 接入错误监控,以便在出现问题时第一时间得知

Send this whole list to Claude Code and add this line at the end. It checks every item and gives you a table 👇 "Split it across 5 subagents: design and speed, security, payments, data, and after launch. Check without editing anything, and for each item note pass or fail and which file the problem is in. For anything only visible in a dashboard, mark it 'needs my confirmation' and give me the steps to look. Only test backups and restores on a test database, only test payments in test mode, and don't touch production data. Show me the table first, and don't fix anything until I confirm."

将此完整列表发送给 Claude Code,并在末尾添加以下行。它会检查每一项并为你生成一个表格 👇 “将其拆分为 5 个子代理:设计与性能、安全性、支付、数据以及上线后。在不编辑任何内容的前提下进行检查,对每一项标注通过或不通过,并注明问题所在的文件。对于仅在仪表盘中可见的项目,标记为‘需要我确认’并提供查看步骤。仅对测试数据库进行备份和恢复测试,仅在测试模式下测试支付,且不要触碰生产数据。先向我展示表格,在我确认之前不要修复任何问题。”

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件