跳到正文
cccskills
免费在 GitHub 公开

inf-lens

Activate for any ticket that adds or changes a Supabase migration, environment variable, edge function deployment, or runtime configuration. Ensures infrastructure is live in the target QA environment before state:ready-for-qa.

中文简介正在准备中。当前显示原文说明。

集成工具VercelSupabase
查看安装方法

包含的文件(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

INF — Infrastructure Readiness Lens

Activate this lens when a ticket makes a change that must be applied to the running environment — not just to source files on disk. Infrastructure gaps are the most common reason Tester returns BLOCKED rather than PASS or FAIL. BLOCKED means testing cannot start at all, which wastes the full QA cycle.

When to Activate

Load this lens when the ticket:

  • Adds or modifies a Supabase migration (supabase/migrations/)
  • Adds or changes an environment variable consumed by the app (.env.local, Supabase project secrets, Vercel environment settings)
  • Deploys or updates a Supabase edge function (supabase/functions/)
  • Changes a Supabase storage bucket policy, RLS policy, or auth provider setting
  • Changes runtime configuration that takes effect on deploy (CORS rules, webhook endpoints, redirect URLs)

The Infrastructure Checklist

Verify each applicable surface before claiming state:ready-for-qa. Tick off only what the ticket actually touches.

Migrations

CheckWhat to verify
Applied to QA environmentMigration has been pushed to the target Supabase project, not only run locally via supabase db push --local
Correct project linkedsupabase status or the Supabase dashboard confirms the correct project is the target — not a stale local or dev link
No dependency gapThe migration's dependencies (functions, tables, or types it references) were applied in earlier migrations that are already present
Rollback path documentedIf the migration drops a column, renames a table, or deletes data, a revert migration exists or the impact is explicitly documented on the ticket

Environment variables

CheckWhat to verify
Set in target environmentThe variable is configured in Supabase project secrets (supabase secrets set) or Vercel environment settings for the QA deployment — not only in the local .env.local
Exact name matchVariable name matches exactly what the code reads: process.env.NEXT_PUBLIC_X, process.env.X, or Deno.env.get('X') — no case or prefix mismatch
Not committed to sourceThe secret value is not in any committed file, .env.local included in git, or source comment
App can read itIf the variable is new, the app has been restarted or redeployed so the running process has the value available

Edge functions

CheckWhat to verify
Deployedsupabase functions deploy <name> --project-ref <ref> has been run against the target project after the latest code change
ReachableA smoke request to the function endpoint (/functions/v1/<name>) returns an expected status — not 404 (not deployed) or 500 (deployed but broken)
Secrets availableAny secrets the function reads via Deno.env.get() are set in Supabase secrets for the target project, not just locally

Auth and platform settings

CheckWhat to verify
Redirect URLsAny new OAuth or email redirect URLs are added to the allowed list in Supabase Auth settings for the target project
CORSIf a new edge function or API endpoint is called from the browser, the origin is in the allowed CORS list

Naming the Infrastructure Surface

Before implementation, name each surface this ticket requires:

Infrastructure surfaces:
- Migration:    [filename or 'none']
- Env vars:     [VAR_NAME list or 'none']
- Edge function: [function name or 'none']
- Platform settings: [what or 'none']

Pre-Handoff Gate

Before moving the ticket to state:ready-for-qa, post the following confirmation on the GitHub issue:

INF verified:
- Migration [name]:        applied to [project/environment] ✓
- Env var [NAME]:          set in [target] ✓
- Edge function [name]:    deployed, smoke test ✓
- Platform settings:       [what was changed and confirmed] ✓

Omit lines that do not apply to this ticket, but list at least one line. An empty INF confirmation means the lens was declared active but the gate was never checked — Tester will return BLOCKED.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Universal guardrails loaded by every agent. Defines Verify Before Reporting (VBR), Write-Ahead Log (WAL), and the security baseline. Always-on, role-independent.

中文简介正在准备中。当前显示原文说明。

Agistra/agistra.dev52026年10月21日 更新

Use when: architecture mode, architect this, ADR, C4, PlantUML, system boundary, design decision, PRD gap, high ambiguity, multiple technical approaches, security architecture, data architecture, integration risk, implementability gap, story ticket, or epic ticket.

中文简介正在准备中。当前显示原文说明。

Agistra/agistra.dev52026年10月21日 更新

Use when: assumptions audit, audit assumptions, check for hidden assumptions, plan/ticket has ambiguous scope edges, pre-flight before finalizing a ticket, unstated assumptions, or 'what am I assuming'. Surfaces unstated assumptions, ambiguous scope edges, and untested preconditions in a finished plan/ticket/ADR before it is handed to Builder. Optional pass — Architect judges when to apply it; not a mandatory gate on every ticket.

中文简介正在准备中。当前显示原文说明。

Agistra/agistra.dev52026年10月21日 更新

Use when: Tester needs UI state evidence for VBR, or Builder needs to verify an integration wire is observable end-to-end. Powered by agent-browser MCP — token-efficient browser automation (200–400 tokens/page).

中文简介正在准备中。当前显示原文说明。

Agistra/agistra.dev52026年10月21日 更新

Use when drafting a bug or defect ticket, reviewing one someone else wrote, or deciding whether a reported problem is ready to file. Keeps what the reporter actually saw separate from what the agent later found out, so a reader can tell which lines are testimony and which are collected proof. Trigger phrases: 'file a bug', 'write up this defect', 'triage this report', 'is this ticket ready to file', 'what did the reporter actually see'.

中文简介正在准备中。当前显示原文说明。

Agistra/agistra.dev52026年10月21日 更新

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.

中文简介正在准备中。当前显示原文说明。

Agistra/agistra.dev52026年10月21日 更新

查看 Agistra 的全部技能

报告此技能的问题