rnx-kit
AGENTS.md1.7k starsChanged 9 months agoMITView on GitHub
This file provides guidance to agents when working with code in this repository. rnx-kit is a monorepo of React Native tooling created by Microsoft. It provides battle-tested tools for dependency management, Metro bundling enhancements, TypeScript integration, and cross-platform development (iOS, Android, macOS, Windows). - packages/ - Stable, published packages (e.g., @rnx-kit/cli, @rnx-kit/align-deps, @rnx-kit/metro-*) - incubator/ - Experimental packages (marked with "experimental": true in package.json) - scripts/ - Internal build tooling (rnx-kit-scripts CLI) - docsite/ - Documentation website (separate Yarn workspace…
Trending
More talk lately.about the whole repository
Who's talking about microsoft/rnx-kit
- microsoft/react-native-windows“Expo support”GitHub · Aug 3, 2024 · 27 reactions
- react-native-linear-gradient/react-native-linear-gradient“This package is unmaintained and causes significant degradation in app start up time.”GitHub · Aug 4, 2022 · 13 reactions
- nrwl/nx“16.4: Failed to process the project graph with "nx-js-graph-plugin"”GitHub · Jul 6, 2023 · 6 reactions
- react/react-native“fix: limit diagnostics width output by `hermesc`”GitHub · May 23, 2023 · 3 reactions
- @githubfeed.bsky.social“🚀 GitHub Intelligence Drop fabric8 (Unknown • 🟡) ⭐ 1.8K → https://github.com/fabric8io/fabric8 rnx-kit …”Bluesky · May 11, 2026 · 2 likes
The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 26
Talked about on GitHub and Bluesky (26 times).
On GitHub · 25
- Aug 3, 2024Expo support — microsoft/react-native-windows27 reactions · 9 comments
- Aug 4, 2022This package is unmaintained and causes significant degradation in app start up time. — react-native-linear-gradient/react-native-linear-gradient13 reactions · 4 comments
- Jul 6, 202316.4: Failed to process the project graph with "nx-js-graph-plugin" — nrwl/nx6 reactions · 25 comments
- May 23, 2023fix: limit diagnostics width output by `hermesc` — react/react-native3 reactions · 2 comments
- Feb 5, 2025Add support for `react-native` 0.79 — microsoft/react-native-test-app2 reactions
20 more on GitHub
- Nov 7, 2023Migrate to @rnx-kit/chromium-edge-launcher for Windows fix — react/react-native2 reactions · 12 comments
- Dec 2, 2022fix(internal, dangerfile): fix changelog entries for dangerfiles and PR template — react/react-native2 reactions · 3 comments
- Jul 22, 2022esbuild: Moving to @rnx-kit/metro-serializer-esbuild — infinitered/ignite2 reactions · 5 comments
- Apr 1, 2022feat: add "clean" command — react-native-community/cli2 reactions · 3 comments
- Feb 1, 2022[Releases] Add path-specified filters to `rn-changelog-generator` — react/react-native2 reactions · 4 comments
- Feb 1, 2022[Releases] Add `--output` flag to `rn-changelog-generator` — react/react-native2 reactions
- Jan 25, 2024feat: add support for bridgeless mode — microsoft/react-native-test-app1 reaction · 1 comment
- Oct 18, 2023Add support for `react-native` 0.74 — microsoft/react-native-test-app1 reaction · 1 comment
- Oct 10, 2023Add support for `react-native` 0.73 — microsoft/react-native-test-app1 reaction
- Dec 2, 2022fix changelog entries — react/react-native-website1 reaction · 1 comment
- May 28, 2022feat: add `require.context` support — react/metro1 reaction · 10 comments
- May 25, 2022[snackager] correct output with package type: module — expo/snack1 reaction · 3 comments
- Oct 1, 2026📦 Bump the all-dependencies group across 1 directory with 10 updates — microsoft/react-native-windows0 reactions · 1 comment
- Sep 28, 2026Bump @rnx-kit/align-deps from 3.4.8 to 4.2.0 — SimonAdrell/Dicy0 reactions · 1 comment
- Sep 10, 2026Add support for `react-native` 0.88 — microsoft/react-native-test-app0 reactions
- Jun 19, 2026chore(deps-dev): bump @rnx-kit/metro-config from 2.1.1 to 2.2.4 — react-native-menu/menu0 reactions
- Jul 25, 2024Bump the rnx-kit group across 1 directory with 3 updates — samuelfreiberg/fluentui-react-native0 reactions · 1 comment
- Jul 4, 2024📦 Bump the rnx-kit group across 1 directory with 3 updates — tudorms/react-native-windows0 reactions · 1 comment
- Jun 27, 2024Bump the rnx-kit group with 2 updates — rurikoaraki/fluentui-react-native0 reactions · 1 comment
- Jun 7, 2024Bump the rnx-kit group across 1 directory with 3 updates — FalseLobster/fluentui-react-native0 reactions · 1 comment
On Bluesky · 1
- May 11, 2026🚀 GitHub Intelligence Drop fabric8 (Unknown • 🟡) ⭐ 1.8K → https://github.com/fabric8io/fabric8 rnx-kit (TypeScript • 🟢) ⭐ 1.7K →… — @githubfeed.bsky.social2 likes and reposts
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- incubator/fork-sync/CLAUDE.mdCLAUDE.md
The file
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
- could be automatic: a setting could enforce it
- Very specific: line 64
Run specific test: yarn test path/to/file.test.ts (from package directory)
- Very specific: line 175
Run yarn format and yarn lint before committing
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
AGENTS.md
This file provides guidance to agents when working with code in this repository.
Project Overview
rnx-kit is a monorepo of React Native tooling created by Microsoft. It
provides battle-tested tools for dependency management, Metro bundling
enhancements, TypeScript integration, and cross-platform development (iOS,
Android, macOS, Windows).
Repository Structure
packages/- Stable, published packages (e.g.,@rnx-kit/cli,@rnx-kit/align-deps,@rnx-kit/metro-*)incubator/- Experimental packages (marked with"experimental": truein package.json)scripts/- Internal build tooling (rnx-kit-scriptsCLI)docsite/- Documentation website (separate Yarn workspace with its ownyarn.lock; not in rootworkspaces).changeset/- Changeset configuration for versioning
Build System
Uses Nx for task orchestration with Yarn Berry workspaces. Node linker
is pnpm. Requires Node.js >=18.12.
TypeScript compilation uses @typescript/native-preview (tsgo) by default.
The --with-tsc flag falls back to standard tsc (only metro-config uses
this).
Key Commands (Repository Root)
yarn # Install dependencies
yarn build # Build all packages
yarn build-scope <pkg> # Build specific package with dependencies (e.g., yarn build-scope @rnx-kit/cli)
yarn test # Build and test all packages
yarn lint # Lint all packages
yarn format # Format all packages with Prettier
yarn clean # Clean build artifacts (git clean)
yarn show-affected # Show affected projects
yarn update-readme # Regenerate API docs in READMEs (TypeDoc)Package-Level Commands
yarn build # Build current package only
yarn build --dependencies # Build current package and its dependencies
yarn test # Run tests
yarn lint # Lint current package
yarn format # Format current packageRunning Tests
- Default test runner: Node.js built-in test runner (
node:test) — most packages use this - Jest: Used by ~7 packages that have
"jest"inpackage.jsonor ajest.config.js - The
rnx-kit-scripts testcommand auto-detects which runner to use - Tests live in
test/directories with.test.tsextension - Run specific test:
yarn test path/to/file.test.ts(from package directory)
Node test runner style:
import { equal } from "node:assert/strict";
import { describe, it } from "node:test";CI Commands
yarn build:ci # Build and test affected packages
yarn build:ci:all # Build and test ALL packages
yarn bundle:ci # Bundle affected packages
yarn change:check # Verify change files exist for modified packagesPackage Conventions
- Each package uses
rnx-kit-scriptsfor build/test/lint/format commands - TypeScript source in
src/, compiled output inlib/ - Entry point typically at
src/index.ts - Standard dev dependencies:
@rnx-kit/eslint-config,@rnx-kit/scripts,@rnx-kit/tsconfig @rnx-kit/jest-presetis only added when a package uses Jest (not default)eslint.config.jsre-exports@rnx-kit/eslint-config- Published packages use a
"typescript"export condition pointing tosrc/index.tsfor development - Files named
types.tsenforce the@rnx-kit/type-definitions-onlyESLint rule (only type exports allowed)
Creating New Packages
yarn new-package <name> # Creates in packages/
yarn new-package <name> --experimental # Creates in incubator/Uses packages/template as baseline. Sets version to 0.0.1, adds experimental
banner for incubator packages.
Change Management
Uses Changesets for versioning:
yarn change # Create change file for PROne change file per feature/fix; no need for multiple entries when addressing PR
feedback. Releases are automated via CI — on merge to main, the changesets
action creates a release PR or publishes to npm.
Ignored packages (no changesets needed): @rnx-kit/ignore, @rnx-kit/template,
test apps.
Key Packages
@rnx-kit/cli- Main CLI (rnx-cli) integrating all tools@rnx-kit/align-deps- Dependency version alignment across repos@rnx-kit/metro-*- Metro bundler plugins (TypeScript, config, tree-shaking, duplicate detection, cyclic deps)@rnx-kit/tools-*- Platform-specific utilities (android, apple, node, react-native, filesystem, shell, workspaces, etc.)@rnx-kit/config- Configuration loading frompackage.jsonrnx-kitfield@rnx-kit/eslint-plugin- Custom ESLint rules (no-foreach-with-captured-variables,type-definitions-only)@rnx-kit/typescript-react-native-resolver- TypeScript resolver for React Native
Dependency Alignment
The repo uses align-deps to maintain consistent dependency versions. Run from
root:
yarn rnx-align-deps --write # Fix misaligned dependenciesQuality Checks
These all run in CI and should pass before merging:
yarn format # Prettier formatting
yarn lint # ESLint
yarn rnx-align-deps --write # Dependency alignment
yarn constraints --fix # Yarn constraints (consistent author, homepage, repository fields)
yarn knip # Detect unused dependencies
yarn dedupe --check # Prevent package duplicates in lockfile
node scripts/lint-tsconfig.ts # Validate TypeScript configs
yarn update-readme # Regenerate API docsCI uses suggestion-bot to post code review suggestions for format,
constraints, align-deps, and readme issues.
Platform-Specific Notes
- Test apps:
packages/test-app(iOS/Android),packages/test-app-macos,packages/test-app-windows - Native builds require platform toolchains (Xcode, Android Studio, Visual Studio)
- CocoaPods installation is handled in CI via
microsoft/react-native-test-appGitHub actions
Code Style
- Prettier for formatting, ESLint for linting
- Run
yarn formatandyarn lintbefore committing - Prettier config:
.github/prettierrc.json(usesprettier-plugin-organize-imports) - ESLint config:
packages/eslint-config/(combines@microsoft/eslint-plugin-sdlwith@rnx-kit/eslint-plugin)
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.

