用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bitjaru/styleseed --skill ss-component命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | ss-component |
| description | Generate a new UI component following the StyleSeed design conventions |
| argument-hint | [component-name] [description] |
| allowed-tools | Read, Write, Edit, Grep, Glob, Bash |
When .styleseed/project.json and .styleseed/artifacts/index.json exist, resolve the requested artifact ID first, then read only .styleseed/bundles/<artifact-id>.md and .styleseed/manifests/<artifact-id>.json. Never fall back to the global legacy bundle for a registry project. Legacy projects may use .styleseed/effective-rules.md only when no registry exists.
/ss-page/ss-patterncomponents/ui/ directory or no Tailwind v4)Generate a new component: $0 Description: $ARGUMENTS
First, read the compiled design method:
.styleseed/effective-rules.md and .styleseed/manifest.json; resolve if stalecss/theme.css for available design tokenscss/recipes.css for morphology variables and helper classescomponents/ui/button.tsx as a reference patternFollow these conventions strictly:
function declaration (not const)data-slot="component-name" attributecn() from @/components/ui/utils for all className mergingReact.ComponentProps<> for prop typingclassName prop for overridesclass-variance-authority) if the component has variantsbg-card, text-foreground) — never inline hexDesign token usage:
text-foreground, bg-card, text-brand, text-muted-foreground, border-borderss-pattern-surface; insets/controls/icons use the matching ss-* classduration-[var(--duration-fast)], ease-[var(--ease-default)]Typography rules:
leading-none tracking-[-0.02em]leading-snug tracking-[-0.01em]leading-normal (default tracking)tracking-[0.05em]size-* shorthand instead of w-* h-*ms-*/me-* instead of ml-*/mr-* (logical properties)Accessibility requirements:
min-h-11 min-w-11)aria-* attributes passthroughfocus-visible:ring-2 focus-visible:ring-ring for keyboard focusprefers-reduced-motion for animationsExport the component as a named export (not default)
Place the file in the appropriate directory:
src/components/ui/src/components/patterns/