Skip to content

Agents

Help coding agents find, add and use the components, with shadcn/ui's tools and these docs as Markdown.

Jarvis UI is a shadcn/ui (opens in a new tab) registry, so the tools shadcn/ui makes for coding agents work with it too. Every page of these docs is also served as Markdown for agents to read.

shadcn's tools

Installation adds the @jarvis registry to your project's components.json. shadcn/ui's tools read the registries listed there, so an agent can find and add the components by name, such as @jarvis/dialog, without being told where the registry is.

Skill

shadcn/ui's skill (opens in a new tab) teaches an agent the shadcn CLI and how a shadcn/ui project fits together. Add it to your project.

The agent loads the skill whenever it works in a project with a components.json. With the skill loaded, the agent runs shadcn info to learn the project's framework, aliases and installed components, and looks up components before writing code with them rather than guessing at their APIs.

MCP server

shadcn/ui's MCP server (opens in a new tab) gives an agent tools to browse, search and add items from the project's registries. Set it up for Claude Code.

--client also takes cursor, vscode, codex and opencode. Then ask for components in plain language:

  • "Show me the components in the @jarvis registry"
  • "Add @jarvis/dialog and @jarvis/form"
  • "Build a settings page with a side nav, using components from @jarvis"

CLI

Agents can run the CLI themselves too. search finds items in a registry, and view shows an item's files and dependencies before it's added.

shadcn docs only covers shadcn/ui's own components, though, and many of them share a name with a Jarvis UI component. For example, shadcn docs button describes shadcn/ui's Button, whose variants and props differ from those of Jarvis UI's Button. Point agents at the Markdown below instead.

Docs as Markdown

Every docs page is also served as Markdown at its URL plus .md: /components/button.md, /docs/theming.md, and /docs.md for the Introduction. In the Markdown, each example is replaced by its source and each props table by a Markdown table, and commands are written for npm. A component's page links to its source on GitHub as well.

Agents don't need to know these addresses. A request that accepts text/markdown gets the Markdown at a page's own URL.

Each page also links to its Markdown with <link rel="alternate" type="text/markdown">, and to /llms.txt with <link rel="describedby">. The responses repeat both links as Link headers.

The Copy page button at the top of each page copies its Markdown. Its menu opens the Markdown, or starts a chat in v0, ChatGPT, Claude, Cursor or Grok that begins by reading the page. On a component's page, the v0 option opens the component's registry item instead.

Registry items

A component's page responds to the shadcn CLI with the component's registry item, so an agent with a link to the page can add the component from that link.

/r/registry.json lists every item, with its files and dependencies.

Telling your agent

Agents read AGENTS.md (or CLAUDE.md, for Claude Code) at the start of each session. A few lines there point them to the right docs.

AGENTS.md