Agent Skillsbitjaru/styleseed › ss-pattern

ss-pattern

GitHub

基于 StyleSeed 语法和品牌配方,组合现有基础组件生成可复用的 UI 模式。支持布局、数据展示及交互等多种类型,确保符合设计系统规范与语义化要求。

engine/.claude/skills/ss-pattern/SKILL.md bitjaru/styleseed

触发场景

需要生成组合式 UI 组件时 根据品牌配方构建特定界面模式时

安装

npx skills add bitjaru/styleseed --skill ss-pattern -g -y
更多选项

非标准路径

npx skills add https://github.com/bitjaru/styleseed/tree/main/engine/.claude/skills/ss-pattern -g -y

不安装直接使用

npx skills use bitjaru/styleseed@ss-pattern

指定 Agent (Claude Code)

npx skills add bitjaru/styleseed --skill ss-pattern -a claude-code -g -y

安装 repo 全部 skill

npx skills add bitjaru/styleseed --all -g -y

预览 repo 内 skill

npx skills add bitjaru/styleseed --list

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

  1. Read .styleseed/effective-rules.md and .styleseed/manifest.json. Resolve first when stale. Then inspect:

    • components/ui/ for available primitives
    • components/patterns/ for existing patterns
  2. Compose the pattern from existing components — DO NOT recreate primitives.

  3. Follow the selected recipe rather than one default card language:

    • Use ss-pattern-surface only when containment is earned.
    • Use ss-page-gutter or ss-page-padding instead of hardcoded universal gutters.
    • Use ss-pattern-inset, ss-pattern-control, and ss-pattern-icon for 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.
  4. Use semantic tokens for all visual properties.

  5. Make the pattern a reusable component with props for dynamic content.

  6. Run /ss-score and 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

同 Skill 集合

engine/.claude/skills/ss-a11y/SKILL.md
engine/.claude/skills/ss-audit/SKILL.md
engine/.claude/skills/ss-build/SKILL.md
engine/.claude/skills/ss-component/SKILL.md
engine/.claude/skills/ss-copy/SKILL.md
engine/.claude/skills/ss-dial/SKILL.md
engine/.claude/skills/ss-feedback/SKILL.md
engine/.claude/skills/ss-flow/SKILL.md
engine/.claude/skills/ss-lint/SKILL.md
engine/.claude/skills/ss-motion/SKILL.md
engine/.claude/skills/ss-page/SKILL.md
engine/.claude/skills/ss-reference/SKILL.md
engine/.claude/skills/ss-resolve/SKILL.md
engine/.claude/skills/ss-restyle/SKILL.md
engine/.claude/skills/ss-review/SKILL.md
engine/.claude/skills/ss-score/SKILL.md
engine/.claude/skills/ss-setup/SKILL.md
engine/.claude/skills/ss-tokens/SKILL.md
engine/.claude/skills/ss-update/SKILL.md
engine/.claude/skills/ss-verify/SKILL.md
skills/styleseed-design-review/SKILL.md

元信息

文件数
0
版本
e0a0991
Hash
1bd4d31c
收录时间
2026-07-05 18:21

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 02:18
浙ICP备14020137号-1 $访客地图$