Migrate to rslib

From rstackjs/agent-skills · View interactive version

Migrate to rslib is an AI agent skill from the GitHub repository rstackjs/agent-skills. Migrate tsc or tsup library projects to Rslib.

How to use this skill

Skill file

Migrate to Rslib

Goal

Migrate tsc and tsup projects to Rslib with minimal behavior changes and clear verification.

Supported source frameworks

Migration principles (must follow)

  1. Official guide first: treat Rslib migration docs as source of truth.
  2. Smallest-change-first: complete baseline migration first, then migrate advanced or custom behavior.
  3. Do not change business logic: avoid touching source or business logic unless user explicitly asks.
  4. Validate before cleanup: keep old tool dependencies/config temporarily if needed; remove only after Rslib is green.

Workflow

  1. Detect source tool
  1. Apply tool-specific migration deltas
  1. Validate behavior
  1. Cleanup and summarize
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.