Run a local Supabase reset, database tests, and type generation in sequence. Use when the user asks to run `supabase db reset`, `supabase test db`, and `npm run gen-types` for this repo.
Install
npx skillscat add dolesshq/self-obsolescence/supabase-reset-test-gen-types Install via the SkillsCat registry.
SKILL.md
Supabase Reset/Test/Gen Types
Workflow
- Confirm the working directory is the intended project root:
- It contains
supabase/configuration. - It contains a type-generation script (for example
npm run gen-types).
- It contains
- Execute the one-shot command:
supabase db reset --yes && supabase test db && npm run gen-types- If the command succeeds, summarize:
- database reset succeeded
- database tests passed
- types were generated
- If any step fails, stop and report the failing command output clearly.
Notes
- Use
--yesto avoid prompts duringsupabase db reset. - Use
supabase test db(notsupabase db test) for pgTAP tests. - If local services are not running, start required Supabase services before retrying.