Use with AI
PUI publishes plain-text files, an installer and agent rules made for AI tools.
Install in a project
The pui command sets up a React + Tailwind v4 project and adds components from the PUI registry.
Set up the project (style, cn(), AGENTS.md, CLAUDE.md, Magoo MCP)
npx @aline-aroucha/pui initAdd components
npx @aline-aroucha/pui add button card inputAdd every component
npx @aline-aroucha/pui add --allUpdate installed components
npx @aline-aroucha/pui add --all --overwriteFiles for agents
Index for LLMs
https://aline-aroucha.github.io/pui/llms.txtAll documentation in one file
https://aline-aroucha.github.io/pui/llms-full.txtProject rules (AGENTS.md)
https://aline-aroucha.github.io/pui/AGENTS.mdTokens as JSON
https://aline-aroucha.github.io/pui/tokens.jsonCSS with the tokens (globals.css)
https://aline-aroucha.github.io/pui/globals.cssMake the agent follow the rules
pui initwritesAGENTS.mdand aCLAUDE.mdthat imports it, so Claude Code and Codex pick up the rules automatically.- For Cursor, save the same text as
.cursor/rules/pui.mdc. For GitHub Copilot, as.github/copilot-instructions.md. pui initalso adds the read-only Magoo MCP to.mcp.json, so agents can check keyboard, screen reader and acceptance criteria while they build.- To let agents find and install PUI components on their own,
pui initregisters@puiincomponents.json; turn on the shadcn MCP withnpx shadcn@latest mcp init. - Every page on this site has a Markdown twin: use Copy for LLM at the top of a page, or replace
.htmlwith.mdin its address.
Registry
{
"registries": {
"@pui": "https://aline-aroucha.github.io/pui/r/{name}.json"
}
}
Suggested first prompt
Use the PUI design system. Read https://aline-aroucha.github.io/pui/llms-full.txt before you start.
Use only components from @/components/ui, color only through tokens (bg-primary, text-muted-foreground…),
US English UI copy, one primary action per area, and Magoo behavior for every component.