返回 Skill 列表
extension
分类: 开发与工程无需 API Key

supabase-reset-test-gen-loop

迭代运行本地Supabase重置、数据库测试和类型生成,直到它们成功,在每次运行之间修复问题。当被要求重置本地Supabase数据库、运行`supabase test db`命令,并在循环中重新生成类型(`npm run gen-types`)时使用。

person作者: jakexiaohubgithub

Supabase Reset / Test / Gen Loop

Workflow

  1. Confirm working directory contains the intended supabase/ config and package.json.
  2. Run the loop:
    • supabase db reset && supabase test db && npm run gen-types
    • Run this as a single sequential shell command joined with &&.
    • Do not split these steps across subagents or run them in parallel.
  3. If the command fails, read the error output, fix the underlying issue, and rerun the same command.
  4. Continue until the command completes successfully.
  5. If the same error repeats after fixes, pause and ask the user for guidance.

Notes

  • Use supabase test db (not supabase db test) for running pgTAP tests.
  • If the project requires environment setup (e.g., supabase start), ensure it is running before the loop.
  • Subagents are appropriate only for independent analysis/fix work, not for executing this ordered command chain.