Add component

From indielayer/ui · View interactive version

Add component is an AI agent skill from the GitHub repository indielayer/ui. Add a new Vue component to @indielayer/ui with themes, tests, docs, and registry exports. Use when creating a new component, adding X-prefixed components, or scaffolding under packages/ui/src/components.

How to use this skill

Skill file

Add component

Scaffold

Create packages/ui/src/components/<name>/:

Register

  1. packages/ui/src/components/index.ts (or src/virtual/index.ts)
  2. Every packages/ui/src/themes/<id>/components.ts (currently base, carbon)
  3. packages/ui/volar.d.ts — add X<Name> to GlobalComponents (alphabetical):
XRadioButton: typeof import('@indielayer/ui')['XRadioButton']

Docs (if user-facing)

Follow the docs-page skill: docs/pages/component/<name>/.

Verify

From repo root:

pnpm lint:ui
pnpm typecheck
pnpm test:ci

Reference: packages/ui/src/components/button/

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.