microsoft/lint-check
Run lint on affected packages, parse errors, and auto-fix common issues (design tokens, React.FC, SSR safety, import restrictions)
npx skills add https://github.com/microsoft/fluentui --skill lint-check
Run linting and fix common issues for Fluent UI packages.
$ARGUMENTS is provided, lint that specific package. Otherwise, lint affected packages: # Specific package
yarn nx run @fluentui/$ARGUMENTS:lint
# Or affected packages
yarn nx affected -t lint
| Rule | What it catches | How to fix |
| --------------------------------------- | ------------------------------------------- | ----------------------------------------------------- |
| @fluentui/ban-context-export | Context exported from wrong layer | Move to react-shared-contexts package |
| @fluentui/ban-instanceof-html-element | instanceof HTMLElement (breaks iframes) | Use element.tagName or feature detection |
| @fluentui/no-global-react | React.FC, React.useState etc. | Use named imports: import { useState } from 'react' |
| @fluentui/no-restricted-imports | Banned import paths | Use the allowed import path from the error message |
| @fluentui/no-context-default-value | Context created without undefined default | Use createContext(undefined) and add a guard hook |
packages/eslint-plugin/src/rules/Take microsoft/lint-check from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.