agentleFS
web-infra-devweb-infra-dev/rslib/AGENTS.md

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
  1. Very specific:

    Run pnpm lint for linting and pnpm format for formatting.

    line 35
  2. Very specific:

    Do not commit build artifacts (dist/, compiled/).

    line 51

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository guidelines

Setup environment

  1. Install fnm and run fnm install/fnm use to match the Node.js version in .nvmrc (v24.5.0).
  2. Enable Corepack (corepack enable) and then activate pnpm via corepack prepare (the pnpm version is specified in packageManager field in package.json).
  3. Clone the repository and install dependencies with pnpm install from the repository root.

Project structure & module organization

  • Monorepo via the pnpm workspace.
  • packages/core (@rslib/core): CLI entry (rslib, --watch) and programmatic helpers (build, defineConfig, loadConfig).
  • packages/plugin-dts (rsbuild-plugin-dts): provides the dts configuration hook (e.g., { dts: { bundle: true } }).
  • packages/create-rslib (create-rslib): scaffolds new projects via pnpm dlx create-rslib or npx create-rslib.
  • Tests live in packages/*/tests (unit) and tests/ (integration, e2e); examples in examples/.
  • 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) and pnpm 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 test runs the entire suites.
    • pnpm test:unit scopes to unit tests.
    • pnpm test:integration scopes to integration tests; add <pattern> to match specific cases.
    • pnpm test:e2e runs end-to-end tests.

Coding style & naming conventions

  • TypeScript + ESM; spaces; single quotes.
  • Rstack CLI is the canonical linting and formatting tool.
  • Run pnpm lint for linting and pnpm format for formatting.
  • Filenames should use camelCase or PascalCase.

Testing guidelines

  • Unit/integration: @rstest/core; E2E: @playwright/test.
  • Naming: *.test.ts/*.test.tsx; snapshots in __snapshots__/.
  • Placement: unit under packages/*/tests; integration under tests/integration; e2e under tests/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/).

Download now (ZIP)

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 8 mentionsAug 2026: 9 mentionsSep 2026: 8 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the web-infra-dev/rslib repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about web-infra-dev/rslib

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

34 more on GitHub

On Bluesky · 2

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.