release-migration
Skill18 starsChanged 5 months agoMITView on GitHub
Cut a @waniwani/sdk version bump that ships its own migration path so users can upgrade automatically. Use when bumping the SDK version, releasing a breaking change, editing the changelog for a release, or when the user says "cut a release", "version bump", "ship a breaking change", or "prepare a migration".
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- copySkill
- deploy-prodSkill
- linear-oneshotSkill
- project-planningSkill
- project-updateSkill
- pull-requestSkill
- wani-code-reviewSkill
- create-flow-appSkill
- frontend-designSkill
- knowledge-baseSkill
- translationsSkill
- visualize-flowSkill
- audit-trackingSkill
- instrument-trackingSkill
- migrate-waniwani-sdk-0.15-to-0.16Skill
- migrate-waniwani-sdk-0.16-to-0.17Skill
- migrate-waniwani-sdk-0.17-to-0.18Skill
- migrate-waniwani-sdk-0.18-to-0.19Skill
- migrate-waniwani-sdk-0.19-to-0.20Skill
- migrate-waniwani-sdk-0.22-to-0.23Skill
- migrate-waniwani-sdk-0.23-to-0.24Skill
- migrate-waniwani-sdk-0.24-to-0.25Skill
- waniwani-sdkSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
If the change is purely internal (no exported symbol, type, or documented behavior changes), no migration is needed — say so and stop.
- Distinctive: line 44
Add the deprecation shim: if the old shape can coexist.
- Distinctive: line 74
If any box is unchecked, the release is not done.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Release migration
@waniwani/sdk is 0.x, so minor bumps can break the public API. The principle behind this skill: a version bump is not finished until a user (or their agent) can upgrade to it without reading the source. Every breaking change ships with a mechanical, agent-applicable migration. This holds at every version boundary — 0.15, 1.0, and 15.0 alike.
Inspired by how the AI SDK ships migrate-* skills for each major: we keep the equivalent baked into the SDK's own docs so upgrading is a one-pass, auto-applied operation.
When to run
- Bumping the version in
package.json - Landing any change to the public API tiers (see CLAUDE.md — OSS / Free tier / Legacy surfaces)
- Preparing changelog / release notes
- Deprecating or removing an exported symbol
If the change is purely internal (no exported symbol, type, or documented behavior changes), no migration is needed — say so and stop.
The rule
A release that breaks the public API must ship all three of these before it is done:
- Changelog entry — a
## <version>:section in the docs changelog (sdk/changelog.mdxin the docs repo, published at docs.waniwani.ai/sdk/changelog) with:- a before/after code snippet, and
- a mechanical migration an agent can apply without judgment (a codemod recipe, not "update your calls").
- Also add a row to the Breaking changes at a glance table.
- A
<Tip>at the top of the section linking the version-specific migration skill (deliverable 2):npx skills add Waniwani-AI/sdk -s migrate-waniwani-sdk-<from>-to-<to>, so a reader can run the migration, not just read it.
- A version-specific migration skill — a self-contained sibling skill
skills/migrate-waniwani-sdk-<from>-to-<to>/SKILL.mdcovering exactly this hop (one skill per version boundary, the way Vercel ships amigrate-*skill per major). It restates every breaking change of the release as a numbered, apply-without-judgment recipe, ends withbun run typecheck && bun testas the completion check, and does not try to handle other version deltas. Copy the newest existingmigrate-waniwani-sdk-*skill as the template. Add a one-line pointer to it fromskills/waniwani-sdk/SKILL.md's upgrade section. - Deprecation shim (where feasible) — keep the old signature/export working behind a
@deprecatedJSDoc that names the removal version. This turns a hard break into a soft one; users get warnings before errors. Not always possible (a surface that never worked is deleted outright, not shimmed).
Steps
- Identify the breaking changes. Diff the public surface against the last release:
Cross-check against the tiers in CLAUDE.md. A renamed/removed/re-typed export, a changed function signature, a moved entry point, or a changed default is breaking. A new optional export is not.git diff <last-tag>..HEAD -- src/ | grep -E '^\-.*export' - For each breaking change, write the migration. Prefer a codemod recipe precise enough to auto-apply: what to match, what to rewrite it to, and how the type checker confirms success. The newest
skills/migrate-waniwani-sdk-*/SKILL.mdsets the quality bar: it tells an agent exactly what to collect and where to insert it. - Add the deprecation shim if the old shape can coexist. Example:
/** @deprecated Use `newName`. Removed in 0.16.0. */ export const oldName = newName; - Write the changelog section and the migration skill (deliverables 1 and 2). Keep them in sync: the skill is the applyable form of what the changelog describes.
- Bump the version in
package.json(and commit as<version>per the repo's tagging convention — see recentgit log). - Verify. The migration must survive its own checks:
Then dry-run the migration against a call site in-repo (or a scratch snippet) to confirm the recipe actually compiles after applying.bun run typecheck bun test bun run build - Report. List each breaking change, its migration recipe, and whether a deprecation shim covers it.
Definition of done
- Every breaking change has a changelog
## <version>:section with before/after + codemod recipe - Changelog section links its
migrate-waniwani-sdk-<from>-to-<to>skill in a<Tip> - "Breaking changes at a glance" table updated
skills/migrate-waniwani-sdk-<from>-to-<to>/SKILL.mdcreated for this hop, self-contained, and linked fromskills/waniwani-sdk/SKILL.md's upgrade section@deprecatedshim added wherever the old shape can coexist, naming the removal versionbun run typecheck && bun test && bun run buildpass- Migration recipe dry-run compiles
If any box is unchecked, the release is not done.
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.

