rsbuild-best-practices

rsbuild-best-practices is a skill for Claude Code from rstackjs/agent-skills. It costs 31 tokens per session (443 once invoked), scanned A, original, MIT.

A set of recommendations for configuring and troubleshooting Rsbuild projects. Rsbuild is a build tool that prepares application source code and assets for development or production.

In plain words
What is it for?
It covers configuration files, development and production commands, entry points, TypeScript checks, dynamic imports, browser targets, asset paths, and source maps.
Why use it?
It helps keep build configuration maintainable while addressing type checks, browser compatibility, bundle size, assets, and debugging.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rstack plugin — 31 skills shipped together

not rated 97repo changed 1mo ago A scan Socket: passSnyk: passSkillSpector: pass 31 tokens original MIT

Good fit It covers configuration files, development and production commands, entry points, TypeScript checks, dynamic imports, browser targets, asset paths, and source maps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rstackjs/agent-skills/rsbuild-best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rstackjs/agent-skills --skill rsbuild-best-practices
Clone the repo
git clone --depth 1 https://github.com/rstackjs/agent-skills

Made for: Claude Code.

Or install rstack, the plugin that ships this one along with the rest of its 31 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rsbuild-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/rstackjs/agent-skills/rsbuild-best-practices/github.svg)](https://agentmods.dev/skills/rstackjs/agent-skills/rsbuild-best-practices)
Your own site
<a href="https://agentmods.dev/skills/rstackjs/agent-skills/rsbuild-best-practices"><img src="https://agentmods.dev/badge/skills/rstackjs/agent-skills/rsbuild-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rsbuild-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/rstackjs/agent-skills/rsbuild-best-practices"><img src="https://agentmods.dev/badge/skills/rstackjs/agent-skills/rsbuild-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00443
Opus 5.5 $0.00012 $0.00177
Sonnet 5.5 $0.00006 $0.00089
Haiku 4.5 $0.00003 $0.00044

Measured 1mo ago against content hash 1fd88bc09ba1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rsbuild-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/rsbuild-best-practices/SKILL.md · 58 lines

What it actually says

Rsbuild best practices

Apply these rules when writing or reviewing Rsbuild projects.

Configuration

  • Use rsbuild.config.ts and defineConfig
  • Use tools.rspack or tools.bundlerChain only when no first-class Rsbuild option exists
  • Define explicit source.entry values for multi-page applications
  • In TypeScript projects, prefer tsconfig.json path aliases first

CLI

  • Use rsbuild for local development
  • Use rsbuild build for production build
  • Use rsbuild preview only for local production preview
  • Use rsbuild inspect to inspect final Rsbuild/Rspack configs

Type checking

  • Use @rsbuild/plugin-type-check for integrated dev/build type checks
  • Or run tsc --noEmit/vue-tsc --noEmit as an explicit script step

Bundle size optimization

  • Prefer dynamic import() for non-critical code paths
  • Prefer lightweight libraries where possible
  • Keep browserslist aligned with real compatibility requirements

Asset management

  • Import source-managed assets from project source directories, not from public
  • Reference public files by absolute URL path

Security

  • Do not publish .map files to public servers/CDNs when production source maps are enabled

Debugging

  • Run with DEBUG=rsbuild when diagnosing config resolution or plugin behavior
  • Read generated files in dist/.rsbuild to confirm final config, not assumed config

Profiling

  • Use Node CPU profiling (--cpu-prof) when JavaScript-side overhead is suspected
  • Use RSPACK_PROFILE=OVERVIEW and analyze trace output for compiler-phase bottlenecks

Documentation

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 1fd88bc09ba1
  2. 1mo ago Changed · -9 tokens per session 7df8530c2eb2
  3. 2mo ago First seen · 58 lines · 40 tokens per session scan A 4c0fbe9f344c

Subscribe to this mod's changes

rsbuild-best-practices is a skill published in the GitHub repository rstackjs/agent-skills (97 stars, last pushed 9d ago), licensed MIT. It adds 31 tokens to every session and 443 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

cwv-optimizer

Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…

adobe/skills · 112 tokens

incident-response-incident-response

Coordinate production incident triage, mitigation, investigation, recovery, and follow-up. Use when responding to outages or other incidents that require structured operational coordination.

rmyndharis/antigravity-skills · 36 tokens

ci-fixer

CI failures - read error, minimal fix, verify.

sipyourdrink-ltd/bernstein · 15 tokens

diagnosing-missing-recordings

Diagnoses why a session recording is missing or was not captured. Use when a user asks why a session has no replay, why recordings aren't appearing, or wants to troubleshoot session replay capture issues for a specific session ID or across their project. Covers SDK diagnostic signals, project settings, sampling…

PostHog/posthog · 76 tokens