---
name: devvarena-ui
description: Set up Devvarena UI in React and Next.js projects and use its registry components consistently in future interface work.
---

# Devvarena UI

Use this skill when adding Devvarena UI to an app or building with its installed components. The registry copies source into the app. Installed source and its exports are the ground truth for the version in use.

## Set up a project

1. Inspect the app's package manifest, lockfile, `components.json`, global CSS, installed components, and agent instructions. In a monorepo, run the setup from the target app. Devvarena currently targets React 19 or later, Tailwind CSS v4, and shadcn theme variables. Follow the [setup guide](https://ui.devvarena.com/docs/getting-started) for missing prerequisites. Preserve the app's framework, theme, aliases, and existing shadcn configuration.
2. Use the existing package manager to run the shadcn CLI. Install the missing starter items as a batch. For npm, use:

   ```sh
   npx shadcn@latest add \
     https://ui.devvarena.com/api/r/button \
     https://ui.devvarena.com/api/r/select \
     https://ui.devvarena.com/api/r/input \
     https://ui.devvarena.com/api/r/textarea \
     https://ui.devvarena.com/api/r/checkbox \
     https://ui.devvarena.com/api/r/dialog \
     https://ui.devvarena.com/api/r/badge
   ```

   Use the equivalent runner for Bun, pnpm, or Yarn. Inspect existing files before installation. Keep customized copies, review collisions, and skip overwrites unless the user requests a migration. Let the registry install shared component dependencies.
3. In the target app, save this skill as `.agents/skills/devvarena-ui/SKILL.md` and merge the following guidance into its existing `AGENTS.md`. Keep the rest of that file intact. If the agent does not load skills automatically, `AGENTS.md` still tells it where to read this skill:

   > For new UI work in this app, prefer installed Devvarena UI components. Read `.agents/skills/devvarena-ui/SKILL.md` before choosing or installing components. Review all published examples for the relevant component before choosing a composition. Consult UI SDK only for capabilities the examples leave unresolved. Verify the chosen parts and props against installed exports. Follow the project's theme and conventions.
4. Verify actual import paths, run the app's type and build checks, and exercise a representative interaction when a preview or existing test is available. Report installed items, preserved collisions, and any checks you could not run. Keep setup changes scoped to the app.

## Build with Devvarena

- Check installed components first. Discover additional components through the [catalog](https://ui.devvarena.com/docs/components) or [agent-friendly index](https://ui.devvarena.com/llms.txt). Install just the missing component for the task.
- **Read all published examples for the relevant component first.** Open its Preview tab and inspect each example's Usage source, including variants, state, and custom composition. Use the closest example as the starting point when it covers the requested behavior.
- **Use Info to verify the contract.** Check the parts, props, defaults, and interaction notes. Confirm the imports and types against the installed source. If the examples cover the task, proceed with that composition.
- **Consult upstream only for the remaining gap.** Read the matching [UI SDK React component docs](https://ui-sdk.dev/docs/react) for inherited behavior or API details the examples do not cover. Prefer the docs shipped with the project's installed SDK version. Confirm the wrapper actually forwards an upstream prop or exports the part before using it. If the installed API differs, adapt to what it supports or report the gap.
- Keep labels, keyboard interaction, focus, and dismissal on the primitives. Use the SDK's native `presentation` prop wherever the installed wrapper exposes it.
- Preserve the app's semantic theme variables, shared sizes, variants, and motion. Compose installed components for app-specific workflows and keep application state at the caller. Verify keyboard and responsive behavior for the controls you touch.
- For matching visual assets, use the current registry items `dv-icons` and `dv-illustrations`. Import named exports from the installed collection. For a standalone icon asset, use the Copy SVG action in the [icon catalog](https://ui.devvarena.com/docs/icons/dv-icons).
- Runtime agent integration is optional. Use the app's existing permissions and confirmation model when the user specifically requests an agent connection.
