rstackjs avatar

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-code

Installs 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

  1. 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 like website/.
  2. Read the config and extract the root option.
    • 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 root is set, resolve it relative to the config file's directory.
    • If root is not set, default to docs relative to the config file's directory.
  3. Confirm the directory exists. If neither docs nor the configured root exists, check for doc as 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

More from rstackjs/agent-skills

All 12
1brianrwagner avatarvoice-extractorbrianrwagner/ai-marketing-claude-code-skillsExtract and document someone's authentic writing voice from samples. Use when someone needs a "voice guide," wants to capture their writing DNA, or needs to tra495skills.sh installs
2ncklrs avatarvsl-storyboard-writerncklrs/startup-os-skillsExpert VSL (Video Sales Letter) and product marketing video storyboard writer. Use when creating sales videos, product demos, explainer videos, social media vid489skills.sh installs
3atlassian avatarsearch-company-knowledgeatlassian/atlassian-mcp-serverSearch across company knowledge bases (Confluence, Jira, internal docs) to find and explain internal concepts, processes, and technical details. When an agent n488skills.sh installs
4mblode avatarcopywritingmblode/agent-skillsWrites and edits short product and marketing copy, including landing pages, CTAs, onboarding strings, product descriptions, email subjects, UI state copy, brand483skills.sh installs
5webmaxru avatarskill-creatorwebmaxru/ai-native-devAuthors and structures professional-grade agent skills following the agentskills.io spec. Use when creating new skill directories, drafting procedural instructi481skills.sh installs
6levnikolaevich avatarln-100-documents-pipelinelevnikolaevich/claude-code-skillsCreates complete project documentation system (project docs, reference, tasks, tests). Use when bootstrapping docs from scratch or regenerating all.479skills.sh installs