Skip to content
cccskills
FreePublished on GitHub

design-system-workflow

Swift Design Systemを使用したiOS UI実装スキル。デザイントークン、UIコンポーネント(Button、Card、Chip、FAB、Snackbar、Picker等15種)、レイアウトパターンのベストプラクティスを提供。

「デザイン」「UI」「テーマ」「カラー」「タイポグラフィ」「スペーシング」「ボタン」「カード」「FAB」「Snackbar」「Picker」「SwiftUI」「DesignSystem」などで自動適用。

The English summary is being prepared. Showing the original description.

See how to install

Files included (26)

  • SKILL.md6.9 KB
  • references/AESTHETIC.md17.5 KB
  • references/CLAUDE_MD_TEMPLATE.md3.6 KB
  • references/components/BUTTON.md2.6 KB
  • references/components/CARD.md4.1 KB
  • references/components/CHIP.md3.3 KB
  • references/components/COLOR_PICKER.md6.3 KB
  • references/components/EMOJI_PICKER.md5.9 KB
  • references/components/FAB.md3.2 KB
  • references/components/ICON_BADGE.md4.7 KB
  • references/components/ICON_BUTTON.md3.3 KB
  • references/components/ICON_PICKER.md5.6 KB
  • references/components/IMAGE_PICKER.md10.0 KB
  • references/components/PROGRESS_BAR.md3.7 KB
  • references/components/SNACKBAR.md3.4 KB
  • references/components/STAT_DISPLAY.md4.2 KB
  • references/components/TEXT_FIELD.md4.1 KB
  • references/components/VIDEO_PLAYER.md4.0 KB
  • references/DESIGN_SYSTEM_CONTEXT.md16.4 KB
  • references/patterns/ASPECT_GRID.md6.9 KB
  • references/patterns/SECTION_CARD.md7.6 KB
  • references/patterns/THEME.md6.3 KB
  • references/PREVIEW_PATTERNS.md20.7 KB
  • references/TOKENS.md9.4 KB
  • references/VIEW_VERIFICATION_TESTS.md9.6 KB
  • references/VISUAL_LOOP.md15.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Swift Design System スキル

no problem製iOSアプリのUI実装に必須のデザインシステム。一貫性のあるUIを効率的に構築するためのトークン・コンポーネント・パターンを提供。


必須依存関係

// Package.swift
dependencies: [
    .package(url: "https://github.com/no-problem-dev/swift-design-system.git", from: "X.X.X")
]

// ターゲット
.target(
    name: "YourApp",
    dependencies: [
        .product(name: "DesignSystem", package: "swift-design-system")
    ]
)

Note: X.X.X には最新バージョンを指定してください。 最新バージョンは GitHub Releases で確認できます。


設計原則

3層トークンシステム

Primitive Tokens (基本値) - 直接使用禁止
    ↓ 参照
Semantic Tokens (意味的トークン) - 推奨
    ↓ 参照
Component Tokens (コンポーネント固有) - 自動適用

重要: Primitiveトークンは直接使用せず、必ずSemantic/Componentトークンを使用すること。

Environment経由のアクセス

@Environment(\.colorPalette) var colors
@Environment(\.spacingScale) var spacing
@Environment(\.radiusScale) var radius
@Environment(\.motion) var motion

型安全性

プロトコルベースの設計により、カスタムテーマ・トークンの拡張が可能。

アクセシビリティ

  • WCAG AAA準拠のコントラスト
  • reduce motion設定の自動尊重
  • Dynamic Type対応

テーマ設定(必須)

アプリ起動時に必ずThemeProviderを設定:

import DesignSystem

@main
struct MyApp: App {
    @State private var themeProvider = ThemeProvider()

    var body: some Scene {
        WindowGroup {
            ContentView()
                .theme(themeProvider)  // 必須
        }
    }
}

詳細は → references/patterns/THEME.md


Good / Bad パターン(代表例)

カラー

// ✅ Good: セマンティックカラーを使用
Text("エラー").foregroundColor(colors.error)

// ❌ Bad: ハードコードされた色
Text("エラー").foregroundColor(.red)

タイポグラフィ

// ✅ Good: typographyモディファイアを使用
Text("見出し").typography(.headlineLarge)

// ❌ Bad: 直接フォント指定
Text("見出し").font(.system(size: 32, weight: .semibold))

スペーシング

// ✅ Good: スペーシングトークンを使用
VStack(spacing: spacing.lg) { ... }

// ❌ Bad: マジックナンバー
VStack(spacing: 16) { ... }

コンポーネント

// ✅ Good: デザインシステムのコンポーネントを使用
Card(elevation: .level2) { content }

