Set Up With an Agent
What the setup prompts do, and the notes they leave for your coding agent.
Copy a prompt from Get Started or the Copy prompt button on the homepage, and paste it into your agent. Each prompt sets up one library, then points the agent at the docs it should read before it builds anything.
What the Prompts Do
Agent UI:
- Runs
npx shadcn@latest initif the project has nocomponents.json. - Adds the
@kind-uiregistry tocomponents.json. - Adds a first component,
@kind-ui/conversation, or@kind-ui/conversation-webfor Web Components. - Tells the agent to follow the
AGENTS.mdthe registry writes, and to read/docs/agent-ui/llms.txtbefore it uses a component.
Charts:
- Installs
@kind-ui/charts. - Adds an
@sourcefor the package to your Tailwind stylesheet. - Installs the Charts skill if the agent supports skills.
- Adds a note to your
AGENTS.md: follow the skill, and read/docs/charts/llms.txtbefore using Charts.
The AGENTS.md From the Registry
Every Agent UI component depends on the agent-ui-setup registry item, so the first one you add also writes an AGENTS.md beside the components. It tells agents to read, before they change or compose a component:
- The
@kind-ui/agent-uiREADME, for the package's entries, theme tokens and styles. - The UI SDK skill, at
node_modules/@ui-sdk/core/skills/ui-sdk/SKILL.md. - UI SDK's
llms.txtfor React or Web Components, then the page of every UI SDK component they use.
It also tells them to leave focus, keyboard, popups, announcements and ARIA to UI SDK instead of writing them by hand.
Keep these notes in your repository, so every agent that opens the project reads them.