ss-pattern
GitHub基于 StyleSeed 语法和品牌配方,组合现有基础组件生成可复用的 UI 模式。支持布局、数据展示及交互等多种类型,确保符合设计系统规范与语义化要求。
触发场景
安装
npx skills add bitjaru/styleseed --skill ss-pattern -g -y
SKILL.md
Frontmatter
{
"name": "ss-pattern",
"description": "Generate a composed UI pattern from the active StyleSeed grammar and brand recipe using existing primitives.",
"allowed-tools": "Read, Write, Edit, Grep, Glob, Bash",
"argument-hint": "[pattern-type] [description]"
}
UI Pattern Generator
When NOT to use
- For a single primitive component → use
/ss-component - For a full mobile screen → use
/ss-page - For an entire multi-page user flow → use
/ss-flow - For design tokens and color/spacing decisions → use
/ss-tokens
Pattern type: $0 Description: $ARGUMENTS
Available Pattern Types
Layout Patterns
- focal-summary: one dominant state, briefing, artifact, or decision
- panel-section: aligned workbench panel with related controls and evidence
- flat-step: public-service task step with explicit labels, help, and recovery
- reading-section: bounded prose, figure, caption, quote, or source group without app cards
- resource-collection: rows, table, grid, or sequence selected by the recipe and user job
- canvas-tools: focused artifact/canvas with quiet supporting tool groups
Data Display Patterns
- data-table: Table with header and rows
- detail-card: Key-value pair display
- chart-card: Card wrapper for a Recharts chart
- ranking-list: Numbered ranking with highlight
Interactive Patterns
- action-sheet: Bottom sheet with action buttons
- filter-bar: Horizontal filter/tab bar
- search-header: Search input in header area
Instructions
-
Read
.styleseed/effective-rules.mdand.styleseed/manifest.json. Resolve first when stale. Then inspect:components/ui/for available primitivescomponents/patterns/for existing patterns
-
Compose the pattern from existing components — DO NOT recreate primitives.
-
Follow the selected recipe rather than one default card language:
- Use
ss-pattern-surfaceonly when containment is earned. - Use
ss-page-gutterorss-page-paddinginstead of hardcoded universal gutters. - Use
ss-pattern-inset,ss-pattern-control, andss-pattern-iconfor recipe-aware shape. - Public-service and editorial recipes usually prefer flat flow, rules, and whitespace.
- Enterprise/developer recipes prefer aligned panels, rows, tables, and compact controls.
- Calm-consumer may use soft groups; expressive-brand must add a product-specific composition.
- Use
-
Use semantic tokens for all visual properties.
-
Make the pattern a reusable component with props for dynamic content.
-
Run
/ss-scoreand verify that the pattern has a functional relationship to its page instead of being an isolated pretty card.
版本历史
-
e0a0991
当前 2026-08-05 10:46
新增品牌配方形态引擎,更新可用模式类型为 layout/data/interactive 分类,优化设计规则引用方式。
- 575d99a 2026-07-05 18:21


