Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

source-command-ui-interactive

БесплатноБез исполняемых скриптовНе проверен

Interactive component wizard with step-by-step guidance and enforced quality gates

databaytот databayt★ 19 звёзд на GitHub

Об этом скилле

source-command-ui-interactive

Use this skill when the user asks to run the migrated source command ui-interactive.

Command Template

Interactive UI Component Wizard

🎯 Purpose: Guided, step-by-step component creation with zero-tolerance quality enforcement

🚀 What this does:

  • Walks you through component creation with interactive prompts
  • Enforces accessibility, i18n, and quality standards at each step
  • Blocks progression until validation passes
  • Generates tests BEFORE code (TDD enforced)
  • Auto-commits with conventional message

⏱️ Duration: 3-5 minutes


Usage

# Start interactive wizard
/ui-interactive

# Or use alias
/ui-wizard

Workflow Overview

The wizard follows this systematic flow:

1. Component Type Selection
   ↓
2. Name/Route Validation
   ↓
3. Requirements Selection (optional)
   ↓
4. Radix Primitive Selection (optional)
   ↓
5. Accessibility Checklist (BLOCKING - all required)
   ↓
6. i18n Setup (BLOCKING - dictionary validation)
   ↓
7. Test Generation (AUTO - TDD enforced)
   ↓
8. Component Implementation (AUTO - agents)
   ↓
9. Quality Gates Validation (BLOCKING - 7 gates)
   ↓
10. Git Commit (AUTO - conventional message)
    ↓
11. Completion Summary

Step-by-Step Instructions

Invoke Interactive Prompts Skill

This command loads the interactive prompts skill and flowchart workflow configuration to guide the user through component creation.

Action: Invoke skill interactive-prompts with workflow ui-factory-flowchart

Load workflow configuration from:
  .Codex/workflows/ui-factory-flowchart.json

Initialize interactive prompt system with:
  - Step-by-step navigation
  - Validation at each step
  - Blocking on critical steps
  - Auto-actions for generation/validation

Step 1: Component Type Selection

Prompt: "What type of component are you creating?"

Options:

  1. UI Primitive - Base component from shadcn/ui (Button, Input, Card, etc.)
  2. Atom/Composite - Composed component using 2+ UI primitives
  3. Feature Component - Business logic component with server actions
  4. Page Component - Full Next.js page with routing

Validation: Must select one option

Next Step:

  • UI Primitive → Primitive Selection (Step 2a)
  • Atom/Feature → Component Name (Step 2b)
  • Page → Page Route (Step 2c)

Step 2a: Primitive Selection (if UI Primitive)

Prompt: "Which primitive are you adding from shadcn/ui registry?"

Common Options:

  • Button - Interactive button with variants
  • Card - Container for content
  • Input - Form input field
  • Select - Dropdown selection
  • Dialog - Modal dialog
  • Form - Form with validation
  • Table - Data table
  • Tabs - Tabbed interface
  • Tooltip - Hover tooltip
  • Dropdown Menu - Action menu

Action: Automatically run /ui-add {selected-primitive}

Validation: Primitive must be available in registry

Next Step: Post-Install Validation → End (primitives follow different flow)


Step 2b: Component Name (if Atom/Feature)

Prompt: "Enter component name (PascalCase):"

Placeholder: MultiStepForm

Validation Rules:

  1. Must be PascalCase (e.g., MultiStepForm, PricingCard)
  2. Must not already exist in:
    • src/components/ui/{name}.tsx
    • src/components/atom/{name}.tsx
    • src/components/platform/{name}/
  3. Must be 3-50 characters

Examples:

  • ✅ MultiStepForm
  • ✅ PricingCard
  • ✅ FileUpload
  • ❌ multiStepForm (not PascalCase)
  • ❌ multi_step_form (not PascalCase)
  • ❌ Button (already exists)

Next Step: Requirements Selection (Step 3)


Step 2c: Page Route (if Page)

Prompt: "Enter page route path:"

Placeholder: students/profile

Validation Rules:

  1. Must be lowercase with hyphens and slashes only
  2. Must not already exist in: src/app/[lang]/s/[subdomain]/(platform)/{route}/page.tsx

Examples:

  • ✅ students/profile
  • ✅ settings/billing
  • ✅ dashboard/analytics
  • ❌ Students/Profile (uppercase)
  • ❌ students_profile (underscores)
  • ❌ students (already exists)

Next Step: Requirements Selection (Step 3)


Step 3: Requirements Selection (optional)

Prompt: "Select component requirements (press Space to select, Enter to confirm):"

Options (multi-select):

  • Form Validation (Zod) - Implies: Zod schema file
  • Server Actions - Implies: Multi-tenant safety checks
  • Data Table (@tanstack/react-table) - Implies: Column definitions
  • File Upload
  • Multi-step Navigation - Implies: State management
  • Real-time Updates (SWR)
  • Animations (Framer Motion)
  • Charts (Recharts)

Validation: Optional, can skip

Next Step: Radix Selection (Step 4)


Step 4: Radix Primitive Selection (optional)

Prompt: "Select Radix UI primitives needed (press Space to select, Enter to confirm):"

Description: "Select interactive primitives for accessibility"

Options (multi-sel

Полный SKILL.md на GitHub

Установить source-command-ui-interactive в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл source-command-ui-interactive?

Interactive component wizard with step-by-step guidance and enforced quality gates

Как установить скилл source-command-ui-interactive?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл source-command-ui-interactive запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить source-command-ui-interactive с