rslib
AGENTS.md1k starsChanged 19 days agoMITView on GitHub
See .agents/skills/pr-creator/SKILL.md for the full branching, commit message, and PR creation workflow.
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Run pnpm lint for linting and pnpm format for formatting.
- Very specific: line 51
Do not commit build artifacts (dist/, compiled/).
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md 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
Repository guidelines
Setup environment
- Install fnm and run
fnm install/fnm useto match the Node.js version in.nvmrc(v24.5.0). - Enable Corepack (
corepack enable) and then activate pnpm viacorepack prepare(the pnpm version is specified inpackageManagerfield inpackage.json). - Clone the repository and install dependencies with
pnpm installfrom the repository root.
Project structure & module organization
- Monorepo via the
pnpmworkspace. packages/core(@rslib/core): CLI entry (rslib,--watch) and programmatic helpers (build,defineConfig,loadConfig).packages/plugin-dts(rsbuild-plugin-dts): provides thedtsconfiguration hook (e.g.,{ dts: { bundle: true } }).packages/create-rslib(create-rslib): scaffolds new projects viapnpm dlx create-rslibornpx create-rslib.- Tests live in
packages/*/tests(unit) andtests/(integration,e2e); examples inexamples/. - Key configuration files:
rstack.config.ts,pnpm-workspace.yaml.
Build, test, and development commands
- Install:
pnpm install(all packages will be built in postinstall). - Build:
pnpm build(all) andpnpm build:examples. - Watch dev:
pnpm -C packages/core dev(or other package). - Lint/format:
pnpm lint; auto-fix:pnpm format. - Type-check:
pnpm lint. - Tests:
pnpm testruns the entire suites.pnpm test:unitscopes to unit tests.pnpm test:integrationscopes to integration tests; add<pattern>to match specific cases.pnpm test:e2eruns end-to-end tests.
Coding style & naming conventions
- TypeScript + ESM; spaces; single quotes.
- Rstack CLI is the canonical linting and formatting tool.
- Run
pnpm lintfor linting andpnpm formatfor formatting. - Filenames should use
camelCaseorPascalCase.
Testing guidelines
- Unit/integration:
@rstest/core; E2E:@playwright/test. - Naming:
*.test.ts/*.test.tsx; snapshots in__snapshots__/. - Placement: unit under
packages/*/tests; integration undertests/integration; e2e undertests/e2e. - Target specific integration cases:
pnpm test:integration <pattern>(faster than the full suite).
Commit & pull request guidelines
See .agents/skills/pr-creator/SKILL.md for the full branching, commit message, and PR creation workflow.
Security & configuration tips
- Do not commit build artifacts (
dist/,compiled/).
Trending
Less talk lately.about the whole repository
Who's talking about web-infra-dev/rslib
- @rspack.dev“🎉 Rslib v0.1 is now public! The goal of Rslib is to create JavaScript libraries in an simple and intuitive …”Bluesky · Nov 21, 2024 · 24 likes
- ruanyf/weekly“【开源自荐】Rslib - JavaScript 软件包构建工具”GitHub · Dec 13, 2024 · 4 reactions
- web-infra-dev/rspack“perf: introduce `ModuleGraphCache` and cache the result of `get_mode` and `determine_export_assignments`”GitHub · Jun 5, 2025 · 3 reactions
- @rspack.dev“Try it out: github.com/web-infra-de...”Bluesky · Feb 11, 2025 · 3 likes
- web-infra-dev/rsbuild“chore(deps): update dependency @rslib/core to v1.0.0-beta.0”GitHub · Jul 16, 2026 · 2 reactions
The biggest 5 of 41 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 41
Talked about on GitHub and Bluesky (41 times).
On GitHub · 39
- Dec 13, 2024【开源自荐】Rslib - JavaScript 软件包构建工具 — ruanyf/weekly4 reactions
- Jun 5, 2025perf: introduce `ModuleGraphCache` and cache the result of `get_mode` and `determine_export_assignments` — web-infra-dev/rspack3 reactions · 5 comments
- Jul 16, 2026chore(deps): update dependency @rslib/core to v1.0.0-beta.0 — web-infra-dev/rsbuild2 reactions · 1 comment
- May 21, 2026chore: restore Renovate workspace scanning — web-infra-dev/rsbuild2 reactions
- Apr 8, 2026chore(deps): update Rslib 0.21.0 — web-infra-dev/rsbuild2 reactions · 1 comment
34 more on GitHub
- Apr 7, 2026feat(create-rsbuild): add rsbuild best practices skill — web-infra-dev/rsbuild2 reactions
- Sep 3, 2025fix: respect to `jsc.output.charset` in swc loader — web-infra-dev/rspack2 reactions · 3 comments
- Jun 7, 2025chore(deps): update @rslib/core to 0.9.2 — web-infra-dev/rsbuild2 reactions · 1 comment
- Oct 30, 2026chore(deps): update dependency @rslib/core to ~1.0.5 — web-infra-dev/rstest1 reaction · 2 comments
- Oct 14, 2026chore(deps): update dependency @rslib/core to ~1.0.3 — web-infra-dev/rstest1 reaction · 2 comments
- Sep 3, 2026chore(deps): upgrade Rslib to 1.0.0 — web-infra-dev/rspack1 reaction · 4 comments
- Sep 3, 2026chore(deps): upgrade Rslib to v1.0.0 — web-infra-dev/rsbuild1 reaction · 1 comment
- Sep 3, 2026chore(deps): update Rslib to v1.0.0 — web-infra-dev/rsdoctor1 reaction · 3 comments
- Sep 3, 2026chore(deps): update Rslib to 1.0.0 — web-infra-dev/rstest1 reaction · 2 comments
- Sep 3, 2026chore(deps): upgrade Rslib to 1.0.0 — rstackjs/rstack-cli1 reaction · 2 comments
- Sep 3, 2026chore: use a tilde range for Rslib — rstackjs/rslib-stackblitz-example1 reaction · 1 comment
- Sep 3, 2026chore(deps): upgrade @rslib/core to 1.0.0 — web-infra-dev/rslint1 reaction
- Sep 3, 2026chore: upgrade Rslib to v1.0.0 — rstackjs/rslib-stackblitz-example1 reaction · 1 comment
- Aug 31, 2026fix(core): restore defineConfig completions — web-infra-dev/rstest1 reaction · 2 comments
- Aug 27, 2026chore(deps): update dependency @rslib/core to v1.0.0-rc.2 — web-infra-dev/rstest1 reaction · 1 comment
- Aug 19, 2026refactor(create-rstack): align library templates with Rslib — rstackjs/rstack-cli1 reaction · 1 comment
- Aug 13, 2026chore(deps): upgrade Rslib to 1.0.0-beta.3 — web-infra-dev/rsbuild1 reaction
- Aug 13, 2026fix(build): disable Rslib createRequire parser — web-infra-dev/rstest1 reaction · 1 comment
- Aug 10, 2026fix(addon-rslib): support configs without lib — rstackjs/storybook-rsbuild1 reaction · 2 comments
- Aug 6, 2026chore(deps): upgrade Rslib to 1.0.0-beta.2 — rstackjs/rstack-cli1 reaction · 1 comment
- Aug 6, 2026chore(deps): upgrade Rslib to v1.0.0-beta.2 — web-infra-dev/rsbuild1 reaction
- Aug 4, 2026chore(build): enable createRequire parser in Rslib builds — web-infra-dev/rspack1 reaction · 3 comments
- Jul 30, 2026chore(ci): speed up Playwright browser setup — web-infra-dev/rsdoctor1 reaction · 1 comment
- Jul 30, 2026chore(ci): use system Chrome for E2E tests — rstackjs/rsbuild-plugin-rsc1 reaction · 1 comment
- Jul 23, 2026chore(deps): upgrade Rslib to 1.0.0-beta.1 — web-infra-dev/rspack1 reaction · 3 comments
- Jul 23, 2026refactor(core): output declaration files to dist — web-infra-dev/rsbuild1 reaction · 1 comment
- Jul 23, 2026chore(deps): upgrade Rslib to 1.0.0-beta.1 — web-infra-dev/rspress1 reaction · 2 comments
- Jul 23, 2026chore(deps): upgrade Rslib to 1.0.0-beta.1 — web-infra-dev/rsbuild1 reaction · 1 comment
- Jul 22, 2026refactor(core/rsbuild): reuse Rsbuild restart lifecycle — web-infra-dev/rspress1 reaction · 7 comments
- Nov 7, 2025Module Federation type issue with @module-federation/rsbuild-plugin — module-federation/core1 reaction · 3 comments
- Sep 3, 2025[Bug]: can't resolve project's tsconfig path correctly — web-infra-dev/rstest0 reactions
- Jun 14, 2025[Bug]: Dead link check does not support index conventions — web-infra-dev/rspress0 reactions
- Nov 20, 2024[Bug]: Abnormal jump positions when click link that contains anchor — web-infra-dev/rspress0 reactions
- Nov 12, 2024[Feature]: Support passing getResolve in external function — web-infra-dev/rspack0 reactions · 1 comment
On Bluesky · 2
- Nov 21, 2024🎉 Rslib v0.1 is now public! The goal of Rslib is to create JavaScript libraries in an simple and intuitive way. It currently supports:… — @rspack.dev24 likes and reposts · 1 reply
- Feb 11, 2025Try it out: github.com/web-infra-de... — @rspack.dev3 likes and reposts
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- create-draft-release-notesSkill
- pr-creatorSkill
- releaseSkill
- rspress-description-generatorSkill
- rstack-cli-docsSkill
- rstack-docs-writerSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

