AI Agents
Point Claude Code, Cursor, Copilot and other coding agents at these docs, so they use ShellUI Native's components instead of writing their own.
These docs are published for AI coding agents in the llms.txt format. An agent that reads them knows which components exist, how to install one with shellui-native add, and how each one is used on MAUI and on Avalonia, so it doesn't write its own versions.
Set up your project
Coding agents read an instructions file in the project root at the start of every session. Add ShellUI Native's rules to the one your agent reads: they tell it to use the components, check what's installed, and run shellui-native add for anything missing, and they link these docs. Each file is a ## ShellUI Native section, so the commands append it to a file you already have, or create the file.
Claude Code reads CLAUDE.md. Download CLAUDE.md, or run this in the project root:
curl -fsSL https://native.shellui.dev/agents/CLAUDE.md >> CLAUDE.md
Cursor reads rules from .cursor/rules. Download shellui-native.mdc into that folder, or run this in the project root:
curl -fsSL --create-dirs -o .cursor/rules/shellui-native.mdc https://native.shellui.dev/agents/shellui-native.mdc
Copilot reads .github/copilot-instructions.md. Download copilot-instructions.md into .github, or run this in the project root:
mkdir -p .github && curl -fsSL https://native.shellui.dev/agents/copilot-instructions.md >> .github/copilot-instructions.md
Codex and many other agents read AGENTS.md. Download AGENTS.md, or run this in the project root:
curl -fsSL https://native.shellui.dev/agents/AGENTS.md >> AGENTS.md
Or ask the agent
Paste this into your agent to have it read the docs and set up the instructions file itself:
Read https://native.shellui.dev/llms.txt and follow its rules in this project.
Then add the ShellUI Native section from https://native.shellui.dev/agents/AGENTS.md
to the instructions file you read at startup (AGENTS.md, CLAUDE.md or
.github/copilot-instructions.md), creating it if it doesn't exist.
For a one-off task, give it the docs with the task:
Read https://native.shellui.dev/llms.txt, then add a settings page with a form.
What agents can read
| URL | Contents |
|---|---|
/llms.txt |
Rules for agents, then every page of these docs with a one-line description and, for components, the shellui-native add command |
/llms-full.txt |
The rules and every page as Markdown in one file, with the MAUI and Avalonia code of every example |
Any page + .md |
One page as Markdown, for example /docs/components/form/button.md |
Every page also has a ⋯ menu next to its title: Copy page copies its Markdown, View as Markdown opens it, and Open in Claude and Open in ChatGPT start a chat that reads it.
What the rules say
- Look for an existing ShellUI Native component before building any UI element.
- Check
shellui-native.json(orshellui-native list --installed) for what the project has, and runshellui-native add <name>for what it doesn't. Never recreate a component or port one from shadcn/ui or ShellUI for Blazor. - Use the platform's own example and namespace import (MAUI or Avalonia), follow each page's API tables, and style with the theme tokens so dark mode works.