资源
A read-only agent that tracks resource and request growth and estimates when a confirmed limit could be reached.
它在看什么 #
🌐 What it watches
- 数据库和表的大小,包括索引
- 按角色和状态的当前连接数
- 过去两个完整 UTC 日的 API 请求增长情况
- 当有足够的历史数据时,资源会向一个确定的上限增长
它在项目范围的 Supabase MCP 上使用只读 execute_sql 和 query_logs。请求次数不会计算入账单总额。
🌐 It uses read-only execute_sql and query_logs on project-scoped Supabase MCP. Request counts do not establish billing totals.
当它看时 #
🌐 When it watches
Once each morning
Run it on demand after an unexpected traffic change.
它会输出什么 #
🌐 What it will output
这个提示会报告新的或变化的请求增长信号以及资源限制风险。当保存的测量支持在14天内进行预测时,它会包含预计日期、计算方法和扩展指南。如果缺少历史数据或匹配的限制,它会说明所需内容,而不会随意编造日期。请参阅 触发资源报告的条件。
🌐 This prompt reports new or changed request-growth signals and resource-limit risks. When saved measurements support a forecast within 14 days, it includes the estimated date, calculation, and scaling guide. If history or a matching limit is missing, it explains what it needs instead of inventing a date. See what triggers a resource 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. Configure your harness to save measurements and alert state, then reload them on each run. Forecasts need at least seven daily measurements and a confirmed limit for the same resource and units.
Create a Claude routine that runs the Resources prompt once each morning.
- Connect the Supabase MCP server with
project_refandread_only=true. - Open Claude routines or run
/schedulein Claude Code. - Name it Resources checks. Paste the prompt. Set the schedule to once each morning.