OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add rstackjs/agent-skills --skill rsbuild-best-practices
Configure, review, or troubleshoot Rsbuild applications, including build/dev commands, assets, type checking, and bundle optimization.
npx skills add rstackjs/agent-skills --skill rsbuild-best-practices
Apply these rules when writing or reviewing Rsbuild projects.
rsbuild.config.ts and defineConfigtools.rspack or tools.bundlerChain only when no first-class Rsbuild option existssource.entry values for multi-page applicationstsconfig.json path aliases firstrsbuild for local developmentrsbuild build for production buildrsbuild preview only for local production previewrsbuild inspect to inspect final Rsbuild/Rspack configs@rsbuild/plugin-type-check for integrated dev/build type checkstsc --noEmit/vue-tsc --noEmit as an explicit script stepimport() for non-critical code pathspublicpublic files by absolute URL path.map files to public servers/CDNs when production source maps are enabledDEBUG=rsbuild when diagnosing config resolution or plugin behaviordist/.rsbuild to confirm final config, not assumed config--cpu-prof) when JavaScript-side overhead is suspectedRSPACK_PROFILE=OVERVIEW and analyze trace output for compiler-phase bottlenecks