Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

naive-ui-skills朴素的用户界面技巧

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

1,176

周安装

50

GitHub Stars

公开资料未说明

下载量

412
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:naive-ui-skills(朴素的用户界面技巧)
来源仓库:https://github.com/jiaiyan/naive-ui-skills
仓库路径:skills/naive-ui-skills
安装命令:
npx skills add https://github.com/jiaiyan/naive-ui-skills --skill naive-ui-skills
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jiaiyan/naive-ui-skills --skill naive-ui-skills

简介

用于辅助界面设计、视觉规范和交互体验优化,适合生成 UI 方案或改进组件层级。

  • 适用于页面结构整理、配色布局建议和视觉一致性检查等前端设计场景。
  • 通过结合品牌与设计系统,输出结构化方案并借助预览工具验证实际表现。
  • 安装需确认仓库权限,使用时避免堆砌装饰元素,涉及页面改动应截图验证溢出与对齐。
  • naive-ui-skills 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Naive UI Skills Library

A comprehensive skill library for Naive UI framework, designed for AI agents to understand and utilize Naive UI components effectively.

When to Invoke

Invoke this skill when:

  • User needs to implement any Naive UI component
  • User asks about Naive UI configuration or setup
  • User wants to customize themes or use dark mode
  • User needs internationalization (i18n) support
  • User asks about design specifications (colors, borders, typography)
  • User encounters issues with Naive UI components

Skill Library Overview

This library contains 107 skills organized into the following categories:

CategoryCountDescriptionPath Pattern
Component Skills95Individual component documentation./components/n-{name}/SKILL.md
Design Specifications5Border, Color, Layout, Typography, Overview./naive-ui-design-{name}/SKILL.md
Foundation Skills6Quickstart, Theming, i18n, Dark Mode, SSR, Components./naive-ui-{name}/SKILL.md

How to Locate Skills

1. Component Skills (95 skills)

All component skills follow the naming convention n-{component-name} and are located in the components/ directory.

Path Pattern:

./components/n-{component-name}/SKILL.md

Examples:

  • Button: ./components/n-button/SKILL.md
  • Form: ./components/n-form/SKILL.md
  • DataTable: ./components/n-data-table/SKILL.md
  • Dialog: ./components/n-dialog/SKILL.md

2. Design Specification Skills (5 skills)

Design skills provide guidance on Naive UI design system.

Skill NamePathDescription
Border./naive-ui-design-border/SKILL.mdBorder styles, radius, shadows
Color./naive-ui-design-color/SKILL.mdColor palette and semantics
Layout./naive-ui-design-layout/SKILL.mdGrid system and layout
Typography./naive-ui-design-typography/SKILL.mdFont conventions
Overview./naive-ui-design-overview/SKILL.mdDesign system overview

3. Foundation Skills (6 skills)

Foundation skills cover core setup and configuration.

Skill NamePathDescription
Quickstart./naive-ui-quickstart/SKILL.mdInstallation and setup
Theming./naive-ui-theming/SKILL.mdTheme customization
i18n./naive-ui-i18n/SKILL.mdInternationalization
Dark Mode./naive-ui-dark-mode/SKILL.mdDark mode implementation
SSR./naive-ui-ssr/SKILL.mdServer-side rendering
Components./naive-ui-components/SKILL.mdComponent overview index

Skill Invocation Guide

Step 1: Identify User Intent

Analyze the user's request to determine which skill category is needed:

User Request PatternSkill CategoryExample Skill
"Create a button/form/table..."Componentn-button, n-form, n-data-table
"How to set up Naive UI"Foundationnaive-ui-quickstart
"Customize theme colors"Foundationnaive-ui-theming
"Add multi-language support"Foundationnaive-ui-i18n
"Implement dark mode"Foundationnaive-ui-dark-mode
"What colors are available?"Designnaive-ui-design-color
"How does the grid work?"Designnaive-ui-design-layout

Step 2: Locate the Skill File

Use the path patterns above to locate the appropriate skill file:

# For component skills
./components/n-{component-name}/SKILL.md

# For design skills
./naive-ui-design-{name}/SKILL.md

# For foundation skills
./naive-ui-{name}/SKILL.md

Step 3: Read and Apply Skill Content

