agentleFS
MicrosoftKnown publishermicrosoft/fluentui-system-icons/.github/copilot-instructions.md

fluentui-system-icons

Copilot instructions11k starsChanged 16 months agoMITView on GitHub

Purpose: Enable rapid, correct contributions across multi-platform icon packages (web React, React Native, SVG assets/sprites, Android, iOS, Flutter) generated from a single assets/ source.

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 2 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/fluentui-system-icons repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/fluentui-system-icons

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

See all 22

Talked about on GitHub, Bluesky and Hacker News (22 times).

On GitHub · 17

12 more on GitHub

On Hacker News · 1

The file

We split this copilot-instructions.md into the rules it gives an agent

9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Add raw SVG(s) to appropriate new/existing folder in assets/ (ensure fill #212121).

    line 46
  2. Very specific:

    If React pipelines failed you will probably need to update metadata.json and test snapshot to reflect new assets addition.

    line 53
  3. Very specific:

    Run yarn nx run react-icons:build to regenerate outputs and update snapshots.

    line 55
  4. Very specific:

    Run yarn nx run react-icons:build-verify -u to update snapshots.

    line 56
  5. Very specific:

    Commit generated outputs (generated code is tracked—do not manually edit lib/ outputs.

    line 57
  6. Very specific:

    Prefer changes inside importer/ scripts (e.g., generate.js, generateFont.js) to altering per-package build steps.

    line 61
  7. Distinctive:

    After script changes, rebuild at least one consumer package to ensure no path/flag regressions.

    line 62
  8. Distinctive:

    No asset directories with trailing spaces.

    line 85
  9. Distinctive:

    All new SVGs pass fill rule.

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
copilot-instructions.md

AI Assistant Project Guide: Fluent UI System Icons

Purpose: Enable rapid, correct contributions across multi-platform icon packages (web React, React Native, SVG assets/sprites, Android, iOS, Flutter) generated from a single assets/ source.

Core Architecture

  • Targeted package instructions: see ./react-icons.instructions.md (auto-applies when working inside packages/react-icons).
  • Source of truth: Raw SVG design assets in assets/ (folder names = icon groups). Each icon has metadata (directionality handled via RTL processing scripts) and fixed primary fill #212121 (validation enforced in CI).
  • Generated outputs per platform:
    • React web: @fluentui/react-icons → JSX components + optional font implementation. Build pipeline: asset -> optimized SVG (intermediate/) -> component TS in src/ -> compiled output in lib/ (ESM) & lib-cjs/ (CJS) + fonts/ bundle + merged metadata.json.
    • React Native: Similar SVG -> intermediate/ -> RN components in src/; styling more limited (no Griffel styling utilities).
    • Plain SVG package: @fluentui/svg-icons emits optimized renamed raw SVGs in packages/svg-icons/icons/ following [name]_[size]_[style].svg.
    • Sprites: @fluentui/svg-sprites converts single SVGs to per-icon sprite files: <icon>.sprite.svg for on-demand <use href="/sprites/{id}.sprite.svg#id" /> consumption.
    • Fonts: Generated via importer/generateFont.js (Regular/Filled/Light/Resizable) feeding React font condition and Flutter/iOS/Android.
    • Native (Android/iOS/Flutter): Produced by importer deployment scripts (deploy:android, deploy:ios, deploy:flutter) which transform assets into vector drawables / PDF assets / Dart classes.

Key Workflows (Local)

  • Install deps (root + packages): corepack enable && yarn install --immutable at repo root (yarn 4, nodeLinker: node-modules; npm/pnpm are NOT configured).
  • React icons build (full): yarn nx run react-icons:build. Quick validation only: yarn nx run react-icons:build-verify (output assets and metadata checks).
  • React Native icons build: yarn workspace @fluentui/react-native-icons build.
  • SVG raw assets: yarn workspace @fluentui/svg-icons build.
  • Sprites: yarn workspace @fluentui/svg-sprites build.
  • Importer operations (multi-platform generation & version bumps): cd importer && yarn deploy:android|deploy:ios|deploy:fonts.
  • Clean React icons intermediates: yarn clean in each package (removes generated lib* and intermediate/). Avoid manual deletion to keep scripts deterministic.
  • Package scripts must invoke root-owned binaries as yarn run -T <bin> — yarn puts no node_modules/.bin on PATH. See Single Version Policy.

CI Expectations / Pitfalls

  • PR validation (.github/workflows/pr.yml) enforces: (1) asset folder names not ending with space; (2) all non-color SVGs include fill="#212121" (except *_color.svg which are skipped). Maintain fill when editing SVGs; use scripts (optimize, unfill) instead of hand-edits.
  • React build job runs lint, full build, and build-verify; keep TypeScript version constraints (TS ~4.1) when adding language features.
  • iOS/Android build jobs rely on importer output; ensure importer scripts still produce expected file layout when modifying generation logic.

Conventions & Patterns

  • Icon naming (React / RN): AccessTimeFilled (state suffix) and sized variants AccessTime24Filled. General (resizable) variant without size preferred for flexible UI.
  • Plain SVG file naming: lowercase + underscores from original asset folder; pattern: mail_24_filled.svg.
  • Sprite consumption id pattern: {name}_{size}_{style} (mirrors SVG file stem) reused inside #symbol id.
  • Directionality: rtlMetadata.js generates intermediate/rtl.json; keep this in sync when adding new directional icons. Metadata merging occurs via convert:merge-metadata.
  • Fonts: Four iconType variants (Regular/Filled/Light/Resizable). New styles require updating font generation pipeline (all generate:font-* scripts and metadata merge).
  • Export map (packages/react-icons/package.json exports) uses conditional fluentIconFont; when adjusting build output paths, update both lib and lib-cjs mappings consistently.
  • React styling: Components accept primaryFill, className; compound icon pattern uses bundleIcon(Filled, Regular) plus iconFilledClassName / iconRegularClassName for state toggling.

Typical Change Flow (Add / Update Icons)

  1. Add raw SVG(s) to appropriate new/existing folder in assets/ (ensure fill #212121).
  2. Let CI validate fills & builds.

Optional

NOTE: currently this should not happen as assets it no perceived as nx project thus changing its contents wont trigger affected builds.

If React pipelines failed you will probably need to update metadata.json and test snapshot to reflect new assets addition.

  • Run yarn nx run react-icons:build to regenerate outputs and update snapshots.
  • Run yarn nx run react-icons:build-verify -u to update snapshots.
  • Commit generated outputs (generated code is tracked—do not manually edit lib/ outputs; edit sources or generation scripts instead).

When Modifying Generators

  • Prefer changes inside importer/ scripts (e.g., generate.js, generateFont.js) to altering per-package build steps; keep script flags consistent (--source, --dest, --extension, --target, --iconType).
  • After script changes, rebuild at least one consumer package to ensure no path/flag regressions.

Platform-Specific Notes

  • React Native: Limited styling (no Griffel). Avoid introducing DOM-specific props.
  • iOS: Enum-based access (UIImage(fluent: .appStore24Filled)); asset stripping tool in ios/remove-unused-fluent-icons must still find & parse asset names—keep naming stable.
  • Android: Vector drawable tint placeholder replaced (@color/fluent_default_icon_tint) during finalize step; avoid hardcoding other colors.
  • Flutter: Icon classes generated from font codepoint JSON; if glyph sets change, regenerate fonts first then Flutter classes.

Safe Extensions / Additions

  • New icon style variant: add generation script, extend metadata merge, update exports if needed.
  • New distribution format (e.g., consolidated sprite index): create new package under packages/ and reuse importer/generate.js with new flags.

Avoid

  • Manual edits to generated lib/, lib-cjs/, icons/, sprites/ files.
  • Upgrading TypeScript/Babel broadly without verifying downstream package constraints & CI.
  • Introducing SVG fills other than #212121 (unless *_color.svg purposefully multi-colored).

Quick Validation Checklist Before PR

  • Builds succeed for changed packages.
  • No asset directories with trailing spaces.
  • All new SVGs pass fill rule.
  • React icons build-verify passes.
  • Metadata (metadata.json) updated if generation logic changed.

Releases

For comprehensive release documentation, including versioning strategy, workflow details, and troubleshooting, see Release Process Documentation.

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.