/rstack:rspack-best-practicesfrom rstack
Configure, review, and troubleshoot Rspack builds covering loaders, CSS, assets, type checking, bundle optimization, and profiling.
Ships in rstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Apply these rules when writing or reviewing Rspack projects.
rspack.config.ts and defineConfigentry values for multi-page applicationsprocess.env.NODE_ENV only when neededtest, include, exclude, resourceQuery)If @rspack/cli is installed:
rspack dev for local developmentrspack build for production buildrspack preview only for local production previewts-checker-rspack-plugin for integrated dev/build type checkstsc --noEmit/vue-tsc --noEmit as an explicit script stepChoose one strategy:
type: 'css' | 'css/auto' | 'css/module') for modern setupscss-loader + CssExtractRspackPlugin for webpack migration compatibilitystyle-loader for pure style-in-JS runtime injection scenariosOptional:
builtin:lightningcss-loader when goals are syntax downgrade + vendor prefixingsass-loader/less-loader for preprocessing Sass/Less files@tailwindcss/webpack for Tailwind CSS integrationimport() for non-critical code pathstarget aligned with real compatibility requirementspublicpublic files by absolute URL pathasset, asset/resource, asset/inline, asset/source) over legacy file-loader/url-loader/raw-loader--cpu-prof) when JavaScript-side overhead is suspectedRSPACK_PROFILE=OVERVIEW and analyze trace output for compiler-phase bottlenecksbabel-loader, PostCSS, terser) with Rspack built-ins when feasible.map files to public servers/CDNs when production source maps are enabledWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
rspack-config, webpack-migration, css-modules, bundle-analysis
npx claudepluginhub rstackjs/agent-skills --plugin rstack23 skills in this plugin
/migrate-to-rsbuildMigrate webpack, Vite, create-react-app (CRA/CRACO), or Vue CLI projects to Rsbuild./migrate-to-rslibMigrate tsc or tsup library projects to Rslib./migrate-to-rslintMigrate ESLint flat config or Oxlint to Rslint, preserving rule options, file scopes, and plugins while updating lint scripts, editor settings, and inline directives./migrate-to-rstestMigrate Jest, Vitest, or Playwright Test to Rstest while preserving test discovery, assertions, mocks, snapshots, and coverage.Other plugins' skills for the same job