Each skill file contains:

  • When to Invoke: Specific conditions for using the skill
  • Features: Component capabilities and options
  • API Reference: Attributes, events, slots, exposes
  • Usage Examples: Code snippets for common patterns
  • Best Practices: Recommended implementation guidelines

Component Skill Index

Common Components (15)

ComponentSkill PathDescription
Avatar./components/n-avatar/SKILL.mdUser avatars
Button./components/n-button/SKILL.mdButtons with various types and states
Card./components/n-card/SKILL.mdCard containers
Carousel./components/n-carousel/SKILL.mdImage carousel
Collapse./components/n-collapse/SKILL.mdCollapsible panels
Divider./components/n-divider/SKILL.mdDividing lines
Dropdown./components/n-dropdown/SKILL.mdDropdown menu
Ellipsis./components/n-ellipsis/SKILL.mdText ellipsis
Float Button./components/n-float-button/SKILL.mdFloating button
Gradient Text./components/n-gradient-text/SKILL.mdGradient text effect
Icon./components/n-icon/SKILL.mdIcon wrapper component
Page Header./components/n-page-header/SKILL.mdPage header
Tag./components/n-tag/SKILL.mdTags and labels
Typography./components/n-typography/SKILL.mdTypography components
Watermark./components/n-watermark/SKILL.mdWatermark

Data Input Components (21)

ComponentSkill PathDescription
Auto Complete./components/n-auto-complete/SKILL.mdInput with suggestions
Cascader./components/n-cascader/SKILL.mdCascading selection
Checkbox./components/n-checkbox/SKILL.mdCheckboxes
Color Picker./components/n-color-picker/SKILL.mdColor picker
Date Picker./components/n-date-picker/SKILL.mdDate picker
Dynamic Input./components/n-dynamic-input/SKILL.mdDynamic input fields
Dynamic Tags./components/n-dynamic-tags/SKILL.mdDynamic tags input
Form./components/n-form/SKILL.mdForm management
Input./components/n-input/SKILL.mdText input
Input Number./components/n-input-number/SKILL.mdNumber input
Input OTP./components/n-input-otp/SKILL.mdOTP input
Mention./components/n-mention/SKILL.mdMention input
Radio./components/n-radio/SKILL.mdRadio buttons
Rate./components/n-rate/SKILL.mdStar rating
Select./components/n-select/SKILL.mdDropdown select
Slider./components/n-slider/SKILL.mdSlider input
Switch./components/n-switch/SKILL.mdToggle switch
Time Picker./components/n-time-picker/SKILL.mdTime picker
Transfer./components/n-transfer/SKILL.mdTransfer panels
Tree Select./components/n-tree-select/SKILL.mdTree select
Upload./components/n-upload/SKILL.mdFile upload

Data Display Components (21)

ComponentSkill PathDescription
Calendar./components/n-calendar/SKILL.mdCalendar view
Code./components/n-code/SKILL.mdCode display
Countdown./components/n-countdown/SKILL.mdCountdown timer
Data Table./components/n-data-table/SKILL.mdAdvanced data table
Descriptions./components/n-descriptions/SKILL.mdDescription list
Empty./components/n-empty/SKILL.mdEmpty state
Equation./components/n-equation/SKILL.mdMath equation
Heatmap./components/n-heatmap/SKILL.mdHeatmap visualization
Highlight./components/n-highlight/SKILL.mdCode highlight
Image./components/n-image/SKILL.mdImage with preview
Infinite Scroll./components/n-infinite-scroll/SKILL.mdInfinite scroll
List./components/n-list/SKILL.mdList container
Log./components/n-log/SKILL.mdLog display
Number Animation./components/n-number-animation/SKILL.mdAnimated numbers
QR Code./components/n-qr-code/SKILL.mdQR code generator
Statistic./components/n-statistic/SKILL.mdStatistics display
Table./components/n-table/SKILL.mdBasic table
Thing./components/n-thing/SKILL.mdThing container
Time./components/n-time/SKILL.mdTime display
Timeline./components/n-timeline/SKILL.mdTimeline display
Tree./components/n-tree/SKILL.mdTree view

Navigation Components (9)

