Migrate to Rstack CLI
To migrate an existing project, we recommend using the migrate-to-rstack-cli Skill. It inspects the repository and migrates the Rstack toolchain, Prettier, Husky, and other supported tools to Rstack CLI.
Use the migration skill
Migrate in one pass
To migrate all supported tools in one pass, send this prompt to your coding agent:
Migrate in stages
If you want to keep each set of changes small and easy to review, migrate one tool at a time. Start by installing the Skill in your repository:
Then ask your coding agent to migrate a single tool. For example, start with Rslint:
Once you have reviewed and validated the changes, move on to Rstest:
Repeat this process for each remaining tool.
Supported tools
The Skill can directly migrate the following standalone tools:
- Rstack toolchain: Rsbuild, Rslib, Rstest, Rslint, and Rspress
- Code formatting: Prettier
- Staged-file tasks: lint-staged and nano-staged
- Git hooks: Husky and simple-git-hooks
Unsupported tools
The Skill does not directly migrate tools outside the list above. If your project uses any of the following tools, migrate it to the corresponding Rstack tool first, then run the migrate-to-rstack-cli Skill:
- Application builds: Follow the Rsbuild webpack migration guide, Vite migration guide, Create React App migration guide, or Vue CLI migration guide to migrate the project to Rsbuild.
- Library builds: Follow the Rslib tsup migration guide or tsc migration guide to migrate the library to Rslib.
- Testing: Follow the Rstest Jest migration guide or Vitest migration guide to migrate the project to Rstest.
- Linting: Follow the Rslint getting started guide to migrate ESLint or other linters to Rslint.