
rspress-docs-generator
Create a Rspress v2 docs site or maintain existing Rspress v2 documentation for project changes.
- Installs
- 312
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/rstackjs/agent-skills --skill rspress-docs-generator- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads rspress-docs-generator automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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/.
-
Choose the correct path
- If no Rspress docs site exists, follow Create New Docs.
- If a Rspress docs site exists but appears to be v1, follow Rspress Version Guard before editing docs.
- If a Rspress v2 docs site exists, follow Maintain Docs For PRs.
-
Validate before finishing
- Run the docs build from the Rspress project directory or through the repo's root script.
- The build must pass as the primary success criterion.
- Fix broken links, missing navigation entries, invalid frontmatter, and failed MDX imports before reporting completion.
Code examples
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
Reference
- Documentation structure conventions — how
_nav.jsonand_meta.jsonwork, with concrete examples for Guide/API sites, grouped sections, and i18n layouts. - Create New Docs — scaffold a Rspress v2 docs site from an undocumented project.
- Maintain Docs For PRs — update an existing Rspress v2 docs site for feature work.
- Rspress Version Guard — detect v1 sites, avoid stale v1 scaffolds, and hand full migration to
rspress-v2-upgrade.
FAQ
What does the rspress-docs-generator skill do?
Create a Rspress v2 docs site or maintain existing Rspress v2 documentation for project changes.
How do I install rspress-docs-generator?
Run npx skills add https://github.com/rstackjs/agent-skills --skill rspress-docs-generator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/rspress-docs-generator/ (personal) or .claude/skills/rspress-docs-generator/ (project).
Which AI agents can use rspress-docs-generator?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is rspress-docs-generator safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains rspress-docs-generator?
It is published by rstackjs in rstackjs/agent-skills. It has 312 recorded installs.
More from rstackjs/agent-skills
rsbuild-best-practices
rstackjs/agent-skills
Configure, review, or troubleshoot Rsbuild applications, including build/dev commands, assets, type checking, and bundle optimization.
rstest-best-practices
rstackjs/agent-skills
Set up, write, or review Rstest tests and configuration, including environments, mocks, snapshots, coverage, and CI.
rslib-best-practices
rstackjs/agent-skills
Configure, review, or troubleshoot Rslib library builds, output formats, declarations, dependency handling, and integrations.
rspack-best-practices
rstackjs/agent-skills
Configure, review, or troubleshoot Rspack builds, including loaders, CSS, assets, type checking, bundle optimization, and profiling.
rspress-best-practices
rstackjs/agent-skills
Configure, review, or troubleshoot Rspress v2 sites, including content conventions, navigation, MDX, assets, search, and deployment.
rspack-v2-upgrade
rstackjs/agent-skills
Use when upgrading a Rspack 1.x project to v2, including dependency and configuration updates.
Popular docs & writing skills
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
lark-markdown
open.feishu.cn
飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。
writing-beats
mattpocock/skills
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
writing-shape
mattpocock/skills
Writing, exploit: shape raw material into an article, paragraph by paragraph.
writing-fragments
mattpocock/skills
Writing, explore: mine raw fragments, no structure yet.
writing-for-agents
mattpocock/skills
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.