Index of every page on this site: llms.txt
All skills
Run it yourself

Work with Rspress v2 projects. Use when creating or editing Rspress documentation, especially when deciding where files belong or writing Markdown/MDX content.

  • 1 file
  • 8.6 KB
  • Updated 3 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/mikoto2000/agent-skills/rspress

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈42 tokens for metadata: the name and description. ≈2.2k when used: this file.

Description uses 2.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈169 characters, or 2.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Rspress v2

This skill assumes Rspress v2.

It defines only:

  • common Rspress v2 directory structure
  • Markdown/MDX conventions used by Rspress v2

Do not use this skill for plugin development, build troubleshooting, theme development, or Rsbuild configuration.

Directory structure

A typical Rspress v2 project may look like:

.
├── package.json
├── rspress.config.ts
├── docs/
│   ├── index.md
│   ├── guide/
│   │   └── index.md
│   └── public/
└── theme/

The actual documentation root is defined by the project configuration.

Do not assume docs/ if the repository uses another root.

rspress.config.ts

Rspress configuration is typically defined in:

rspress.config.ts

Do not place documentation content in this file.

Documentation root

Markdown and MDX documentation pages belong under the configured documentation root.

A common example is:

docs/

Example:

docs/
├── index.md
├── getting-started.md
├── guide/
│   ├── index.md
│   └── configuration.md
└── reference/
    └── api.md

Directory structure generally corresponds to URL structure.

For example:

docs/index.md
docs/guide/index.md
docs/guide/configuration.md

typically represents pages conceptually corresponding to:

/
/guide/
/guide/configuration

Follow the existing project structure rather than reorganizing documents unnecessarily.

public

Static files that should be served directly can be placed under the documentation root's public directory.

Typical example:

docs/
└── public/
    ├── logo.svg
    ├── images/
    │   └── architecture.png
    └── files/
        └── example.zip

Files under public are referenced from the site root.

For example:

![Architecture](/images/architecture.png)

Do not include public itself in the URL.

Use the project's existing asset convention when one already exists.

theme

Project-level theme customizations may be placed in:

theme/

Do not place ordinary documentation pages under theme/.

Theme implementation is outside the scope of this skill.

Markdown and MDX

Rspress v2 documentation is written primarily in Markdown and MDX.

Use .md for ordinary documentation where possible.

Use .mdx when JSX or React components are required.

Headings

Use Markdown headings normally.

# Page title

## Section

### Subsection

Prefer one top-level # heading for a page unless the existing project uses another convention.

Do not skip heading levels unnecessarily.

Prefer:

## Section

### Detail

over:

## Section

#### Detail

Paragraphs

Separate paragraphs with a blank line.

First paragraph.

Second paragraph.

Do not rely on source line breaks alone to create separate paragraphs.

Emphasis

**bold**

*italic*

`inline code`

Use inline code for:

  • commands
  • filenames
  • configuration keys
  • class names
  • function names
  • package names

when appropriate.

Lists

Unordered list:

- Alpha
- Beta
- Gamma

Ordered list:

1. First
2. Second
3. Third

Nested lists must be indented consistently.

- Parent
  - Child
  - Child

Links (Anchor tags)

Use normal Markdown links.

[Rspress](https://rspress.rs/)

For documentation pages within the same site, prefer relative links when practical.

[Configuration](./configuration.md)

or:

[Configuration](../guide/configuration.md)

Follow the existing project's link convention.

Images

Use normal Markdown image syntax when no special component is required.

![Description](./image.png)

For assets under public:

![Description](/images/image.png)

Always provide meaningful alt text unless the image is purely decorative.

Code blocks

Use fenced code blocks.

```java
public class Example {
}
```

Specify the language when known.

Common examples:

```ts
const value = 1;
```

```json
{
  "enabled": true
}
```

```bash
npm run build
```

Do not indent ordinary fenced code unnecessarily.

Showing Markdown syntax literally

When documenting fenced code blocks themselves, use a longer outer fence.

Example:

````markdown
```plantuml
Alice -> Bob
```
````

The outer fence must contain more backticks than the inner fence.

Tables

Standard Markdown tables can be used.

| Name | Description |
| --- | --- |
| Alpha | First item |
| Beta | Second item |

Keep tables reasonably narrow.

For complex content, prefer normal document sections over very wide tables.

Blockquotes

> This is a quote.

Do not use blockquotes merely for visual indentation.

Horizontal rules

Use:

---

only when a structural separator is genuinely useful.

Do not overuse horizontal rules between ordinary sections.

Frontmatter

Rspress pages may contain YAML frontmatter at the beginning of the file.

Example:

---
title: Getting Started
---

# Getting Started

Frontmatter must appear before page content.

Preserve existing frontmatter fields when editing a document.

Do not invent project-specific frontmatter fields unless their use is already established in the repository.

Common page title behavior

If the page already uses frontmatter for the title, follow the project's existing convention regarding whether an explicit # heading is also present.

Do not automatically duplicate or remove titles.

MDX

Use .mdx when the page needs JSX or React components.

Example:

<MyComponent />

## Section

Normal Markdown can continue here.

MDX supports JavaScript expressions using {}.

The result is {value}.

Because MDX treats JSX and JavaScript specially, characters that are harmless in plain Markdown may have different meaning in MDX.

Do not convert .md files to .mdx without a concrete need.

JSX components

React components can appear directly in MDX.

<Example foo="bar" />

Use the component conventions already established by the project.

Do not invent component names or imports without checking the existing codebase.

HTML-like syntax

In MDX, tags may be interpreted as JSX.

For example:

<div>Content</div>

Treat such constructs as JSX-compatible markup.

Do not assume arbitrary HTML syntax accepted elsewhere will necessarily compile unchanged in MDX.

Escaping and literal examples

Documentation frequently needs to show syntax that Rspress or MDX would otherwise interpret.

Use fenced code blocks for literal examples.

Prefer:

```text
<Component />
```

over trying to escape every character inline.

This is especially important when documenting:

  • Markdown
  • MDX
  • JSX
  • directives
  • PlantUML
  • configuration files

File naming

Follow the existing repository convention.

Prefer predictable lowercase names unless the project uses another style.

Examples:

getting-started.md
configuration.md
api-reference.md

Avoid gratuitous renames of existing pages.

For section landing pages, use the convention already present in the repository, commonly:

guide/index.md

Creating new pages

When adding a new documentation page:

  1. identify the correct location under the documentation root
  2. follow neighboring filenames
  3. follow neighboring frontmatter conventions
  4. follow neighboring heading style
  5. use relative links consistent with nearby documents
  6. place related static assets according to the existing project convention

Do not create new top-level directories when an appropriate existing section already exists.

Editing existing pages

When editing documentation:

  • preserve unrelated content
  • preserve frontmatter
  • preserve existing link style
  • preserve local terminology
  • preserve the established heading structure where possible
  • avoid reformatting unrelated sections

Keep changes scoped to the requested documentation change.

Rspress-specific extensions

A project may provide additional Markdown syntax through plugins.

Examples may include:

  • reStructuredText-style directives
  • PlantUML fences
  • custom components
  • additional remark or rehype processing

Do not infer their syntax from this skill.

Use the corresponding project-specific skill or existing documentation for those extensions.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 11d1757. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago

README badge

README badge for mikoto2000/agent-skills/rspress