Agent Skillsbitjaru/styleseed › ss-pattern

ss-pattern

GitHub

基于StyleSeed语法和品牌配方,组合现有UI原语生成可复用的复合UI组件模式。支持布局、数据展示及交互等多种类型,强调遵循设计规则与语义化属性。

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

Trigger Scenarios

需要生成复合UI组件模式 根据品牌配方组合现有UI原语

Install

npx skills add bitjaru/styleseed --skill ss-pattern -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • e0a0991 Current 2026-08-05 10:46

    新增品牌配方形态引擎,更新可用模式类型为 layout/data/interactive 分类,优化设计规则引用方式。

  • 575d99a 2026-07-05 18:21

Same Skill Collection

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-studio/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

Metadata

Files
0
Version
1a00699
Hash
1bd4d31c
Indexed
2026-07-05 18:21

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 13:58
浙ICP备14020137号-1 $방문자$