Use when working with naive-ui components, or troubleshooting naive-ui usage issues.
Install
npx skills add https://github.com/sepush/naive-ui-skills --skill naive-uiSKILL.md
Naive UI Practices
Usage guide for Naive UI and Vue 3 applications. Contains 33 rules across 8 categories, prioritized by impact to guide automated refactoring, component creation, and troubleshooting.
When to Apply
Reference these guidelines when:
- Writing new Vue 3 components using Naive UI
- Implementing forms and data validation
- Handling large datasets with virtual scrolling (DataTable, Tree, Select)
- Customizing application themes and dark mode
- Troubleshooting Naive UI usage issues and styling conflicts
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Core Configuration | CRITICAL | core- |
| 2 | Form & Data Input | CRITICAL | component- |
| 3 | Complex Data Display | HIGH | component- |
| 4 | Feedback & Overlay | HIGH | component- |
| 5 | Layout & Navigation | MEDIUM | component- |
| 6 | Basic Data Display | MEDIUM | component- |
| 7 | Advanced Customization | LOW-MEDIUM | core- |
| 8 | Ecosystem & Troubleshooting | LOW | core- |
Quick Reference
1. Core Configuration (CRITICAL)
core-setup- Auto-import setup, global config, providerscore-theme- Theme overrides, dark mode, CSS variables, useThemeVarscore-import-on-demand- Import on demand and tree shakingcore-nuxtjs- Nuxt.js integration best practicescore-ssr- Server-Side Rendering guidelinescore-style-conflict- Potential style conflict resolution
2. Form & Data Input (CRITICAL)
component-form-validation- Validation rules, dynamic forms, array fieldscomponent-form- Layout, validation, dynamic fields, nested formscomponent-input- Formatted input, precision, validation triggerscomponent-select- Filterable, multiple, tags, async search, custom rendercomponent-datepicker- Date ranges, shortcuts, formatting, timezonecomponent-upload- Custom request, file handling, drag drop
3. Complex Data Display (HIGH)
component-datatable- Virtual scroll, remote data, sorting, filtering, fixed columnscomponent-tree- Async loading, checkable, controlled state, large dataset handlingcomponent-virtual-list- Virtual scrolling patterns
4. Feedback & Overlay (HIGH)
component-modal- Form modals, draggable, focus management, async closecomponent-feedback- Programmatic API, global methods (Message, Notification)component-feedback-alert- Alert, Skeleton, Spin, LoadingBar, Popconfirm
5. Layout & Navigation (MEDIUM)
component-layout- Layout, Grid, Flex, Space, Card, Dividercomponent-menu- Menu, Dropdown, Breadcrumb, Tabscomponent-navigation-steps- Steps, Timeline, Pagination, Anchor, BackTop
6. Basic Data Display (MEDIUM)
component-data-display- Image, List, Descriptions, Calendar, Time, Countdowncomponent-display- Badge, Tag, Avatar, Progress, Statistic, Result, Emptycomponent-button- Button variants, loading, iconscomponent-selection- Radio, Checkbox, Switch, Slider, Rate, ColorPicker
7. Advanced Customization (LOW-MEDIUM)
core-customize-theme- Customizing theme extensivelycore-fonts- Configuring fontscore-i18n- Internationalizationcore-controlled-uncontrolled- Controlled manner & uncontrolled manner
8. Ecosystem & Troubleshooting (LOW)
core-troubleshooting- Common issues and quick fixescore-installation- Installation guidelinescore-jsx- JSX & TSX usagecore-umd- Using UMD buildcore-usage-sfc- Usage in SFCcore-vite-ssge- Vite SSG/SSE integrationcore-vitepress- Vitepress integrationcore-experimental-features- Experimental features
How to Use
Read individual rule files for detailed explanations and code examples:
references/core-setup.md
references/component-datatable.md
Each rule file contains:
- Specific implementation details
- Code examples for Vue 3 setup script
- Warning notes and prerequisites
- Relevant TypeScript interfaces
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
Related skills
vercel-react-best-practicesvercel-labs751KReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.vercel-composition-patternsvercel-labs361KReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.vercel-react-view-transitionsvercel-labs135KGuide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions viewpick-ui-libraryemilkowalski124KPick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.
