# Vela Design System — Agent Skill (v1.0.0)

> Remote MCP: `<VELA_ORIGIN>/mcp` | Standalone Registry: `<VELA_ORIGIN>/r/s/registry.json` | Pricing: `<VELA_ORIGIN>/pricing` | Docs: `<VELA_ORIGIN>/llms.txt`

## 1. Standalone Copy-Paste Architecture (Free + Pro)
1. **Free Tier (MIT)**: Core UI primitives, base charts, AI Chat starter, Growth SEO blocks, 17 Blocks, and 2 Full-Site Templates are freely accessible without login via `<VELA_ORIGIN>/r/s/free/<slug>.json` or `vela add <slug>`.
2. **Pro Tier (Commercial License)**: Enterprise Auth Portal, AI Agents & LLM Ops, Financial/SLO Charts, Network Topologies, Sentiment & Ontology Workbenches, Middleware Consoles, 72 Pro Blocks, and 16 Pro Templates require an active Vela Pro/Team/Enterprise license (`vela login` / `vela activate <key>` or `Authorization: Bearer <token>` on `POST /mcp`).

## 2. Host Prerequisites
- **React 19** + **Tailwind CSS v4.1+** + TypeScript `@/* -> ./src/*` path alias.
- **Dark mode**: Vela tokens target `html.dark`. If host uses `[data-theme="dark"]`, sync `html.dark` or add `@custom-variant dark (&:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *));`.
- Run `setup_vela_standalone({ framework, darkModeStrategy })` before writing files.

## 3. Recommended Workflow (Vela CLI / MCP)
1. Discover items with `search_components`, `list_blocks`, or `list_templates` (every result carries `tier: "free" | "pro"`).
2. Resolve transitive closure with `resolve_standalone_bundle({ items: [...] })` (keep default `includeSource: false`).
3. **Install via Vela CLI**:
   ```bash
   vela add deploy-history            # Free item (instant offline install)
   vela login                         # Authenticate for Pro items
   vela add mq-topics-console         # Authenticated Pro bundle install
   ```
4. **Idempotent CSS injection**: insert missing `@import "./styles/vela-theme.css";` right after `@import "tailwindcss";`.
5. Verify `npx tsc --noEmit`, **0 `@vela/` residual imports**, and light/`html.dark` visuals.

## 4. Console UI/UX Golden Rules
- Call `get_console_guidelines` before building consoles.
- Zero native `<select>` or native `date/time/color` inputs; use Vela custom form controls.

## 5. Fingerprint-Safe Upgrades
- Keep line 1 `// @vela-source: <slug> @<version> sha256:<16hex>` intact.
- Run `vela upgrade` or call `check_vela_updates({ installed })` before upgrading.
