Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

next-upgrade

bởi tuanvidev

Web & Frontend Development
393Lượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Upgrade Next.js to the latest version following official migration guides and codemods.

Mô tả

Kỹ năng này làm gì

Upgrades a Next.js project to a target version by reading the current version from package.json, fetching the official migration guides and codemod docs from nextjs.org, running automated transforms, and updating peer dependencies. Handles incremental upgrades for multi-major-version jumps.

Combines version detection, official guide lookup, codemod execution, and dependency updates into one guided sequence instead of manually cross-referencing changelogs and running steps out of order.

Khi nào nên dùng

  • Upgrading a Next.js 13 app to version 15
  • Automating codemod transforms after a major version bump
  • Fixing async Request API breaking changes introduced in v15
  • Keeping React and Next.js peer dependencies in sync after an upgrade
  • Identifying build errors caused by deprecated or removed APIs

Quy trình ví dụ

ĐẦU VÀO

User asks: upgrade my Next.js project to version 15

AGENT
  1. 1

    Reads package.json to identify current Next.js version and related dependencies

  2. 2

    Fetches the official upgrade guide and codemod reference from nextjs.org

  3. 3

    Runs applicable codemods via npx @next/codemod@latest for automated breaking-change fixes

  4. 4

    Updates Next.js, React, and React DOM to their latest versions

  5. 5

    Runs npm run build to surface any remaining issues and reports what needs manual attention

ĐẦU RA

Project dependencies updated to Next.js 15 with breaking changes resolved via codemods and remaining manual steps listed from the upgrade guide

Cài đặt

clawhub install tuanvidev/next-upgrade

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết