Repository navigation
docs(supabase_typegen): say when to regenerate the schema in the package skills - #2115
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
|
| Layer / File(s) | Summary |
|---|---|
Type generation workflow skills_src/generate/SKILL.md.tmpl, packages/supabase_typegen/skills/supabase-typegen-generate/SKILL.md |
The typegen guidance adds schema and tool changes as regeneration triggers. It describes local migration requirements, hosted SQL, and affected schema objects. |
Schema generation in idiom skills skills_src/idioms/SKILL.md.tmpl, packages/supabase/skills/supabase-idioms/SKILL.md, packages/supabase_flutter/skills/supabase-flutter-idioms/SKILL.md |
The guidance covers regeneration after schema changes and typegen upgrades. It also describes applying local migrations and using hosted schemas. |
V3 migration report reminders skills_src/migrate-v3/SKILL.md.tmpl, packages/supabase/skills/supabase-migrate-v3/SKILL.md, packages/supabase_flutter/skills/supabase-flutter-migrate-v3/SKILL.md |
The report reminders now include schema changes made through migrations or the dashboard, and typegen upgrades. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Possibly related issues
- supabase/supabase-flutter#1278 — The issue tracks v3 changes, and this PR updates schema regeneration guidance in v3 migration skills.
Possibly related PRs
- supabase/supabase-flutter#2039 — Adds generated schema imports and typed-schema guidance that this PR extends with regeneration instructions.
- supabase/supabase-flutter#2008 — Adds type-generation and local migration instructions to README files; this PR updates corresponding skill guidance.
- supabase/supabase-flutter#2044 — Changes typegen output, which this PR's regeneration guidance addresses after a generator upgrade.
Suggested labels: supabase
Merge Risk: 
Low · previous review a3a31
-
The README can leave generated types stale after hosted schema or tool changes; update it before merging.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
…LI upgrades in the regenerate guidance
Summary
The package skills told agents to regenerate
lib/supabase_schema.g.dartonly "after every database migration". That misses several cases where the generated file goes stale. The generate, idioms and migrate-v3 skills now say to regenerate:supabase_typegenor the Supabase CLI.The generate and idioms skills also say that with
--local, new migrations must be applied to the stack first (supabase migration uporsupabase db reset), since the command reads the running database and otherwise produces the old schema without an error. The idioms skill now mentions--linkedand--project-idnext to--local.The generated
skills/folders were updated withmelos run sync-skills.Summary by CodeRabbit