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.
78
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
When an older Agent Native app/branch needs to run on current packages, use
agent-native upgrade. Never "fix" upgrade breakage with
pnpm.overrides, patchedDependencies, resolutions, local patches, or
edits under node_modules/@agent-native/* — especially not against
@agent-native/core or @agent-native/dispatch.
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.
Preview migration codemods first
npx @agent-native/core@latest upgrade --codemodsCodemods are preview-by-default: read the diff before applying it. Do not manually edit imports before running this command; the migration manifest is the source of truth for renamed specifiers and symbols.
Apply the reviewed codemods, then run the upgrade
npx @agent-native/core@latest upgrade --codemods --yes
npx @agent-native/core@latest upgradeOr from an already-installed CLI: pnpm exec agent-native upgrade /
agent-native upgrade.
What it does:
--force) when @agent-native/* overrides/patches exist@agent-native/* dependency pins to latestskills update scaffold --projecttypecheck when the project has that scriptPull 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 appsync 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.
If upgrade or typecheck fails
agent-native upgrade or pnpm typecheckIntentional 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.
Dry-run / partial runs
agent-native upgrade --dry-run
agent-native upgrade --skip-verify
agent-native upgrade --skip-install # package.json bumps only
agent-native doctor --only migration-manifestmigration-manifest has no opt-out. Run it in CI before upgrading to find
imports that will break, then use npx @agent-native/core@latest upgrade --codemods
to preview the supported rewrite.
pnpm.overrides, overrides, resolutions, or
patchedDependencies for any @agent-native/* packagenode_modules/@agent-native/core or
node_modules/@agent-native/dispatchskills update scaffold --project after a core bump (the
upgrade command does this for you)e9a2f0e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.