// ❌ Bad: 独自実装
RoundedRectangle(cornerRadius: 8)
    .fill(Color.white)
    .shadow(radius: 4)

リファレンス索引

デザイン実装時は、該当するリファレンスを参照してください。

デザイントークン

すべてのUI実装で必須の知識

→ references/TOKENS.md

  • Color(カラーパレット)
  • Typography(タイポグラフィ)
  • Spacing(スペーシング)
  • Radius(角丸)
  • Motion(アニメーション)
  • Elevation(エレベーション)
  • GridSpacing(グリッド間隔)

コンポーネント

コンポーネント用途リファレンス
Buttonアクションボタン→ references/components/BUTTON.md
Cardコンテンツコンテナ→ references/components/CARD.md
Chipタグ、フィルター→ references/components/CHIP.md
FAB浮遊アクションボタン→ references/components/FAB.md
Snackbar一時的通知→ references/components/SNACKBAR.md
IconPickerSF Symbols選択→ references/components/ICON_PICKER.md
EmojiPicker絵文字選択→ references/components/EMOJI_PICKER.md
ColorPickerカラー選択→ references/components/COLOR_PICKER.md
ImagePicker画像選択→ references/components/IMAGE_PICKER.md
IconButtonアイコンボタン→ references/components/ICON_BUTTON.md
TextFieldテキスト入力→ references/components/TEXT_FIELD.md
ProgressBarプログレスバー→ references/components/PROGRESS_BAR.md
StatDisplay数値表示→ references/components/STAT_DISPLAY.md
IconBadgeアイコンバッジ→ references/components/ICON_BADGE.md
VideoPlayer動画再生→ references/components/VIDEO_PLAYER.md

レイアウトパターン

パターン用途リファレンス
Themeテーマ設定・切り替え→ references/patterns/THEME.md
AspectGridアスペクト比統一グリッド→ references/patterns/ASPECT_GRID.md
SectionCardタイトル付きカードセクション→ references/patterns/SECTION_CARD.md

Visual Feedback Loop

UIの視覚的検証には Swift Snapshot Testing を使用する。

ワークフロー

  1. SwiftUI View を作成/修正
  2. スナップショットテストを実行(xcodebuild test)
  3. 生成されたスナップショット画像を確認
  4. 問題があればコードを修正して繰り返し

詳細は → references/VISUAL_LOOP.md

参照ドキュメント

ドキュメント内容
references/AESTHETIC.md美的方向性ガイド(AIスロップ回避、Apple HIG)
references/PREVIEW_PATTERNS.mdSwiftUI Preview ベストプラクティス
references/VISUAL_LOOP.mdVisual Feedback Loop 実践ガイド
references/DESIGN_SYSTEM_CONTEXT.mdデザインシステム全体リファレンス
references/CLAUDE_MD_TEMPLATE.mdCLAUDE.md デザインセクションテンプレート
references/VIEW_VERIFICATION_TESTS.mdスナップショットテスト テンプレート

関連スキル

  • ios-clean-architecture: アーキテクチャ設計(View層で本スキルを活用)
  • ios-build-workflow: ビルド・テスト実行
  • component-gen: デザインシステム準拠のコンポーネント生成
  • design-audit: 既存UIのデザインシステム準拠性監査
  • design-diff: UIの視覚的差分検出・比較

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

CHANGELOG エントリ追加・バージョン計算。「CHANGELOG」「変更履歴」「changelog add」「version bump」「バージョン」「バージョンアップ」などのキーワードで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

プロジェクトの .claude/ ディレクトリ(skills, agents, contexts)を Codex CLI 互換 .agents/ に変換。「codex export」「Codex 変換」「プロジェクトをエクスポート」などで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

デザインシステム準拠のSwiftUIコンポーネントを生成する。新しいUIパーツの作成、コンポーネント生成時に使用。「コンポーネント作成」「新しいUI」「パーツ作成」「component generate」「UIパーツ」「新規コンポーネント」などのキーワードで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

Claude Code プラグインを Codex CLI 互換形式に変換。SKILL.md → .agents/skills/、agents → .agents/skills/、AGENTS.md 生成。「deploy」「codex」「Codex 変換」「エクスポート」などで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

SwiftUI ViewのDesign System準拠性を監査する。既存UIのレビュー、デザインチェック時に使用。「デザインレビュー」「UIチェック」「design audit」「デザイン監査」「UI監査」「デザインチェック」「トークン確認」などのキーワードで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

UIの視覚的差分を検出・比較する。デザイン変更前後の比較、リファレンスとの差分確認時に使用。「デザイン比較」「UI差分」「design diff」「design compare」「ビフォーアフター」「見た目の違い」などのキーワードで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

See all skills by no-problem-dev

Report a problem with this skill