/rstack:rspress-best-practicesfrom rstack
Provides configuration, content, navigation, MDX, search, and deployment best practices for Rspress v2 documentation sites.
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 Rspress (v2) sites.
rspress.config.ts and defineConfig from @rspress/coreroot explicitly when docs are not under the default docs/ directorytitle, description, icon, logo, base, and lang in config instead of repeating them in page filestheme/ directory and import original theme pieces from @rspress/core/theme-originalrspress dev for local developmentrspress build for production outputrspress preview only for local preview of the built siterspress eject only when CSS variables, class overrides, or layout wrapping cannot solve the customization_meta.json or _nav.json to control sidebar and navigation labels/order instead of encoding order in filenamestitle and description frontmatter, and set sidebar, outline, navbar, or footer only when page defaults are not enoughpageType: home, doc, doc-wide, custom, or blank intentionally based on layout needsglobalUIComponents or theme overrides instead of repeating imports in each pageLayout slots before ejecting built-in componentstheme/ files, keep export * from '@rspress/core/theme-original' unless intentionally replacing a named exportllms or ssgMd only when the site benefits from machine-readable outputs, and keep descriptions accurate because those outputs surface page summariespublic/ only for assets that must keep stable URL paths, such as favicons, social images, or download filesbase is set@rspress/plugin-preview and @rspress/plugin-api-docgen when interactive demos or API tables are neededrspress dev and rspress build; a page that works in dev can still fail during static generationbase handling before deploymentWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./rsbuild-best-practicesConfigure, review, or troubleshoot Rsbuild applications, including build/dev commands, assets, type checking, and bundle optimization./rsbuild-v2-upgradeUse when upgrading a Rsbuild 1.x project to v2, including dependency and configuration updates.Other plugins' skills for the same job