rstack-repo-maintain
БесплатноБез исполняемых скриптовНе проверенAudit or modernize Rstack repository infrastructure, package manifests, build/test tooling, CI, and release configuration against maintained baselines.
от rstackjs★ 101 звезда на GitHubОб этом скилле
Rstack repo maintain
Overview
Modernize RstackJS repositories without blindly copying config. Use the target's compatibility surface plus current exemplar repositories to make small, verifiable infrastructure upgrades.
Baseline evidence
Read references/repo-baselines.md when choosing a template repo, explaining where the baseline came from, or deciding between pure ESM and dual output, standalone tools and Rstack CLI, runtime floors, TypeScript majors, formatters, package validation, or CI patterns.
Read references/package-json-baseline.md when auditing or changing package.json, checking whether dependencies are current, choosing an @rsbuild/core peer range, or validating published package contents.
Default starting points:
- Large monorepo and integrated-tooling baseline:
web-infra-dev/rsbuild. Use its Rstack CLI, pnpm catalog, supply-chain,oxfmt, and CI patterns selectively; do not treat it as a drop-in small-package template. - Primary standalone small-package baseline:
rstackjs/rslog. - Pure ESM and Node 20 plugin package baseline:
rstackjs/rsbuild-plugin-publint. - Concise AGENTS.md and publint reference:
rstackjs/rslog, after checking that its prose still matches its configs. - Additional package validation reference:
rstackjs/rsbuild-plugin-arethetypeswrong. - Generated-artifact CLI reference:
rstackjs/prebundle. - Dual-package compatibility reference:
rstackjs/rsbuild-plugin-virtual-module.
Always re-check the target repo and exemplar repo before editing. The reference file is a dated snapshot, not a permanent source of truth.
Workflow
Inventory the target repo
- Read
package.json, lockfile,pnpm-workspace.yaml,.node-version,.rstack/**,rstack.config.*,rslib.config.*,rslint.config.*,rstest.config.*,vitest.config.*,jest.config.*,playwright.config.*,tsconfig*.json,.github/workflows/*,README.md,AGENTS.md, release config, and source entry points. - Identify package kind: library, Rsbuild/Rspack plugin, CLI, app template, test fixture, or docs package.
- List current build, lint, typecheck, test, release, and package manager commands before changing them.
- For published packages, map
files,bin,types, and everyexportstarget to the source or generated artifact that provides it.
- Read
Choose the migration target
- Use the standalone lane for focused packages that are already clear with direct Rslib, Rslint, and Rstest configs.
- Consider the Rstack CLI lane for multi-package repositories that benefit from shared build/test config, unified type-aware linting, staged-file handling, and hook setup. Require each migrated command to have an equivalent Rstack CLI path; do not add the CLI merely to match Rsbuild.
- Prefer pure ESM for modern libraries and plugins when consumers can support it.
- Use dual package output only as a deliberate transition when existing CommonJS consumers or public exports require it.
- Treat runtime support, package exports, CLI bins, side effects, and documented deep imports as compatibility constraints.
Update the infrastructure in small layers
- Package manifest: follow
references/package-json-baseline.md. Select the matching core/CLI, plugin, or library profile; check metadata and published entry points; separate npm release freshness from compatibility ranges; and update the manifest and lockfile together. Use@rsbuild/coreas live evidence, not as a field-for-field template for every package. - Build tooling: in the standalone lane, use Rslib, keep config minimal, set appropriate
lib.syntax, emit declarations, and alignpackage.json#exportswith real output. In the integrated lane, userstack.config.ts,define.lib, and sharedrstack/libconfig only when that reduces duplicated configuration. Addrsbuild-plugin-publintwhen the package should validate publish metadata during build. When upgrading@rslib/corefrom 0.x to1.0.0-betaor another v1 prerelease, follow the official Rslib v0-to-v1 upgrade guide and audit every listed breaking default instead of treating it as a routine dependency bump. - Linting: in the standalone lane, use
@rslint/coreandts.configs.recommended; addjs.configs.recommendedonly when JavaScript source or config files are intentionally linted. In the integrated lane, use the repository's supportedrs lintcommand and preserve type-check coverage. - Formatting: preserve the repository's formatter unless the migration explicitly includes formatter replacement. Current Rsbuild uses
oxfmt, while maintained standalone packages may use Prettier or dprint. Keep generated artifacts and lock files ignored where appropriate. - Test tooling: prefer Rstest for JavaScript/TypeScript unit tests in Rstack repositories. When a repo still uses Vitest or Jest, use the
migrate-to-rstestsk
- Package manifest: follow
Установить rstack-repo-maintain в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл rstack-repo-maintain?
Audit or modernize Rstack repository infrastructure, package manifests, build/test tooling, CI, and release configuration against maintained baselines.
Как установить скилл rstack-repo-maintain?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rstack-repo-maintain запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic