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

fluentui-react-native / primitives

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

These instructions apply to packages/agentic/components/src/primitives and its descendants. Use primitives/icon as the canonical implementation. - Primitives are public only from @fluentui-react-native/components/primitives; do not re-export them from the package root. - Give primitive components stable public names. Suffix public composition helpers whose contracts may evolve with _unstable, matching higher-order component pipeline helpers. - Maintain a colocated CONTRACT.md for every public primitive. Derive its test obligations from that contract, its public types, and each renderer branch rather than creating an upstream-backed SPEC.md.…

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

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Prefer a hook-free directComponent when the primitive only selects an inner component or transforms props.

    line 16
  2. Distinctive:

    Keep alternative source or renderer props mutually exclusive.

    line 21
  3. Very specific:

    Add compile-time SlotProp coverage and runtime coverage for every renderer branch.

    line 22

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

Primitive component authoring

These instructions apply to packages/agentic/components/src/primitives and its descendants. Use primitives/icon as the canonical implementation.

Non-negotiable invariants

  • Primitives are public only from @fluentui-react-native/components/primitives; do not re-export them from the package root.
  • Give primitive components stable public names. Suffix public composition helpers whose contracts may evolve with _unstable, matching higher-order component pipeline helpers.
  • Maintain a colocated CONTRACT.md for every public primitive. Derive its test obligations from that contract, its public types, and each renderer branch rather than creating an upstream-backed SPEC.md.
  • Primitives are unstyled building blocks. Do not read themes, apply design tokens, or choose product appearance defaults.
  • Define the smallest acceptance contract needed for SlotProp consumption.
  • Prefer a hook-free directComponent when the primitive only selects an inner component or transforms props.
  • For a primitive with one stable native root type, include PropsWithRefOf<typeof Root> in its public props and pass the React 19.1.4 ref prop to that root without forwardRef. A primitive whose renderer does not have one stable imperative instance type must omit ref and document that exception in its CONTRACT.md.
  • Forward accessibility and test props without replacing consumer values.
  • Keep alternative source or renderer props mutually exclusive.
  • Add compile-time SlotProp coverage and runtime coverage for every renderer branch.
  • Demonstrate the primitive in Storybook without adding component-level styling.
  • FocusVisual mounts configured ring Views eagerly, owns accessibility and hit testing, and changes only opacity when focus visibility changes. Keep token selection and component-specific ring geometry in the consuming component.
  • Extract a new primitive only when multiple components share a stable behavioral or structural contract and the public abstraction is smaller than the duplication. Keep one-off helpers and component-specific behavior local.

Focused references

  • Types and slots
  • Rendering and assembly
  • Tests and stories

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.