Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)7.6k Β· #13188

upgrade-agent-native

Fungsinya

Skill ini menjelaskan cara memutakhirkan aplikasi atau workspace agent-native yang lama ke paket terbaru dengan perintah pemutakhiran yang didukung. Skill ini untuk pengembang yang aplikasinya rusak setelah pembaruan.

Kapan dipakai

  • βœ“Saat aplikasi agent-native lama perlu berjalan di paket inti terbaru.
  • βœ“Ketika pemutakhiran paket inti merusak aplikasi.
  • βœ“Saat Anda tergoda menambal paket framework agar cabang lama bisa berjalan.

Link skill

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/upgrade-agent-native/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/upgrade-agent-native/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œAplikasi agent-native lama saya tidak bisa dijalankan setelah paket inti diperbarui. Bantu saya memutakhirkannya dengan cara yang benar.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent pertama-tama melihat pratinjau perubahan migrasi, menerapkan pemutakhiran yang sudah ditinjau, menyegarkan skill scaffold, lalu memperbaiki hanya kode aplikasi sendiri, tidak pernah paket framework.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

  1. Preview migration codemods first

    npx @agent-native/core@0.198.0 upgrade --codemods --dry-run
    

    --dry-run previews 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.

  2. Apply the reviewed upgrade and codemods

    npx @agent-native/core@0.198.0 upgrade --codemods
    

    Use 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 (or pnpm exec agent-native upgrade --codemods from 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 doctor from the app root. Its default migration-manifest and feature-dependencies checks 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 to latest
    • 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 typecheck when the project has that script
  3. Pull upstream template changes (optional, separate from the bump)

    agent-native upgrade moves 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 app
    

    sync defaults to the ref matching the installed @agent-native/core, so run it after upgrade. It merges per file against a pristine baseline stored in refs/agent-native/template-baseline/<app-path>; files upstream did not touch are left alone, and real collisions get conflict markers. After resolving markers, run agent-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 baseline before the first sync.

  4. If upgrade or typecheck fails

    • Read the concrete error
    • Fix app source, actions, config, or env β€” not framework packages
    • Re-run agent-native upgrade or pnpm 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-native when the product needs to own a selectively copied component; do not use that path to reproduce framework runtime behavior or hide version skew.

  5. Dry-run / partial runs

    agent-native upgrade --dry-run
    agent-native upgrade --skip
    
Pertanyaan umum

Haruskah saya menambal paket framework?

Tidak. Skill ini menyatakan jangan memakai patch, override, atau edit di dalam node_modules.

Apa langkah pertama?

Lihat pratinjau codemod dengan dry run sebelum menerapkannya.

Panduan mana yang mencakup migrasi Core 0.198.0?

Skill ini menunjuk ke runbook pemutakhiran Core 0.198.0.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
7.6k
Peringkat
#13188
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa