---
name: "naive-ui-typescript-components"
description: "Build beautiful, type-safe web applications with Naive UI complete theme customization."
metadata:
  author: "TuSimple"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "customize naive ui theme"
  - "use naive ui data table"
  - "naive ui message provider"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Naive UI TypeScript-First Vue 3 Component Library

Implements Naive UI: NDataTable with fixed columns, NForm validation, NMessageProvider / NDialogProvider contexts, theme overrides via NConfigProvider, and fast CSS-in-JS style injection.

## When to Invoke
Invoke this skill whenever you need to:
- customize naive ui theme
- use naive ui data table
- naive ui message provider

## Execution SOP & Rules
1. Wrap app with <n-config-provider :theme='darkTheme' :theme-overrides='themeOverrides'>.
2. Place <n-message-provider><n-dialog-provider><App /></n-dialog-provider></n-message-provider>.
3. Define columns for NDataTable: const columns: DataTableColumns<User> = [ ... ].
4. Use useMessage() inside setup functions to trigger feedback toasts.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
