Loading...
Loading...
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.
npx skill4agent add pproenca/dot-skills ios-design-systemswift-ui-architectDomainDesignSystemData@ObservableObservableObject@Published@Equatable| Sibling Skill | Its Focus | This Skill's Focus |
|---|---|---|
| Architecture (modular MVVM-C, route shells, protocol boundaries) | Design system infrastructure (tokens, styles, governance) |
| Using design primitives (semantic colors, typography) | Engineering the token system that provides those primitives |
| Auditing/fixing visual quality issues | Preventing those issues via governance and automation |
| HIG compliance patterns | Asset and component infrastructure that makes compliance easy |
DomainDesignSystemDataDependencyContainerDomain*CoordinatingErrorRoutingAppErrorData| Priority | Category | Impact | Prefix | Rules |
|---|---|---|---|---|
| 1 | Token Architecture | CRITICAL | | 6 |
| 2 | Color System Engineering | CRITICAL | | 7 |
| 3 | Component Style Library | CRITICAL | | 10 |
| 4 | Typography Scale | HIGH | | 5 |
| 5 | Spacing & Sizing System | HIGH | | 5 |
| 6 | Consistency & Governance | HIGH | | 7 |
| 7 | Asset Management | MEDIUM-HIGH | | 5 |
| 8 | Theme & Brand Infrastructure | MEDIUM | | 5 |
token-three-layer-hierarchytoken-enum-over-structtoken-single-file-per-domaintoken-shapestyle-extensionstoken-asset-catalog-sourcetoken-avoid-over-abstractioncolor-organized-xcassetscolor-complete-pairscolor-limit-palettecolor-no-hex-in-viewscolor-system-firstcolor-tint-not-brand-everywherecolor-audit-scriptstyle-dls-protocol-patternstyle-equatable-viewsstyle-accessibility-firststyle-protocol-over-wrapperstyle-static-member-syntaxstyle-environment-awarenessstyle-view-for-containers-modifier-for-stylingstyle-catalog-filestyle-configuration-over-parametersstyle-preview-catalogtype-scale-enumtype-system-styles-firsttype-custom-font-registrationtype-max-styles-per-screentype-avoid-font-design-mixingspace-token-enumspace-radius-tokensspace-no-magic-numbersspace-insets-patternspace-size-tokensgovern-naming-conventionsgovern-spm-package-boundarygovern-single-source-of-truthgovern-lint-for-tokensgovern-design-system-directorygovern-migration-incrementalgovern-prevent-local-tokensasset-separate-catalogsasset-sf-symbols-firstasset-icon-export-formatasset-image-optimizationasset-naming-conventiontheme-environment-keytheme-dont-over-themetheme-tint-for-brandtheme-light-dark-onlytheme-brand-layer-separation| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |