Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ios-design-system

БесплатноБез исполняемых скриптовНе проверен

Clinic-architecture-aligned iOS design system engineering for SwiftUI (iOS 26 / Swift 6.2) covering token architecture, color/typography/spacing systems…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

Airbnb iOS Design System Best Practices

Opinionated, strict design system engineering for SwiftUI iOS 26 / Swift 6.2 apps. Contains 50 rules across 8 categories, prioritized by impact. Derived from Airbnb's Design Language System (DLS), Airbnb Swift Style Guide, Apple Human Interface Guidelines, and WWDC sessions. Mandates @Equatable on every view, @Observable for state, and style protocols as the primary component API.

Mandated Architecture Alignment

This skill is designed to work alongside swift-ui-architect. All code examples follow the same non-negotiable constraints:

  • Feature modules depend on Domain + DesignSystem; no direct Data dependency
  • @Observable for mutable UI state, ObservableObject / @Published never
  • @Equatable macro on every view
  • Style protocols as the primary component styling API (Airbnb DLS pattern)
  • Asset catalog as the source of truth for color values
  • Local SPM package for design system module boundary

Scope & Relationship to Sibling Skills

This skill is the infrastructure layer — it teaches how to BUILD the design system itself. When loaded alongside sibling skills:

Sibling Skill Its Focus This Skill's Focus
swift-ui-architect Architecture (modular MVVM-C, route shells, protocol boundaries) Design system infrastructure (tokens, styles, governance)
ios-design Using design primitives (semantic colors, typography) Engineering the token system that provides those primitives
ios-ui-refactor Auditing/fixing visual quality issues Preventing those issues via governance and automation
ios-hig HIG compliance patterns Asset and component infrastructure that makes compliance easy

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

  • Feature modules import Domain + DesignSystem only (never Data, never sibling features)
  • App target is the convergence point and owns DependencyContainer, concrete coordinators, and Route Shell wiring
  • Domain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contracts
  • Data owns SwiftData/network/sync/retry/background I/O and implements Domain protocols
  • Read/write flow defaults to stale-while-revalidate reads and optimistic queued writes
  • ViewModels call repository protocols directly (no default use-case/interactor layer)

When to Apply

Reference these guidelines when:

  • Setting up a design system for a new iOS app
  • Building token architecture (colors, typography, spacing, sizing)
  • Creating reusable component styles (ButtonStyle, LabelStyle, custom DLS protocols)
  • Organizing asset catalogs (colors, images, icons)
  • Migrating from ad-hoc styles to a governed token system
  • Preventing style drift and enforcing consistency via automation
  • Building theming infrastructure for whitelabel or multi-brand apps
  • Reviewing PRs for ungoverned colors, hardcoded values, or shadow tokens

Rule Categories by Priority

Priority Category Impact Prefix Rules
1 Token Architecture CRITICAL token- 6
2 Color System Engineering CRITICAL color- 7
3 Component Style Library CRITICAL style- 10
4 Typography Scale HIGH type- 5
5 Spacing & Sizing System HIGH space- 5
6 Consistency & Governance HIGH govern- 7
7 Asset Management MEDIUM-HIGH asset- 5
8 Theme & Brand Infrastructure MEDIUM theme- 5

Quick Reference

1. Token Architecture (CRITICAL)

2. Color System Engineering (CRITICAL)

Полный SKILL.md на GitHub

Установить ios-design-system в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/asset-icon-export-format.mdreferences/asset-image-optimization.mdreferences/asset-naming-convention.mdreferences/asset-separate-catalogs.mdreferences/asset-sf-symbols-first.mdreferences/color-audit-script.mdreferences/color-complete-pairs.mdreferences/color-limit-palette.mdreferences/color-no-hex-in-views.mdreferences/color-organized-xcassets.mdreferences/color-system-first.mdreferences/color-tint-not-brand-everywhere.mdreferences/govern-design-system-directory.mdreferences/govern-lint-for-tokens.mdreferences/govern-migration-incremental.mdreferences/govern-naming-conventions.mdreferences/govern-prevent-local-tokens.mdreferences/govern-single-source-of-truth.mdreferences/govern-spm-package-boundary.mdreferences/space-insets-pattern.mdreferences/space-no-magic-numbers.mdreferences/space-radius-tokens.mdreferences/space-size-tokens.mdreferences/space-token-enum.mdreferences/style-accessibility-first.mdreferences/style-catalog-file.mdreferences/style-configuration-over-parameters.mdreferences/style-dls-protocol-pattern.mdreferences/style-environment-awareness.mdreferences/style-equatable-views.mdreferences/style-preview-catalog.mdreferences/style-protocol-over-wrapper.mdreferences/style-static-member-syntax.mdreferences/style-view-for-containers-modifier-for-styling.mdreferences/theme-brand-layer-separation.mdreferences/theme-dont-over-theme.mdreferences/theme-environment-key.md

FAQ

Что делает скилл ios-design-system?

Clinic-architecture-aligned iOS design system engineering for SwiftUI (iOS 26 / Swift 6.2) covering token architecture, color/typography/spacing systems, component style libraries, asset governance, and theming. Enforces @Equatable on views and keeps design-system usage compatible with Feature-to-Domain+DesignSystem boundaries. Use when building or refactoring DesignSystem infrastructure for the clinic modular MVVM-C stack.

Как установить скилл ios-design-system?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ios-design-system запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ios-design-system с