upgrade-agent-native
できること
このスキルは、サポートされたアップグレードのコマンドを使って、古い Agent-Native アプリやワークスペースを現在のパッケージに更新する方法を説明します。更新後にアプリが壊れた開発者向けです。
使う場面
- ✓古い Agent-Native アプリを、現在のコアパッケージで動かす必要があるとき。
- ✓コアパッケージのアップグレードの後、アプリが壊れたとき。
- ✓古いブランチを動かすために、フレームワークのパッケージにパッチを当てたくなったとき。
スキルのリンク
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/upgrade-agent-native/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“古い 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 内の編集は使わないよう、スキルは述べています。
最初の手順は何ですか?
コード変換を、適用する前に dry run でプレビューすることです。
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
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
design-exploration
7.6kUIの複数のデザインの方向性を並べて検討し、1つを選んでもらい、選んだデザインを磨き上げるようエージェントを支援します。
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一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。