ComponentSkill PathDescription
Affix./components/n-affix/SKILL.mdSticky positioning
Anchor./components/n-anchor/SKILL.mdAnchor navigation
Back Top./components/n-back-top/SKILL.mdBack to top button
Breadcrumb./components/n-breadcrumb/SKILL.mdBreadcrumb navigation
Loading Bar./components/n-loading-bar/SKILL.mdLoading bar
Menu./components/n-menu/SKILL.mdNavigation menu
Pagination./components/n-pagination/SKILL.mdPagination
Steps./components/n-steps/SKILL.mdSteps guide
Tabs./components/n-tabs/SKILL.mdTabs

Feedback Components (16)

ComponentSkill PathDescription
Alert./components/n-alert/SKILL.mdAlert messages
Badge./components/n-badge/SKILL.mdBadges and marks
Dialog./components/n-dialog/SKILL.mdModal dialog
Drawer./components/n-drawer/SKILL.mdDrawer panel
Marquee./components/n-marquee/SKILL.mdMarquee animation
Message./components/n-message/SKILL.mdToast message
Modal./components/n-modal/SKILL.mdModal container
Notification./components/n-notification/SKILL.mdNotification
Popconfirm./components/n-popconfirm/SKILL.mdPopconfirm
Popover./components/n-popover/SKILL.mdPopover
Popselect./components/n-popselect/SKILL.mdPopover select
Progress./components/n-progress/SKILL.mdProgress bar
Result./components/n-result/SKILL.mdResult page
Skeleton./components/n-skeleton/SKILL.mdLoading skeleton
Spin./components/n-spin/SKILL.mdLoading spinner
Tooltip./components/n-tooltip/SKILL.mdTooltip

Layout Components (6)

ComponentSkill PathDescription
Flex./components/n-flex/SKILL.mdFlex container
Grid./components/n-grid/SKILL.mdGrid system
Layout./components/n-layout/SKILL.mdLayout container
Legacy Grid./components/n-legacy-grid/SKILL.mdLegacy grid
Space./components/n-space/SKILL.mdSpacing
Split./components/n-split/SKILL.mdSplit panels

Config Components (3)

ComponentSkill PathDescription
Config Provider./components/n-config-provider/SKILL.mdGlobal config
Element./components/n-element/SKILL.mdElement wrapper
Global Style./components/n-global-style/SKILL.mdGlobal styles

Utility Components (4)

ComponentSkill PathDescription
Collapse Transition./components/n-collapse-transition/SKILL.mdCollapse animation
Discrete./components/n-discrete/SKILL.mdDiscrete API
Scrollbar./components/n-scrollbar/SKILL.mdCustom scrollbar
Virtual List./components/n-virtual-list/SKILL.mdVirtual scroll list

Usage Examples

Example 1: User asks about button implementation

User Request: "How do I create a primary button with loading state?"

Agent Action:

  1. Identify intent: Component skill - Button
  2. Locate skill: ./components/n-button/SKILL.md
  3. Read skill content
  4. Provide response with API reference and code example

Response:

<template>
  <n-button type="primary" :loading="loading" @click="handleClick">
    {{ loading ? 'Loading...' : 'Submit' }}
  </n-button>
</template>

<script setup>
import { ref } from 'vue'

const loading = ref(false)

const handleClick = async () => {
  loading.value = true
  try {
    await submitData()
  } finally {
    loading.value = false
  }
}
</script>

Example 2: User asks about form validation

User Request: "How do I create a form with validation?"

Agent Action:

  1. Identify intent: Component skill - Form
  2. Locate skill: ./components/n-form/SKILL.md
  3. Read skill content
  4. Provide response with validation example

Response:

<template>
  <n-form ref="formRef" :model="form" :rules="rules">
    <n-form-item label="Name" path="name">
      <n-input v-model:value="form.name" />
    </n-form-item>
    <n-form-item>
      <n-button type="primary" @click="submitForm">Submit</n-button>
    </n-form-item>
  </n-form>
</template>

<script setup>
import { ref, reactive } from 'vue'

const formRef = ref()
const form = reactive({
  name: ''
})

const rules = {
  name: [
    { required: true, message: 'Please input name', trigger: 'blur' }
  ]
}

