/rstack:rspress-docs-generatorfrom rstack
Creates or maintains Rspress v2 documentation sites by inspecting source code, configs, and PR changes. Reads code, tests, and examples to generate accurate docs.
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.
Read when SKILL.md points to them.
Create and maintain Rspress documentation as part of normal project work. Prefer source-backed docs over generic prose: read the code, tests, examples, package metadata, and existing README before writing.
rspress-v2-upgrade skill.Inspect the project
rspress.config.ts, .js, .mjs, or .cjs.@rspress/core version, legacy rspress package or rspress/* imports, and @rspress/plugin-*.pnpm-lock.yaml, yarn.lock, package-lock.json, bun.lock, bun.lockb) and pnpm-workspace.yaml.root option. When root is absent, inspect package scripts, CI commands, and documented commands for Rspress CLI positional roots such as rspress dev site, rspress build site, or rspress preview site; use that argument before falling back to Rspress's default docs/ directory relative to the config file's project cwd. If no config exists, check common roots such as docs/, doc/, website/, and site/.Choose the correct path
Validate before finishing
Use the repository's package manager when creating or validating docs:
# Create a new Rspress docs site with the detected package manager.
# Replace pnpm with npm, yarn, or bun when that is the repo package manager.
pnpm create rspress@latest
# Validate from the docs project after replacing starter content.
pnpm run build
When maintaining docs for a PR, inspect the changed source first, then update the matching docs page and navigation:
src/formatBytes.ts -> website/docs/api/formatBytes.mdx -> website/docs/api/_meta.json
_nav.json and _meta.json work, with concrete examples for Guide/API sites, grouped sections, and i18n layouts.rspress-v2-upgrade.What 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.Other plugins' skills for the same job