讨论

Cursor 的发布前安全与验证审计提示

来自 Wikiprompt,自由的提示词百科全书

Wasim
贡献者WasimX来源

2026年5月7日

Cursor 的发布前安全与验证审计提示 一个 Cursor 提示,在发布前审计每条涉及用户数据的 API 路由,检查身份验证、访问控制和输入验证。

提示词内容收藏

此提示词为英文,适用于所有 AI 模型。

Before you ship any API that touches user data, run this in Cursor: "Find every route that reads or writes user data, payments, or PII. For each, list: 1) is there auth? 2) does it check the user can access this resource? 3) are inputs validated with a schema? Save to api_audit.md" Then: Open api...

登录以查看完整提示词

登录以继续

用法

此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。

为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。

参考资料

分类:coding| twitter| cursor-ai| code-audit

讨论