安全
A read-only agent that reviews Security Advisor findings and authentication and authorization failures each day.
它在看什么 #
🌐 What it watches
- 安全顾问在警告和错误级别的发现
- API 和 Auth 的认证和授权失败率,与过去两个完整的 UTC 天比较
- 顾问发现的 RLS 和权限问题
它在项目范围内对只读的 Supabase MCP 使用 get_advisors 和 query_logs。
🌐 It uses get_advisors and query_logs on project-scoped, read-only Supabase MCP.
当它看时 #
🌐 When it watches
Once per day
Run it on demand after you change Auth, RLS, or other access controls.
它会输出什么 #
🌐 What it will output
此提示会报告新的或已更改的顾问发现和访问失败激增情况,并说明受影响的对象或服务以及下一步的调查步骤。激增是一种审查信号,而不是攻击的证据。请参阅 什么会触发安全报告。
🌐 This prompt reports new or changed advisor findings and access-failure spikes, with the affected object or service and a next investigation step. A spike is a review signal, not proof of an attack. See what triggers a security report.
如果检查无法运行,代理会告诉你缺少什么。清除的检查和未更改的结果不会发出任何提示。
🌐 If a check cannot run, the agent tells you what is missing. Clear checks and unchanged findings stay quiet.
当代理发现问题时,它会在测试框架中报告。把报告发送到你已经处理工作的地方。使用你的测试框架已有的连接。例如,Codex 可以创建一个 Linear 问题。
🌐 When the agent finds an issue, it reports in the harness. Send that report wherever you already triage work. Use the connections your harness already has. For example, Codex can open a Linear issue.
保持 Supabase 项目只读。提交工单只是工作流程中的操作,并不是对项目的修改。
🌐 Keep the Supabase project read-only. Filing a ticket is work in the harness, not a change to the project.
如果你想让每次计划运行都使用那个路由,把它加到提示里就行。
🌐 If you want that routing on every scheduled run, add it to the prompt.
设置代理 #
🌐 Set up the agent
允许代理阅读提示中链接的文档。在每次运行之间保存它的警报状态,这样它就可以避免重复报告。
🌐 Allow the agent to read the documentation linked in its prompt. Save its alert state between runs so it can avoid repeat reports.
Create a Claude routine that runs the Security prompt once per day.
- Connect the Supabase MCP server with
project_refandread_only=true. - Open Claude routines or run
/schedulein Claude Code. - Name it Security checks. Paste the prompt. Set the schedule to once per day.