upgrade-agent-native
Что он делает
Этот скилл объясняет, как обновить старое приложение или рабочее пространство Agent-Native до актуальных пакетов с помощью поддерживаемой команды обновления. Он нужен разработчикам, чьё приложение сломалось после обновления.
Когда использовать
- ✓Когда старому приложению Agent-Native нужно работать на актуальных базовых пакетах.
- ✓Когда обновление базового пакета ломает приложение.
- ✓Когда вас тянет патчить пакеты фреймворка, чтобы запустить старую ветку.
Ссылка на скилл
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/upgrade-agent-native/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Моё старое приложение Agent-Native не запускается после обновления базового пакета. Помоги обновить его правильным способом.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент сначала показывает превью изменений миграции, применяет проверенное обновление, обновляет скаффолд-скиллы и затем исправляет только код самого приложения, никогда не трогая пакеты фреймворка.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Upgrade Agent-Native
Rule
When an older Agent-Native app/branch needs to run on current packages, use
agent-native upgrade. Never "fix" upgrade breakage with
pnpm patch, pnpm patch-commit, pnpm.patchedDependencies,
pnpm.overrides, patchedDependencies, resolutions, local patch artifacts,
or edits under node_modules/@agent-native/* — especially not against
@agent-native/core or @agent-native/dispatch.
Why
Agents often respond to a failed core bump by inventing framework patches and dispatch behavior overrides. That hides the real app-level break, drifts from upstream, and makes the next upgrade worse. The supported path is bump → install → refresh scaffold skills → verify, then fix app code only.
How
For the Core 0.198.0 package and import migration, follow the Core 0.198.0 upgrade runbook. It covers the preview and apply commands, Toolkit and optional peer packages, codemod limits, and a symbol-level path map.
Preview migration codemods first
npx @agent-native/core@0.198.0 upgrade --codemods --dry-run--dry-runpreviews the diff without writing. Do not manually edit imports before applying the codemod; the migration manifest is the source of truth for renamed specifiers and symbols.Apply the reviewed upgrade and codemods
npx @agent-native/core@0.198.0 upgrade --codemodsUse the versioned CLI while the app still has Core 0.196 or another older Core version: its local CLI carries an older migration manifest. After Core 0.198.0 is installed,
npx agent-native upgrade --codemods(orpnpm exec agent-native upgrade --codemodsfrom an already-installed CLI) uses the matching manifest. Either invocation applies supported codemods and runs the upgrade, including dependency installation, scaffold skill refresh, and typecheck when available. Do not run a second upgrade command just to apply the codemods.Afterward, run
npx agent-native doctorfrom the app root. Its defaultmigration-manifestandfeature-dependencieschecks report stale imports and missing optional peers detected from local settings. Confirm remote deployment settings separately because Doctor cannot inspect them.What it does:
- Blocks (unless
--force) when@agent-native/*overrides/patches exist - Rewrites non-local
@agent-native/*dependency pins tolatest - Runs the package manager install
- Rewrites those pins to the exact versions the install resolved, so the committed manifest names one release instead of re-resolving next install
- Runs
skills update scaffold --project - Runs
typecheckwhen the project has that script
- Blocks (unless
Pull upstream template changes (optional, separate from the bump)
agent-native upgrademoves package versions. It never touches files that were copied out of a template at scaffold time, so template fixes and improvements do not arrive with a bump.agent-native template status # recorded ref vs latest, drift counts agent-native template diff # what upstream changed, read-only agent-native template sync # 3-way merge it into the appsyncdefaults to the ref matching the installed@agent-native/core, so run it afterupgrade. It merges per file against a pristine baseline stored inrefs/agent-native/template-baseline/<app-path>; files upstream did not touch are left alone, and real collisions get conflict markers. After resolving markers, runagent-native template accept— the baseline deliberately does not advance past an unresolved merge.Apps scaffolded before provenance existed have no baseline. Create one with
agent-native template baselinebefore the first sync.If upgrade or typecheck fails
- Read the concrete error
- Fix app source, actions, config, or env — not framework packages
- Re-run
agent-native upgradeorpnpm typecheck - Stop and ask the user if you cannot fix the app-level error
Intentional app-level UI customization is a separate workflow. Read
customizing-agent-nativewhen the product needs to own a selectively copied component; do not use that path to reproduce framework runtime behavior or hide version skew.Dry-run / partial runs
agent-native upgrade --dry-run agent-native upgrade --skip
Частые вопросы
Стоит ли патчить пакеты фреймворка?
Нет. Скилл говорит не использовать патчи, переопределения и правки внутри node_modules.
Что делать первым шагом?
Сначала проверить кодмоды сухим запуском, без применения.
Какое руководство описывает миграцию Core 0.198.0?
Скилл ссылается на руководство по обновлению Core 0.198.0.
Подробности
Оригинальное описание автора
Bring an older Agent-Native app or workspace current. Use when updating @agent-native/core, fixing a broken upgrade, or when tempted to patch or override core/dispatch packages to make an old branch run.
repo: BuilderIO/agent-native
Популярность
- Звёзды на GitHub
- 7.6k
- Место в рейтинге
- #13188
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
design-exploration
7.6kПомогает агенту рассмотреть несколько направлений дизайна интерфейса рядом, дать вам выбрать одно, а затем доработать выбранное.
visual-edit
7.6kПомогает агенту открыть запущенное локальное приложение в визуальном редакторе, чтобы вы вместе просмотрели и правили его настоящие экраны.
turn-into-app
7.6kПревращает процесс, таблицу или проект в аккуратное визуальное приложение с заполненными экранами и агентом, работающим за элементами управления.
visual-plan
7.6kПревращает обычный текстовый план в интерактивный визуальный план с диаграммами, картами файлов, фрагментами кода и открытыми вопросами.
Похожие скиллы
openclaw-update
394kПомогает агенту обновить уже работающий OpenClaw Gateway, выбрав способ обновления по тому, как он был установлен, и сохранив вашу сессию.
diagnose-gateway
394kПомогает агенту выяснить, почему ваш OpenClaw Gateway не работает, проверяя настройки, каналы и порты, но ничего не меняя.
crabbox-apps
394kПомогает агенту открыть и запустить приложение на временной облачной машине, а затем показать его вид на боковой панели чата.