rspress-docs-generator
Skill97 starsChanged 3 months agoMITView on GitHub
Create a Rspress v2 docs site or maintain existing Rspress v2 documentation for project changes.
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create and maintain Rspress documentation as part of normal project work.
- Distinctive: line 12
Create a new Rspress v2 documentation site for a project that has no docs site yet.
- Distinctive: line 13
Update an existing Rspress v2 docs site for a user-facing feature, API change, CLI change, or PR.
- Very specific: line 21
Search for Rspress config files: rspress.config.ts, .js, .mjs, or .cjs.
- Distinctive: line 27
If no Rspress docs site exists, follow Create New Docs.
- Distinctive: line 28
If a Rspress docs site exists but appears to be v1, follow Rspress Version Guard before editing docs.
- Distinctive: line 29
If a Rspress v2 docs site exists, follow Maintain Docs For PRs.
- Distinctive: line 32
Run the docs build from the Rspress project directory or through the repo's root script.
- Distinctive: line 38
Use the repository's package manager when creating or validating docs:
- Distinctive: line 49
When maintaining docs for a PR, inspect the changed source first, then update the matching docs page and navigation:
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 buildWhen 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.jsonReference
- 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.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- open-spaced-repetition/ts-fsrs★ 84688% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-draft-release-notesSkill
- mdx-to-markdownSkill
- pr-creatorSkill
- release-blog-writerSkill
- rstack-docs-writerSkill
- rstack-eco-ci-debugSkill
- rstack-repo-maintainSkill
- rstack-skill-evaluatorSkill
- migrate-to-rsbuildSkill
- migrate-to-rslibSkill
- migrate-to-rslintSkill
- migrate-to-rstestSkill
- rsbuild-best-practicesSkill
- rsbuild-v2-upgradeSkill
- rsdoctor-analysisSkill
- rsdoctor-v2-upgradeSkill
- rslib-best-practicesSkill
- rslib-modern-packageSkill
- rspack-best-practicesSkill
- rspack-debuggingSkill
- rspack-split-chunksSkill
- rspack-tracingSkill
- rspack-v2-upgradeSkill
- rspress-best-practicesSkill
- rspress-custom-themeSkill
- rspress-description-generatorSkill
- rspress-v2-upgradeSkill
- rstest-best-practicesSkill
- rstest-debuggingSkill
- storybook-rsbuildSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

