健康
A read-only agent that checks API and Auth errors and Postgres connection pressure once per hour.
它在看什么 #
🌐 What it watches
- 过去一小时 API 和认证服务器的错误率,与前一小时相比
- 当前 Postgres 连接压力
它在项目范围的 Supabase MCP 上使用 query_logs 和只读的 execute_sql。
🌐 It uses query_logs and read-only execute_sql on project-scoped Supabase MCP.
当它看时 #
🌐 When it watches
Once per hour
Run it on demand after a deployment, or whenever you need a health check outside that interval.
它会输出什么 #
🌐 What it will output
此提示报告受影响服务的新问题或已更改的问题、测量的错误率或连接使用情况,以及下一步调查步骤。请参阅 什么会触发健康报告。
🌐 This prompt reports new or changed problems with the affected service, measured error rate or connection usage, and a next investigation step. See what triggers a health 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 Health prompt once per hour.
- Connect the Supabase MCP server with
project_refandread_only=true. - Open Claude routines or run
/schedulein Claude Code. - Name it Health checks. Paste the prompt. Set the schedule to once per hour.