AI & LLMs
FluentUI Svelte publishes documentation written for AI coding agents: a skill with the rules and pitfalls of the library, and a Markdown version of every page. With them, an agent writes code against the real API instead of guessing it from other Fluent UI libraries.
Agent skill
Install the skill and your agent (Claude Code, Codex, Cursor, GitHub Copilot and many more) loads the setup, the conventions every component shares, the common pitfalls and the component index whenever it works with the library.
npx skills add JLAcostaEC/fluentui-svelte --skill fluentui-svelte The skill reads each component guide from node_modules, so the guide always matches the version you installed.
Keep the skill in sync with the package
The skill also ships inside the npm package. The experimental_sync command of the skills CLI links it into your project, so it updates every time you update fluentui-svelte.
npx skills experimental_sync To sync it after every install, add it to the prepare script of your package.json:
{
"scripts": {
"prepare": "svelte-kit sync && skills experimental_sync -y"
}
} Sync is a preview of the skills CLI: its name and options may change.
Markdown files
The site publishes its documentation as plain Markdown too, following the llms.txt proposal, so an agent can read it without parsing HTML.
| URL | Content |
|---|---|
/llms.txt | The index: a short summary of the library and a link to every Markdown file. |
/llms-full.txt | The global guide and every component guide in one file, to paste into a chat. |
/docs/llms.md | The global guide: setup, shared conventions, pitfalls and the index of components. It is the body of the skill. |
/docs/components/<name>.md | The guide of one component, with its usage, examples and props. Same URL as its page, plus .md. |
Every component page also has a Copy as Markdown button, to paste its guide into a chat, and a View as Markdown link.
Inside the package
The npm package ships the same files, so they always match the version you installed:
node_modules/fluentui-svelte/skills/fluentui-svelte/SKILL.md
node_modules/fluentui-svelte/dist/components/<name>/docs/llms.md Without the skill
Agents without skill support can still find the docs. Add this to your AGENTS.md, CLAUDE.md or .github/copilot-instructions.md:
This project uses fluentui-svelte for its UI. Before writing UI code, read
node_modules/fluentui-svelte/skills/fluentui-svelte/SKILL.md, then the
docs/llms.md of every component you use (that file lists where they are).
