migrate-to-rslib
Skill97 starsChanged 3 months agoMITView on GitHub
Migrate tsc or tsup library projects to Rslib.
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Official guide first: treat Rslib migration docs as source of truth.
- Distinctive: line 21
Do not change business logic: avoid touching source or business logic unless user explicitly asks.
- Distinctive: line 22
Validate before cleanup: keep old tool dependencies/config temporarily if needed.
- Distinctive: line 41
Run build command to verify the project builds successfully.
- Distinctive: line 42
If issues remain, compare the old project configuration with the migration guide and complete any missing mappings.
- Distinctive: line 45
Remove obsolete dependencies/config only after validation passes.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migrate to Rslib
Goal
Migrate tsc and tsup projects to Rslib with minimal behavior changes and clear verification.
Supported source frameworks
- tsc
- tsup
Migration principles (must follow)
- Official guide first: treat Rslib migration docs as source of truth.
- Smallest-change-first: complete baseline migration first, then migrate advanced or custom behavior.
- Do not change business logic: avoid touching source or business logic unless user explicitly asks.
- Validate before cleanup: keep old tool dependencies/config temporarily if needed; remove only after Rslib is green.
Workflow
- Detect source tool
tsup- Config:
tsup.config.* - Dependency:
tsup - Build script: uses
tsupto build projects
- Config:
tsc- Config:
tsconfig.jsonortsconfig.*.json - Dependency:
typescript - Build script: uses
tscto build projects. And it should be noted thattscused only for type checking (e.g.,tsc --noEmit) does not make it atscbuild project.
- Config:
- Apply tool-specific migration deltas
- tsc:
references/tsc.md - tsup:
references/tsup.md
- tsc:
- Validate behavior
- Run build command to verify the project builds successfully.
- If issues remain, compare the old project configuration with the migration guide and complete any missing mappings.
- Cleanup and summarize
- Remove obsolete dependencies/config only after validation passes.
- Summarize changed files, mapped options, and any remaining manual follow-ups.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-draft-release-notesSkill
- mdx-to-markdownSkill
- pr-creatorSkill
- release-blog-writerSkill
- rstack-docs-writerSkill
- rstack-eco-ci-debugSkill
- rstack-repo-maintainSkill
- rstack-skill-evaluatorSkill
- migrate-to-rsbuildSkill
- migrate-to-rslintSkill
- migrate-to-rstestSkill
- rsbuild-best-practicesSkill
- rsbuild-v2-upgradeSkill
- rsdoctor-analysisSkill
- rsdoctor-v2-upgradeSkill
- rslib-best-practicesSkill
- rslib-modern-packageSkill
- rspack-best-practicesSkill
- rspack-debuggingSkill
- rspack-split-chunksSkill
- rspack-tracingSkill
- rspack-v2-upgradeSkill
- rspress-best-practicesSkill
- rspress-custom-themeSkill
- rspress-description-generatorSkill
- rspress-docs-generatorSkill
- rspress-v2-upgradeSkill
- rstest-best-practicesSkill
- rstest-debuggingSkill
- storybook-rsbuildSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

