agentleFS
MicrosoftKnown publishermicrosoft/fluentui-react-native/packages/agentic/components/AGENTS.md

fluentui-react-native / components

AGENTS.md1.4k starsChanged 6 months agoMITView on GitHub

These instructions apply to packages/agentic/components and its descendants. Keep this file limited to durable package invariants; detailed authoring recipes live in the agentic component authoring skill. - Higher-order components live in src/components; read src/components/AGENTS.md. - Primitive components live in src/primitives; read src/primitives/AGENTS.md. - Story files are library source and follow the tests and stories reference. - Focus work starts with the common focus instructions, then the Windows/Win32 or macOS detail. V1 Win32 is the behavioral baseline for both Windows endpoints;…

Trending

Quiet since March.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/fluentui-react-native repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/fluentui-react-native

The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 24

Talked about on GitHub and Bluesky (24 times).

On GitHub · 23

18 more on GitHub

On Bluesky · 1

The file

We split this AGENTS.md into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use stable testID selectors and the injected target platform for real platform differences, with explicit skips for unsupported …

    line 19
  2. Distinctive:

    Keep callbacks self-contained.

    line 27
  3. Distinctive:

    Create or revise source-backed contracts through the agentic component contract authoring skill.

    line 38
  4. Very specific:

    Use the repository's flex-authoring profile and flex-components:<name> only for a pinned Flex/X3 source.

    line 42
  5. Distinctive:

    Follow SPEC-SOURCE.md for provenance fields, contract lifecycle, review state, and drift commands.

    line 49
  6. Very specific:

    Read the component SPEC.md, spec/source.json, and all referenced React Native companions before changing its contract.

    line 51
  7. Very specific:

    Use src/components/button as the canonical higher-order implementation and src/primitives/icon as the canonical primitive.

    line 53
  8. Distinctive:

    Keep public props and slots small, typed, and spec-driven.

    line 55
  9. Distinctive:

    Use package scripts for format, lint, build, tests, and snapshots.

    line 65
  10. Distinctive:

    Do not copy web-only APIs, CSS behavior, or DOM assumptions into React Native.

    line 66
  11. Distinctive:

    Do not copy or mechanically transform private source bodies into this public package.

    line 67

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

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

Agentic Components authoring

These instructions apply to packages/agentic/components and its descendants. Keep this file limited to durable package invariants; detailed authoring recipes live in the agentic component authoring skill.

Routing

  • Higher-order components live in src/components; read src/components/AGENTS.md.
  • Primitive components live in src/primitives; read src/primitives/AGENTS.md.
  • Story files are library source and follow the tests and stories reference.
  • Focus work starts with the common focus instructions, then the Windows/Win32 or macOS detail. V1 Win32 is the behavioral baseline for both Windows endpoints; renderer-specific plumbing remains separate.
  • Author executable tests under top-level wdio, as one callback or a map of named callbacks. All catalog tests use this pattern; legacy parameters.desktopDriver plans remain only in runner compatibility fixtures. Use stable testID selectors and the injected target platform for real platform differences, with explicit skips for unsupported capabilities.
  • Shared focus tests run on macOS, Windows, and Win32. Gate only genuine platform-specific assertions, such as Windows pointer-focus, rather than the entire case. Follow the tests-and-stories reference for native activation timing, macOS Keyboard navigation prerequisites, and pass/skip evidence.
  • Executable tests are typed with WdioStory from storybook-desktop/testing using import type. Keep callbacks self-contained; dynamically import Node helpers inside them so the shared Babel transform can exclude them from native bundles. Each named case gets a fresh story, session, and worker; do not share native element handles or depend on previous cases.
  • Storybook application, native project, Metro, bundle, or CocoaPods work follows the Storybook instructions and the agentic-storybook-development skill.
  • Native React Native Windows Fabric component work follows the Windows Fabric native component reference.

Package invariants

  • Create or revise source-backed contracts through the agentic component contract authoring skill. It routes Flex/X3, Fluent v9, HTML/CSS, visual, local-foundation, and composite evidence before implementation.
  • Use the repository's flex-authoring profile and flex-components:<name> only for a pinned Flex/X3 source. It is not a prerequisite for other source adapters.
  • A theme-aware foundational component that has no Flex catalog entry must use a sole validator-backed local-foundation entry in sources[]. Cite its public platform contract and repository evidence; never invent a flex-components:<name> skill or bypass the component contract gate.
  • Follow SPEC-SOURCE.md for provenance fields, contract lifecycle, review state, and drift commands.
  • Read the component SPEC.md, spec/source.json, and all referenced React Native companions before changing its contract.
  • Use src/components/button as the canonical higher-order implementation and src/primitives/icon as the canonical primitive.
  • Keep public props and slots small, typed, and spec-driven.
  • This package targets React 19.1.4 or newer. Expose a stable native root ref through the ref prop, receive it as part of the component props, and forward it to the declared root slot. Do not use forwardRef.
  • Export higher-order components and public types explicitly from src/index.ts; export primitives and their public types explicitly from src/primitives/index.ts. Never use wildcard exports.
  • Colocate runtime tests, type tests, and Storybook stories with the implementation.
  • Include every test-bearing story in tsconfig.stories.json. The representative runner contract rejects legacy catalog plans and missing story type coverage.
  • Node-only shared test helpers use *.wdio.ts, are excluded from production emit, and are imported dynamically inside the stripped callbacks.
  • Use package scripts for format, lint, build, tests, and snapshots.
  • Do not copy web-only APIs, CSS behavior, or DOM assumptions into React Native.
  • Do not copy or mechanically transform private source bodies into this public package. Record source identifiers and digests, then author the local React Native contract.

Download now (ZIP)

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.