Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
rspress-best-practices【部署与运维】Configure, review, or troubleshoot Rspress v2 sites, including content conventions, navigation, MDX, assets, search, and deployment.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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