sanity-studio-upgrade
БесплатноБез исполняемых скриптовНе проверенProduces a tailored Sanity Studio upgrade plan by inspecting the repository's installed versions, config, and source, then reporting only the breaking changes…
от sanity-io★ 203 звезды на GitHubОб этом скилле
Sanity Studio upgrade planner
Generate an upgrade plan for the Sanity Studio in the current repository.
The plan's value is subtraction. A list of every breaking change between two versions already exists; it is called the changelog, and it is not useful to someone mid-upgrade. This skill produces the much shorter list of changes that apply to this repository, plus the questions only a human can answer.
Three rules that determine whether the output is trustworthy
1. Never state a version number from memory. Look it up, and confirm it exists.
Package versions change weekly. Every version in the report must come from either the repository's lockfile (for current state) or a live registry query (for targets). If a lookup is not possible, say so in the report rather than guessing. A plan that names a stale "latest" is worse than no plan, because the reader will act on it.
There is a second, worse version of this failure: a version number that was never published at all, arrived at by assuming one package tracks another's numbering. That one fails at install. Any version you are about to describe as "lockstep" or "matches core" needs an existence check first.
The same applies to API names. An export, an import subpath, or a function signature recalled from memory is a guess, and it is a guess the reader will paste into their editor. Read it from the package's README or exports map, or mark it with an inline // VERIFY: comment at the snippet itself. See section 6 of plugins.md and section 8 of report-template.md.
2. Read and report. Never modify.
Inspect files, run read-only shell commands, query registries. Do not edit package.json, config files, or source. The reader decides what to change; a planner that edits code will be turned off. If the user explicitly asks you to perform the upgrade afterward, that is a separate task they have consented to.
Where the line actually falls, because a vague version of this rule makes an agent hesitate over commands that are fine:
- Never: writing to any file in the repository, installing into it, or mutating a lockfile.
pnpm install,npm install,npm ciandnpxwithout--no-installare all out. - Fine: reading files, and network reads such as
npm view, a changelog fetch, ornpm packinto a temporary directory outside the repository that you then delete. - Recommended to the reader, not run by you:
pnpm install --lockfile-onlyis how a dependency prediction gets settled. It belongs in the report as a command for them to run, with what to expect from it. Do not run it yourself, because it rewrites their lockfile.
The one place this skill writes anything is unpacking a tarball to inspect type declarations, and section 6 of plugins.md shows how to keep that outside the project.
3. Separate what you verified from what you inferred.
Every finding lands in one of three buckets: confirmed applicable (you found the condition in the repo), needs a human answer (you cannot determine it from code), or not applicable (omit it entirely). Never pad the report with items you could not check. An honest short report beats a comprehensive-looking one.
One consequence is easy to miss and worth stating outright: a read-only planner has no dependency resolver, so it cannot know what a tree will contain after a change. Predictions about deduplication belong in the report as expectations with the verification command attached, never as findings. See package-coupling.md.
The verification rules, in one place
These are referred to by number throughout the reference files, so they are stated once here rather than restated in each. Everything above is R1 to R4; the rest are the specific ways those go wrong.
| Rule | Where it bites | |
|---|---|---|
| R1 | Never state a version from memory. Take current state from the lockfile, targets from a live registry query. | version-lookup.md §1 |
| R2 | Read and report. Nothing in the repository changes, nothing is installed, no lockfile is mutated. | Above, and plugins.md §6 |
| R3 | Separate verified from inferred. Never assert what a dependency tree will contain after a change; a planner has no resolver. | package-coupling.md §6, plugins.md §5 |
| R4 | Confirm every recommended version was actually published before it goes in the report. | version-lookup.md §3 |
| R5 | Every "X requires Y" names the manifest it was read from, at the version being installed at that stop. Requirements do not carry backwards across majors. | version-lookup.md §6 |
| R6 | Evaluate a version range, never read it. Anything with a ||, a <, or two comparators in one clause goes through semver.satisfies first. |
version-lookup.md §6 |
| R7 | A name in an export list is not a working export. Check its declared type and any @deprecated tag; never means removed. |
plugins.md §6 |
R6 and R7 exist because both have already produ
Установить sanity-studio-upgrade в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sanity-studio-upgrade?
Produces a tailored Sanity Studio upgrade plan by inspecting the repository's installed versions, config, and source, then reporting only the breaking changes that actually apply. Covers Studio v3 and later; v2 projects are identified and redirected, not planned. Use this skill whenever someone wants to upgrade, migrate, or modernize a Sanity Studio across one or more major versions from v3 onward, asks what will break if they bump the `sanity` package, asks why their Studio broke after an upgrade, or asks how far behind their Studio is. Triggers on "upgrade sanity studio", "migrate our studio to v6", "bump sanity", "what breaks if we upgrade", "our studio is on an old version", "sanity upgrade plan", "is our studio out of date", "we are several majors behind". DO NOT load for upgrading non-Sanity dependencies, for Content Lake `apiVersion` questions, for content or schema migrations that change documents, or for setting up a new Sanity project.
Как установить скилл sanity-studio-upgrade?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sanity-studio-upgrade запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic