Agent Skillssoybeanjs/soybean-ui › soybean-ui

soybean-ui

GitHub

辅助在 Vue/Nuxt 项目中集成 SoybeanUI,指导包选择、主题配置及组件 API 查阅。

skills/skills/soybean-ui/SKILL.md soybeanjs/soybean-ui

触发场景

构建 Vue/Nuxt 应用并需使用 SoybeanUI 组件 询问 SoybeanUI 组件用法、Props 或主题配置

安装

npx skills add soybeanjs/soybean-ui --skill soybean-ui -g -y
更多选项

非标准路径

npx skills add https://github.com/soybeanjs/soybean-ui/tree/main/skills/skills/soybean-ui -g -y

不安装直接使用

npx skills use soybeanjs/soybean-ui@soybean-ui

指定 Agent (Claude Code)

npx skills add soybeanjs/soybean-ui --skill soybean-ui -a claude-code -g -y

安装 repo 全部 skill

npx skills add soybeanjs/soybean-ui --all -g -y

预览 repo 内 skill

npx skills add soybeanjs/soybean-ui --list

SKILL.md

Frontmatter
{
    "name": "soybean-ui",
    "license": "MIT",
    "description": "Helps use SoybeanUI in Vue and Nuxt apps, including choosing styled vs headless packages, configuring styles and ConfigProvider, and looking up component docs and generated API summaries. Use when building with @soybeanjs\/ui, @soybeanjs\/ui-x, or @soybeanjs\/headless, asking which SoybeanUI component to use, or needing props, slots, usage, and theming guidance for a specific component."
}

SoybeanUI

Vue 3 UI library with styled and headless packages.

Quick start

  • Prefer @soybeanjs/ui for ready-to-use S* components.
  • Prefer @soybeanjs/ui-x for styled AI conversation components (Sx*: SxBubble, SxSender, SxThoughtChain, ...).
  • Prefer @soybeanjs/headless when you want SoybeanUI logic and accessibility without bundled styles.
  • Load REFERENCE.md for setup, docs routes, and which deeper reference to open next.
  • Load references/headless-vs-styled.md when deciding between @soybeanjs/ui and @soybeanjs/headless.
  • Load references/theming.md for SConfigProvider, theme vocabulary, locale, and direction.
  • Load references/components.md when you need component categories or are not sure which component fits.
  • Then load only the exact components/*.md files you need.

Available guidance

File Topics
REFERENCE.md Setup overview, docs routes, and reference map
references/headless-vs-styled.md Package choice, architecture, component patterns
references/theming.md SConfigProvider, theme tokens, locale, RTL, global config
references/components.md Component index grouped by category
components/*.md Per-component overview, features, docs summary, exported symbols, props, emits, slots

Loading files

  • REFERENCE.md first for setup and the right follow-up reference.
  • references/headless-vs-styled.md when the user is choosing packages or mixing both layers.
  • references/theming.md for theme, SConfigProvider, locale, nonce, or direction questions.
  • references/components.md if you need to browse the library or narrow down the right component family.
  • components/*.md only for the components directly involved in the task.
  • If the local skill files are insufficient, use the docs routes https://ui.soybeanjs.cn/llms.txt and https://ui.soybeanjs.cn/llms-full.txt as broader context.

Key concepts

Concept Description
Styled package @soybeanjs/ui exposes SButton, SDialog, and other pre-styled S* components
AI package @soybeanjs/ui-x exposes styled AI conversation components prefixed Sx* (bubble, sender, thought chain)
Headless package @soybeanjs/headless exposes unstyled primitives, logic, a11y, and Compact aggregations
SConfigProvider Global config for theme, size, locale, direction, nonce, and tooltip defaults
Compact components Data-driven aggregated components such as AccordionCompact and TableCompact
Generated docs This skill's component files are generated from docs/src/docs/en/{ui,ui-x}/components and docs/src/generated/api/{ui,ui-x}

Basic patterns

import '@soybeanjs/ui/styles.css';
import Components from 'unplugin-vue-components/vite';
import { UiResolver } from '@soybeanjs/ui/resolver';

Components({
  resolvers: [UiResolver()]
});
<template>
  <SConfigProvider :theme="{ theme: { primary: 'indigo' }, size: 'md' }" dir="rtl">
    <App />
  </SConfigProvider>
</template>

Notes

  • For repo-internal component authoring or SoybeanUI source changes, use the soybean-ui-component-development skill instead.
  • Regenerate the component reference files with pnpm sui skills after docs or generated API data changes.

版本历史

  • bf1a724 当前 2026-08-19 21:21

    修复技能生成问题并新增对 @soybeanjs/ui-x 包的支持

  • 96a66f1 2026-07-24 20:28

同 Skill 集合

.agents/skills/soybean-ui-component-development/SKILL.md
skills/skills-source/soybean-headless/SKILL.md
skills/skills-source/soybean-ui/SKILL.md
skills/skills/soybean-headless/SKILL.md

元信息

文件数
0
版本
38f5e5b
Hash
649a69bc
收录时间
2026-07-24 20:28

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-18 03:32
浙ICP备14020137号-1