rspress-examples

Generate compilable Twoslash code examples for RSPress documentation pages.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/spencerbeggs/claude-design-coordinator --skill rspress-examples
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: rspress-examples
Source: https://github.com/spencerbeggs/claude-design-coordinator/tree/main/.claude/skills/rspress-examples
Command: npx skills add https://github.com/spencerbeggs/claude-design-coordinator --skill rspress-examples

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates complete, compilable Twoslash code examples for RSPress documentation pages, enabling accurate, type-checked demonstrations without manual setup.

Core Features & Use Cases

  • Type-rich Twoslash examples with full type checking and auto-loaded dependencies
  • Progressive complexity from basic to advanced scenarios, plus error-handling cases
  • Tight integration with design.config.json and rspress.config.ts to pull configuration and dependencies for docs

Quick Start

Run the rspress-examples skill to generate a basic Twoslash example for a module by specifying the module name and scenario.

Frequently Asked Questions about rspress-examples

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Twoslash code examples for RSPress documentation?▼

To generate Twoslash code examples for RSPress, use the rspress-examples skill to produce complete, compilable, type-checked demonstrations by parsing parameters and auto-loading dependencies.

What are Twoslash code examples and why use them in TypeScript documentation?▼

Twoslash code examples are TypeScript documentation snippets that provide full type checking and auto-loaded dependencies, enabling accurate, ready-to-publish demonstrations without manual setup.

Can I generate RSPress examples with progressive complexity from basic to advanced scenarios?▼

Yes, generating RSPress examples with progressive complexity is supported. The skill handles multi-scenario workflows, producing basic, advanced, and error-handling Twoslash examples for documentation pages.

Does generating Twoslash examples integrate with rspress.config.ts and design.config.json?▼

Yes, Twoslash example generation tightly integrates with rspress.config.ts and design.config.json, pulling configuration and dependencies to produce ready-to-publish documentation pages.

What's the best way to add error-handling Twoslash examples to RSPress docs?▼

The best way to add error-handling Twoslash examples to RSPress docs is running the rspress-examples skill, which handles dependency loading and parameter parsing to output complete, compilable error cases.

Why are my manually written Twoslash examples not compiling in RSPress?▼

Manually written Twoslash examples may fail to compile in RSPress due to missing type checking or dependency loading; the rspress-examples skill resolves this by auto-loading dependencies and verifying compilability.