Rspress Best Practices logo

Rspress Best Practices

Organization
rstackjs
rspress-best-practices

Configure, review, or troubleshoot Rspress v2 sites, including content conventions, navigation, MDX, assets, search, and deployment.

Overview

Publisherrstackjs
Repositoryagent-skills
Skill namerspress-best-practices
Stars
93
Forks
4
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by rstackjs on GitHub. Read the source before you install it.

Installation

Install the Rspress Best Practices AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rstackjs/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/rspress-best-practices .claude/skills/rspress-best-practices
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rspress Best Practices in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rspress Best Practices on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rspress Best Practices is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Rspress best practices

Apply these rules when writing or reviewing Rspress (v2) sites.

Configuration

  • Use rspress.config.ts and defineConfig from @rspress/core
  • Set root explicitly when docs are not under the default docs/ directory
  • Keep site-wide settings such as title, description, icon, logo, base, and lang in config instead of repeating them in page files
  • Prefer first-class Rspress options before custom theme code or low-level bundler overrides
  • Keep custom theme code in a top-level theme/ directory and import original theme pieces from @rspress/core/theme-original

CLI

  • Use rspress dev for local development
  • Use rspress build for production output
  • Use rspress preview only for local preview of the built site
  • Use rspress eject only when CSS variables, class overrides, or layout wrapping cannot solve the customization

Docs structure and navigation

  • Keep docs content under one clear docs root and group pages by topic or workflow, not by team ownership
  • Use _meta.json or _nav.json to control sidebar and navigation labels/order instead of encoding order in filenames
  • Put reusable MDX snippets or shared components in shared files instead of duplicating them across pages
  • Keep landing pages concise and link to deeper task-oriented guides from them

Writing and frontmatter

  • Add clear title and description frontmatter, and set sidebar, outline, navbar, or footer only when page defaults are not enough
  • Use pageType: home, doc, doc-wide, custom, or blank intentionally based on layout needs
  • Write task-first headings and short intros; avoid marketing-heavy copy in technical docs
  • Prefer one topic per page and split overly long pages by workflow or feature area
  • Keep code examples minimal, runnable, and version-accurate

MDX and components

  • Use MDX for interactive docs and embedded components, but keep the main narrative understandable as plain markdown
  • Prefer documented Rspress theme/runtime APIs over importing from internal source paths
  • For app-wide UI or providers, use globalUIComponents or theme overrides instead of repeating imports in each page

Theme and styling

  • Prefer CSS variables for brand colors, spacing, and surface styling
  • Prefer BEM class overrides or Layout slots before ejecting built-in components
  • In theme/ files, keep export * from '@rspress/core/theme-original' unless intentionally replacing a named export
  • Avoid full component ejection unless config, CSS, and wrapping cannot meet the requirement

I18n, Search, And AI

  • For multilingual sites, organize locale content under per-language directories and keep navigation mirrored where practical
  • Keep descriptions and other frontmatter text in the same language as the page content
  • Configure search intentionally: use local search for small or medium sites, and hosted search when scale or cross-version indexing requires it
  • Enable llms or ssgMd only when the site benefits from machine-readable outputs, and keep descriptions accurate because those outputs surface page summaries

Assets and public files

  • Import source-managed images and components from docs/theme source when they belong to the content
  • Use public/ only for assets that must keep stable URL paths, such as favicons, social images, or download files
  • Reference public assets by absolute site path and make sure they still work when base is set

Plugins and integration

  • Prefer official Rspress plugins for search, preview, and API-doc scenarios before building custom solutions
  • For component or library docs, use @rspress/plugin-preview and @rspress/plugin-api-docgen when interactive demos or API tables are needed
  • Keep plugin usage explicit in config and remove unused plugins to reduce maintenance cost

Build, Deploy, And debugging

  • Validate both rspress dev and rspress build; a page that works in dev can still fail during static generation
  • Verify broken links, missing assets, and wrong base handling before deployment
  • Keep generated output out of source control unless the hosting workflow explicitly requires committed artifacts
  • When debugging content issues, inspect the resolved docs root, frontmatter, and theme overrides before assuming a bundler problem

Documentation

  • For the latest Rspress docs, read https://rspress.rs/llms.txt
  • Use the config and API docs when checking exact option names or current behavior

Frequently asked questions

What does the Rspress Best Practices AI skill do?

Configure, review, or troubleshoot Rspress v2 sites, including content conventions, navigation, MDX, assets, search, and deployment.

Why use Rspress Best Practices on TypingMind?

Because you install it once and use it with any model. Rspress Best Practices is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rspress Best Practices in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/rstackjs/agent-skills/tree/main/skills/rspress-best-practices. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Rspress Best Practices?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rspress Best Practices?

As many as you like. As long as a model supports skills, you can use Rspress Best Practices with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rspress Best Practices AI skill free?

Yes. It is published on GitHub by rstackjs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