rspress-docs-generator
Installation
SKILL.md
Rspress Docs Generator
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.
Use Cases
- Create a new Rspress v2 documentation site for a project that has no docs site yet.
- Update an existing Rspress v2 docs site for a user-facing feature, API change, CLI change, or PR.
- Detect Rspress v1 version markers before documentation work and hand migration to the dedicated
rspress-v2-upgradeskill. - Integrate Rspress documentation into an Rslib package or workspace while preserving the repository's package manager and scripts.
Workflow
- Inspect the project
- Locate package files, source entry points, examples, tests, changelogs, and README files.
- Search for Rspress config files:
rspress.config.ts,.js,.mjs, or.cjs. - Inspect dependencies for Rspress version markers:
@rspress/coreversion, legacyrspresspackage orrspress/*imports, and@rspress/plugin-*. - Detect the package manager and workspace setup from lock files (
pnpm-lock.yaml,yarn.lock,package-lock.json,bun.lock,bun.lockb) andpnpm-workspace.yaml. - If a config exists, resolve the docs root from its
rootoption. Whenrootis absent, inspect package scripts, CI commands, and documented commands for Rspress CLI positional roots such asrspress dev site,rspress build site, orrspress preview site; use that argument before falling back to Rspress's defaultdocs/directory relative to the config file's project cwd. If no config exists, check common roots such asdocs/,doc/,website/, andsite/.