Skip to content
Skillpedia
Deploy & cloud (DevOps)7.6k · #13188

upgrade-agent-native

What it does

This skill explains how to upgrade an older agent-native app or workspace to current packages using the supported upgrade command. It is for developers whose app breaks after an update.

When to use it

  • ✓When an older agent-native app needs to run on current core packages.
  • ✓When an upgrade to the core package breaks the app.
  • ✓When you feel tempted to patch framework packages to make an old branch run.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/upgrade-agent-native/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My old agent-native app won't start after updating the core package. Help me upgrade it the right way.”

5 new skills a week. 1 minute to read.

How it works

The agent previews the migration changes first, applies the reviewed upgrade, refreshes the scaffold skills, and then fixes only the app's own code, never the framework packages.

Technical content (original SKILL.md)

Original text by the author, straight from 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
    
FAQ

Should I patch the framework packages?

No. The skill says not to use patches, overrides, or edits inside node_modules.

What is the first step?

Preview the codemods with a dry run before applying them.

Which guide covers the Core 0.198.0 migration?

The skill points to the Core 0.198.0 upgrade runbook.

Details

Original description by the author

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

Popularity

GitHub stars
7.6k
Ranking position
#13188
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills