사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/rstackjs/agent-skills --skill rspress-docs-generator시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
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.



