본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)7.6k · #13188

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

  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
    
자주 묻는 질문

프레임워크 패키지를 패치해야 하나요?

아니요. 패치, 오버라이드, 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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