writing-migration-guides
Skill1.3k starsChanged 3 months agoMITView on GitHub
Use when a change is a breaking change — a `fix!:`/`feat!:` commit, a `BREAKING CHANGE:` footer, or any edit that changes a public API's shape or behavior — and needs an entry in the root `V<N>_MIGRATION.md` file. Also use when reviewing a PR that has one, to check it against this format.
Trending
Quiet since October.about the whole repository
Who's talking about supabase/supabase-swift
- supabase/supabase-js“refactor(ci): use reusable workflows from supabase/actions”GitHub · Jan 21, 2026 · 2 reactions
- supabase/supabase-flutter“Allow to pass query params when invoking function”GitHub · May 10, 2024 · 2 reactions
- skiptools/skip“Cannot depend on external packages when using Skip native”GitHub · Apr 29, 2025 · 1 reactions
- supabase/supabase-flutter“[Feature request]: Add pull token approach to Realtime”GitHub · Dec 5, 2024 · 1 reactions
- supabase-community/supabase-kt“[Bug]: After deleting a user via edge function you can not logout”GitHub · Jun 25, 2024 · 1 reactions
The biggest 5 of 32 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 32
Talked about on GitHub (32 times).
On GitHub · 32
- Jan 21, 2026refactor(ci): use reusable workflows from supabase/actions — supabase/supabase-js2 reactions
- May 10, 2024Allow to pass query params when invoking function — supabase/supabase-flutter2 reactions · 3 comments
- Apr 29, 2025Cannot depend on external packages when using Skip native — skiptools/skip1 reaction · 11 comments
- Dec 5, 2024[Feature request]: Add pull token approach to Realtime — supabase/supabase-flutter1 reaction · 1 comment
- Jun 25, 2024[Bug]: After deleting a user via edge function you can not logout — supabase-community/supabase-kt1 reaction · 6 comments
27 more on GitHub
- Oct 5, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 5 updates — matthewcross27/Pictalis0 reactions
- Oct 1, 2026chore(deps): bump the ios-deps group in /iOS with 4 updates — thegoodcompany-sst/TAVAttendance0 reactions
- Sep 29, 2026deps: bump github.com/supabase/supabase-swift from 2.55.1 to 2.55.2 in /Packages/AlbumRaterKit in the swift group — jaimerabazo/album-rater0 reactions · 1 comment
- Sep 26, 2026Bump github.com/supabase/supabase-swift from 2.54.1 to 2.55.2 in /macOS — prioneto/signalcase0 reactions · 1 comment
- Sep 21, 2026deps: bump the swift-packages group across 1 directory with 3 updates — bobokenbippers/meetup-ios0 reactions
- Sep 19, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 6 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Sep 16, 2026【iOS】Pealsh 担当タスク — Magii-Corp/Magii_AirLine0 reactions
- Sep 15, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.55.1 to 2.55.2 in /packages/RecAnimeKit in the swift-minor-and-patch group — DANIELSSF/RecAnime0 reactions · 1 comment
- Sep 14, 2026deps: bump github.com/supabase/supabase-swift from 2.55.1 to 2.55.2 in the swift-packages group — bobokenbippers/meetup-ios0 reactions · 1 comment
- Sep 12, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 7 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Sep 5, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 6 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Sep 1, 2026chore(deps): bump the ios-deps group in /iOS with 3 updates — thegoodcompany-sst/TAVAttendance0 reactions
- Aug 29, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 3 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Aug 25, 2026build(deps): bump the swift-health-updates group in /native-plugins/sendlog-health with 2 updates — jirathip-dev/sendmeter0 reactions
- Aug 19, 2026Bump github.com/supabase/supabase-swift from 2.41.1 to 2.55.1 — surenss861/movemark-ios0 reactions
- Aug 17, 2026deps: bump github.com/supabase/supabase-swift from 2.54.1 to 2.55.1 in the swift-packages group — bobokenbippers/meetup-ios0 reactions
- Aug 15, 2026chore(deps): bump the swift-minor-patch group across 1 directory with 2 updates — matthewcross27/Pictalis0 reactions · 1 comment
- Aug 10, 2026deps: bump github.com/supabase/supabase-swift from 2.53.0 to 2.54.1 in the swift-packages group — bobokenbippers/meetup-ios0 reactions
- Jul 29, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.53.0 to 2.54.0 in /iOS — thegoodcompany-sst/TAVAttendance0 reactions · 2 comments
- Jul 27, 2026deps: bump the swift-packages group with 2 updates — bobokenbippers/meetup-ios0 reactions
- Jul 22, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.46.0 to 2.53.0 in /iOS — thegoodcompany-sst/TAVAttendance0 reactions
- Jun 22, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.41.1 to 2.48.0 — Xomware/Float0 reactions · 1 comment
- May 11, 2026chore(deps): bump github.com/supabase/supabase-swift from 2.34.0 to 2.46.0 — barclayd/keepfresh-ios0 reactions · 1 comment
- Mar 30, 2026deps(swift): bump github.com/supabase-community/supabase-swift from 2.37.0 to 2.43.0 — geoffsipperly/BendFlyShop0 reactions · 1 comment
- Mar 27, 2026Build CloudTour AVP - Native visionOS Apple Vision Pro App — EdwardZehuaZhang/cloudtour-monorepo0 reactions
- Oct 13, 2025build(deps): bump github.com/supabase/supabase-swift from 2.31.2 to 2.34.0 — zunda-pixel/niabis-api0 reactions
- Dec 5, 2024[Feature request]: Add pull token approach to Realtime — supabase/supabase-py0 reactions · 3 comments
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- swift-api-design-guidelinesSkill
- swift-doccSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Every breaking change needs one: a renamed or retyped public symbol, a changed default, a changed error type, an event that fires …
- Very specific: line 38
If V<N>_MIGRATION.md already exists (because someone already landed a breaking change for the upcoming major release), append a new ## …
- Distinctive: line 78
Escape hatch, if any: If the old behavior is still reachable (an explicit parameter, a different call), show it.
- Distinctive: line 85
When a change enumerates more than two or three renames or replacements, use a table instead of prose:
- Very specific: line 100
If the file already has sections for other changes targeting the same version, add yours as a new ## section rather than folding it into an …
- Very specific: line 107
If this breaking change comes with a deprecated fallback (the old API keeps working but is marked @available(*, deprecated, ...)), point …
- Very specific: line 115
Run ./scripts/spell-check.sh — migration guides are Markdown and get spell-checked with everything else.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Writing Migration Guides
Reference: supabase-flutter's MIGRATION.md. It gets this right — read a section or two before writing your own if you want the tone.
Step 1: Confirm it needs an entry
Every breaking change needs one: a renamed or retyped public symbol, a changed default, a changed
error type, an event that fires differently, anything that a feat!:/fix!: commit or
BREAKING CHANGE: footer would announce. A deprecation alone does not — that gets an
@available(*, deprecated, ...) message instead (see Step 5).
Completion criterion: you can name the exact symbol or behavior that changed and why a caller would need to touch their code because of it.
Step 2: Find the file, don't create a new one
supabase-swift keeps a single migration guide per upcoming major version, at the repo root, covering every module:
V<N>_MIGRATION.md<N> is the next major version above the latest release tag — check it with
git tag --sort=-v:refname | head -1; if the latest tag is v2.55.0, <N> is 3, so the file is
V3_MIGRATION.md.
If V<N>_MIGRATION.md already exists (because someone already landed a breaking change for the
upcoming major release), append a new ## section to it. Only create the file when none exists
yet for that version. Once v<N> ships, the file stays as the historical record for that release;
the next breaking change starts a new V<N+1>_MIGRATION.md.
This is unrelated to one-off feature-migration guides like docs/migrations/RealtimeV2 Migration
Guide.md, which document moving from an old API to a new parallel one, not a version bump —
leave those as they are.
Completion criterion: you know the exact file path, and whether you are creating it or appending to it.
Step 3: Write the section
Give the section a ## heading naming the exact symbol or behavior, in backticks:
## `AuthResponse.user` is now optionalThen, in order:
- What changed. One or two sentences. Name the concrete types/names involved — not "the API
changed" but "
AuthResponse.userisUser?instead ofUser". - Why. The concrete cause: a bug that surfaced, a shape the server actually sends, an inconsistency with another Supabase SDK. Never "for consistency" or "to improve the API" on their own — say what broke or what it now matches.
Before/After code. Real call-site Swift, not pseudocode:
// Before let email = response.user.email // After let email = response.user?.email- Compile error or silent? State this explicitly. If the change is a type change that Swift's compiler will catch (like the example above), say so — the reader can grep for the compiler's error list. If it is a behavior change that still compiles (a default flipping, an event firing under a different name), say so too, and tell the reader what to search their codebase for.
- Escape hatch, if any. If the old behavior is still reachable (an explicit parameter, a different call), show it.
Since the file covers every module, only name the module explicitly when it isn't obvious from the
symbol itself — AuthResponse and RealtimeClient don't need it, but a change to something
module-agnostic-sounding like HTTPMethod does.
When a change enumerates more than two or three renames or replacements, use a table instead of prose:
| Before | After |
| --- | --- |
| `RealtimeClient.conn` | `RealtimeClient.connection` |
| `RealtimeClient.connState` | `RealtimeClient.connectionState` |Completion criterion: the section has What/Why/Before-After, and explicitly says whether the break is a compile error.
Step 4: Order and grouping within the file
If the file already has sections for other changes targeting the same version, add yours as a new
## section rather than folding it into an existing one, even if the topic feels related. One
section per distinct breaking change keeps each one independently linkable.
Step 5: Cross-link and verify
- Link the guide from the PR description.
If this breaking change comes with a deprecated fallback (the old API keeps working but is marked
@available(*, deprecated, ...)), point its message at the guide using the pattern already used inSources/Realtime/Deprecated/*.swift:@available(*, deprecated, message: "Use X instead. See migration guide: https://github.com/supabase-community/supabase-swift/blob/main/V<N>_MIGRATION.md")- Run
./scripts/spell-check.sh— migration guides are Markdown and get spell-checked with everything else. Add project-specific terms todictionary.txtif it flags something legitimate.
Completion criterion: ./scripts/spell-check.sh passes, and the guide is named in the PR
description.
Common mistakes
| Mistake | Fix |
| Creating a new file per breaking change | Append a ## section to the existing V<N>_MIGRATION.md |
Creating a per-module file (e.g. docs/migrations/Auth Migration Guide.md) | One root file per major version, covering every module |
| "For consistency" / "to improve the API" as the whole reason | Name the concrete cause: a bug, a server behavior, a mismatch with another SDK |
| Pseudocode in Before/After | Use real, compiling Swift from an actual call site |
| Not saying whether it's a compile error | Always call it out — readers need to know whether their build will catch it or not |
| Prose listing many renames | Use a | Before | After | table |
Renaming an unrelated one-off guide (e.g. docs/migrations/RealtimeV2 Migration Guide.md) to fit the V<N>_MIGRATION.md pattern | Leave feature-migration guides alone; the versioned pattern is only for major-version breaking changes |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

