Command Palette

Search for a command to run...

Back to skills
skill № 37817

rspress-v2-upgrade

Migrate Rspress projects from v1 to v2. Use when a user asks to upgrade Rspress, follow the v1-to-v2 guide, update configs/themes, or validate the upgrade.

FreeNo executable scripts
rstackjsby rstackjs★ 101 GitHub stars

Install rspress-v2-upgrade in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Rspress v1 to v2 upgrade

Workflow

  1. Confirm current setup

    • Read package.json to identify Rspress and plugin packages in use.
    • Locate the Rspress config file (commonly rspress.config.(ts|js|mjs|cjs)).
    • Check for custom theme files and MDX usage.
  2. Open the official upgrade guide

  3. Plan the upgrade path

    • List breaking changes that apply to the project's current config, plugins, and theme.
    • Note any removed or renamed packages, options, and APIs.
  4. Update dependencies

    • Replace rspress with @rspress/core@^2.0.0.
    • Remove packages now built into @rspress/core (e.g. rspress, @rspress/plugin-shiki, @rspress/plugin-auto-nav-sidebar, @rspress/plugin-container-syntax, @rspress/plugin-last-updated, @rspress/plugin-medium-zoom, @rspress/theme-default, @rspress/runtime).
    • Bump remaining Rspress plugins to latest versions via npx taze major --include /rspress/ -w -r.
    • Ensure Node.js >= 20.9.0.
  5. Apply config and code changes

    • Update import paths (rspress/runtime → @rspress/core/runtime, rspress/theme → @rspress/core/theme, @rspress/theme-default → @rspress/core/theme-original).
    • If the project has a custom theme (in theme directory), use @rspress/core/theme-original to import the original theme components.
    • Update the Rspress config to match v2 options and defaults.
    • Remove deprecated or unsupported settings.
  6. Validate

    • Run the build and dev server.
    • Fix any warnings or errors that appear in the new version. If errors or warnings occur, please refer to the Official Upgrade Guide and first check if it's caused by any omitted or incomplete migration steps.

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the rspress-v2-upgrade skill do?

Migrate Rspress projects from v1 to v2. Use when a user asks to upgrade Rspress, follow the v1-to-v2 guide, update configs/themes, or validate the upgrade.

How do I install the rspress-v2-upgrade skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the rspress-v2-upgrade skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare rspress-v2-upgrade with