const submitForm = async () => {
  await formRef.value?.validate()
  // Submit logic
}
</script>

Example 3: User asks about theme customization

User Request: "How do I customize Naive UI theme colors?"

Agent Action:

  1. Identify intent: Foundation skill - Theming
  2. Locate skill: ./naive-ui-theming/SKILL.md
  3. Read skill content
  4. Provide response with theme override example

Response:

<template>
  <n-config-provider :theme-overrides="themeOverrides">
    <App />
  </n-config-provider>
</template>

<script setup>
const themeOverrides = {
  common: {
    primaryColor: '#18a058',
    primaryColorHover: '#36ad6a',
    primaryColorPressed: '#0c7a43'
  },
  Button: {
    textColor: '#18a058'
  }
}
</script>

Example 4: User asks about dark mode

User Request: "How do I implement dark mode in Naive UI?"

Agent Action:

  1. Identify intent: Foundation skill - Dark Mode
  2. Locate skill: ./naive-ui-dark-mode/SKILL.md
  3. Read skill content
  4. Provide response with implementation example

Response:

<template>
  <n-config-provider :theme="isDark ? darkTheme : null">
    <App />
  </n-config-provider>
</template>

<script setup>
import { ref } from 'vue'
import { darkTheme } from 'naive-ui'

const isDark = ref(false)
</script>

Configuration Requirements

Prerequisites

Before using this skill library, ensure:

  1. Vue 3.0+ is installed
  2. Naive UI 2.44+ is installed
  3. Node.js 18+ for development

Installation

npm install naive-ui
# or
pnpm add naive-ui

TypeScript Support

Naive UI is written in TypeScript and provides full type definitions out of the box.

Input Parameters

When invoking skills, consider these parameters:

ParameterTypeDescriptionRequired
componentstringComponent name (e.g., "button", "form")Yes
featurestringSpecific feature needed (e.g., "validation", "loading")No
contextobjectAdditional context (framework, TypeScript usage)No

Output Format

Each skill provides:

  1. API Reference: Complete attributes, events, slots, exposes
  2. Code Examples: Working code snippets
  3. Best Practices: Recommended implementation patterns
  4. Common Issues: Troubleshooting tips
  5. Component Interactions: How to use with other components

Important Notes

1. Skill Priority

When multiple skills could apply, prioritize in this order:

  1. Component-specific skills (most specific)
  2. Foundation skills (configuration)
  3. Design specification skills (guidelines)

2. Cross-References

Many skills reference related skills. Always check:

  • Related components in the same category
  • Foundation skills for configuration
  • Design skills for styling guidelines

3. Version Compatibility

This skill library is based on Naive UI 2.44+. Some features may not be available in earlier versions.

4. Naming Conventions

  • Component skills use n-{name} format (matches Vue component tags)
  • Foundation skills use naive-ui-{name} format
  • Design skills use naive-ui-design-{name} format

5. File Structure

naive-ui-skills/
├── SKILL.md                          # This file (main entry)
├── README.md                         # English documentation
├── README_CN.md                      # Chinese documentation
├── AGENTS.md                         # Agents documentation
├── LICENSE                           # MIT License
├── components/                       # 95 component skills
│   ├── n-button/
│   │   └── SKILL.md
│   ├── n-form/
│   │   └── SKILL.md
│   └── ...
├── naive-ui-quickstart/              # Foundation skills
├── naive-ui-theming/
├── naive-ui-i18n/
├── naive-ui-dark-mode/
├── naive-ui-ssr/
├── naive-ui-components/
├── naive-ui-design-border/           # Design skills
├── naive-ui-design-color/
├── naive-ui-design-layout/
├── naive-ui-design-typography/
└── naive-ui-design-overview/

Best Practices for Agents

  1. Always start with this file when user mentions Naive UI
  2. Locate the specific skill based on user intent
  3. Read the complete skill file before responding
  4. Provide code examples from the skill documentation
  5. Reference related skills when applicable
  6. Include best practices from the skill content
  7. Mention common issues if relevant to user's context

Related Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.9%
按下载量换算152

Claude

28.14%
按下载量换算116

Cursor

18.36%
按下载量换算76

Gemini CLI

8.29%
按下载量换算34

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills