writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
rspress-best-practicesConfigure, review, or troubleshoot Rspress v2 sites, including content conventions, navigation, MDX, assets, search, and deployment.
Independent GitHub snapshot · Automated classification · Original documentation governs
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 deployment