agentleFS
MicrosoftKnown publishermicrosoft/fluentui-react-native/.github/skills/agentic-component-optimization/SKILL.md

agentic-component-optimization

Skill1.4k starsChanged 6 months agoMITView on GitHub

Analyze and optimize packages/agentic/components as a whole when repeated patterns, dependency direction, or extraction boundaries cross components.

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 skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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. Distinctive:

    Use this skill when a change is about the package as a system, not a single component fix.

    line 9
  2. Very specific:

    Read packages/agentic/components/AGENTS.md and packages/agentic/components/src/AGENTS.md.

    line 15
  3. Very specific:

    Read the relevant component or primitive AGENTS.md file and the colocated SPEC.md files for the affected area.

    line 16
  4. Distinctive:

    Prefer extraction only when the repeated shape is stable and shared across multiple components.

    line 41
  5. Distinctive:

    Before extracting, confirm that the change:

    line 45
  6. Distinctive:

    Do not extract when the code is:

    line 54
  7. Distinctive:

    If the work is just a tiny component edit, stop at the component instructions and do not run a whole-package audit.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
SKILL.md

Agentic component optimization

Use this skill when a change is about the package as a system, not a single component fix. It helps decide whether repeated code belongs in src/common, @fluentui-react-native/framework-base, or @fluentui-react-native/design/styling, and whether a primitive or helper should exist at all.

Read first

  1. Read packages/agentic/components/AGENTS.md and packages/agentic/components/src/AGENTS.md.
  2. Read the relevant component or primitive AGENTS.md file and the colocated SPEC.md files for the affected area.
  3. Inspect the canonical implementations:
    • packages/agentic/components/src/components/button
    • packages/agentic/components/src/primitives/icon

Audit checklist

1. Dependency direction

  • Production source may depend only on React / React Native native components, @fluentui-react-native/design, and @fluentui-react-native/framework-base.
  • Generalizable non-styling hooks belong in framework-base/src/hooks.
  • Styling helpers belong in agentic/design/src/styling.
  • Component-library-specific non-public types, constants, and helpers belong in packages/agentic/components/src/common.

2. Repetition and ownership

Look for repeated:

  • types and discriminated unions
  • constants and default tables
  • state routines and prop normalization
  • slot wiring or subtree assembly
  • primitive behaviors or structural contracts

Prefer extraction only when the repeated shape is stable and shared across multiple components.

3. Validate extraction payoff

Before extracting, confirm that the change:

  • reduces repeated logic without widening public APIs
  • preserves component-qualified exports and call sites
  • improves dependency direction instead of hiding it
  • keeps the resulting abstraction smaller than the duplication it replaces

4. Do-not-extract criteria

Do not extract when the code is:

  • one-off component behavior
  • a styling decision that belongs in the owning component
  • a public prop contract or display-specific variant
  • a thin wrapper around a single native element
  • easier to read in place than through another helper

Output

Return a short recommendation with:

  • what to keep local
  • what to move to shared package/common code
  • whether the extraction is worth doing now
  • any public API or dependency risks

If the work is just a tiny component edit, stop at the component instructions and do not run a whole-package audit.

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.