rslib-best-practices

Apply Rslib best practices for project configuration and build optimization.

11|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/baranwang/opencode-provider-alias --skill rslib-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rslib-best-practices
Source: https://github.com/baranwang/opencode-provider-alias/tree/main/.agents/skills/rslib-best-practices
Command: npx skills add https://github.com/baranwang/opencode-provider-alias --skill rslib-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides guidelines to improve Rslib project quality, performance, and development workflows.

Core Features & Use Cases

  • Configuration Best Practices: Offers recommendations for efficient Rslib project configurations.
  • CLI Workflow Guidance: Helps streamline local development and build processes.
  • Output Optimization: Suggests best practices for building packages in different formats.
  • Declaration Files Management: Guidelines for generating and managing TypeScript declaration files.
  • Dependency Handling: Instructions for managing project dependencies effectively.
  • Build Optimization: Tips for optimizing build processes.
  • Toolchain Integration: Integrations with Rstest and Rspress for testing and documentation.

Quick Start

Apply these Rslib best practices to optimize your Rslib project configuration and CLI workflow.

Frequently Asked Questions about rslib-best-practices

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

FAQPage Schema
How do I optimize the build process for a TypeScript library using Rslib?

Rslib build optimization involves applying best practices for output configuration, dependency handling, and build processes. This ensures efficient package generation across different formats while maintaining robust software performance.

What is the best way to manage TypeScript declaration files in an Rslib project?

Managing TypeScript declaration files in Rslib requires following specific guidelines for generating and configuring output. Proper declaration file management ensures type safety and maintainability for library consumers.

Can I integrate Rstest and Rspress with my Rslib development workflow?

Yes, Rslib supports toolchain integration with Rstest for testing and Rspress for documentation. These integrations streamline local development workflows and help maintain efficient, well-documented software packages.

How do I configure the CLI workflow for an Rslib library project?

Configuring the Rslib CLI workflow involves applying specific recommendations to streamline local development and build processes. Proper CLI configuration improves project maintainability and development efficiency.

Does Rslib work with TypeScript for building different package output formats?

Yes, Rslib is designed for TypeScript-based library projects and supports building packages in different formats. It provides output optimization best practices to ensure efficient and robust package generation.