
Rspress Description Generator
If you're running an Rspress documentation site, every page needs a description in its frontmatter for SEO snippets, social previews, and AI indexing formats like llms.txt. This skill scans your docs directory, detects i18n structure if present, and generates description metadata for any file missing it. It knows to skip shared snippets and config files, pulls context from hero sections on home pages, and writes descriptions in the same language as the content. The instructions are thorough on YAML formatting and length constraints (50-160 characters), with solid guidance on writing specific, no-fluff descriptions that actually help search engines and readers. Useful for batch-updating existing sites or ensuring new doc pages ship complete.
- skills.sh installs
- 515
- GitHub stars
- 98
- last updated
- Aug 21, 2026
Install
$ npx -y skills add rstackjs/agent-skills --skill rspress-description-generator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Rspress description generator
The description field in Rspress frontmatter generates <meta name="description" content="..."> tags, which are used for search engine snippets, social media previews, and AI-oriented formats like llms.txt.
Step 1 — locate the docs root
- Find the Rspress config file. Search for
rspress.config.ts,.js,.mjs, or.cjs. It may be at the project root or inside a subdirectory likewebsite/. - Read the config and extract the
rootoption.- The value might be a plain string (
root: 'docs') or a JS expression (root: path.join(__dirname, 'docs')). In either case, determine the resolved directory path. - If
rootis set, resolve it relative to the config file's directory. - If
rootis not set, default todocsrelative to the config file's directory.
- The value might be a plain string (
- Confirm the directory exists. If neither
docsnor the configured root exists, check fordocas a fallback.
Step 2 — detect i18n structure
Rspress i18n projects place language subdirectories (e.g., en/, zh/) directly under the docs root:
docs/
├── en/
│ ├── guide/
│ └── index.md
└── zh/
├── guide/
└── index.md
Sponsors
Details
- Repository
- github.com/rstackjs/agent-skills
- Categories
- Documentation, AI & Agent Building, Automation & Workflows, Marketing & SEO
- First seen
- Jun 3, 2026