Next Upgrade

v0.1.0

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

0· 603·2 current·2 all-time
byvi.dev@tuanvidev

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for tuanvidev/next-upgrade.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Next Upgrade" (tuanvidev/next-upgrade) from ClawHub.
Skill page: https://clawhub.ai/tuanvidev/next-upgrade
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install next-upgrade

ClawHub CLI

Package manager switcher

npx clawhub@latest install next-upgrade
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the actions in SKILL.md: reading package.json, consulting official Next.js upgrade docs, running codemods, updating dependencies, and testing are all expected for a Next.js upgrade helper.
Instruction Scope
Instructions stay within the upgrade task (reading package.json, next.config.js, applying codemods, updating deps, running build/dev). Notable: it instructs fetching docs from nextjs.org (expected) and running npx to execute codemods, which will read and modify project files — expected for the task but grants filesystem write capability to the codemod code.
Install Mechanism
There is no static install spec (instruction-only). However, the runtime instructions call npx @next/codemod@latest which downloads and executes code from the npm registry at runtime. This is a common pattern for codemods but carries the usual risk of executing third-party package code; pinning transforms/versions or reviewing the codemod before running reduces risk.
Credentials
The skill declares no required env vars, credentials, or config paths. The files it reads/writes (package.json, next.config.js, project files) are proportional to its purpose and are explicitly mentioned in the instructions.
Persistence & Privilege
The skill is not always-on and requests no elevated platform privileges. It does instruct commands that modify the project (npx codemods, npm install), which is appropriate for an upgrade tool but means it will change local repository state when invoked.
Assessment
This skill is coherent for upgrading Next.js. Before running it: (1) run it in a clean git branch and fully commit or stash changes so you can review/undo edits; (2) review or pin the specific codemod transforms and versions instead of blindly running @latest; (3) inspect codemod output and run your test/build steps locally or in CI; (4) backup or ensure CI/tests are green before merging; (5) if you want stricter control, run the listed WebFetch URLs and codemods manually rather than letting an automated agent execute npx. If the SKILL.md later adds unknown network endpoints or requests credentials, stop and reassess.

Like a lobster shell, security has layers — review code before you run it.

latestvk976dt258vg8pwbdff7cqecj2s81fsh0
603downloads
0stars
1versions
Updated 2mo ago
v0.1.0
MIT-0

Upgrade Next.js

Upgrade the current project to the latest Next.js version following official migration guides.

Instructions

  1. Detect current version: Read package.json to identify the current Next.js version and related dependencies (React, React DOM, etc.)

  2. Fetch the latest upgrade guide: Use WebFetch to get the official upgrade documentation:

  3. Determine upgrade path: Based on current version, identify which migration steps apply. For major version jumps, upgrade incrementally (e.g., 13 → 14 → 15).

  4. Run codemods first: Next.js provides codemods to automate breaking changes:

    npx @next/codemod@latest <transform> <path>
    

    Common transforms:

    • next-async-request-api - Updates async Request APIs (v15)
    • next-request-geo-ip - Migrates geo/ip properties (v15)
    • next-dynamic-access-named-export - Transforms dynamic imports (v15)
  5. Update dependencies: Upgrade Next.js and peer dependencies together:

    npm install next@latest react@latest react-dom@latest
    
  6. Review breaking changes: Check the upgrade guide for manual changes needed:

    • API changes (e.g., async params in v15)
    • Configuration changes in next.config.js
    • Deprecated features being removed
  7. Update TypeScript types (if applicable):

    npm install @types/react@latest @types/react-dom@latest
    
  8. Test the upgrade:

    • Run npm run build to check for build errors
    • Run npm run dev and test key functionality

Comments

Loading comments...