Axiom design

From CharlesWiltgen/Axiom · View interactive version

Axiom design is an AI agent skill from the GitHub repository CharlesWiltgen/Axiom. Use when making visual or interaction design decisions for an Apple app — HIG patterns, Liquid Glass, SF Symbols, typography, app entry-point and auth-flow structure.

How to use this skill

Skill file

Design & HIG

You MUST use this skill for ANY visual design, HIG compliance, Liquid Glass, SF Symbols, typography, or app composition work.

Cursor Subagent Routing

Delegate to the appropriate Cursor subagent when this router calls for a specialized auditor.

Quick Reference

| Symptom / Task | Reference |

|----------------|-----------|

| Design decisions, HIG compliance, colors, backgrounds | See skills/hig.md |

| Spacing, padding, margins, insets — what value to use | See skills/hig.md |

| Designing for iPhone Duo — poses, controls on the side, keeping UI out of the fold | See axiom-swiftui (skills/iphone-duo.md) |

| Section index / A–Z index strip / alphabet scrubber — should this list have one | See skills/hig.md |

| Alerts, action sheets, confirmation dialogs — whether to show one, title and button wording, Cancel/destructive placement | See skills/hig.md (quick answer) or skills/hig-ref.md (Alerts & Action Sheets, full rules) |

| Semantic colors, custom color patterns, material styles | See skills/hig-ref.md |

| Liquid Glass effects, adoption, migration from blur effects | See skills/liquid-glass.md |

| App-wide Liquid Glass adoption, platform differences | See skills/liquid-glass-ref.md |

| Backward compatibility: the UIDesignRequiresCompatibility opt-out, and why the 27 SDK ignores it on OS 27 | See skills/liquid-glass.md (Backward Compatibility) |

| SF Symbols rendering modes, effects, animations | See skills/sf-symbols.md |

| SF Symbols API signatures, UIKit equivalents, availability | See skills/sf-symbols-ref.md |

| Verify a symbol name exists / check one symbol's availability or supported modes (sfsymbols CLI) | See skills/sf-symbols-ref.md (Part 11) |

| San Francisco fonts, text styles, Dynamic Type, tracking | See skills/typography-ref.md |

| App entry points, auth flows, root view switching, scene lifecycle, document-based apps | See skills/app-composition.md |

| Apple Pay button / Wallet pass design / Tap to Pay button | See axiom-payments suite, plus skills/hig.md for cross-cutting HIG context |

Decision Tree

digraph design {
    start [label="Design task" shape=ellipse];
    what [label="What do you need?" shape=diamond];

    start -> what;
    what -> "skills/hig.md" [label="design decision,\nHIG compliance,\ncolor/background choice"];
    what -> "skills/hig.md" [label="spacing/padding/margin value"];
    what -> "skills/hig.md" [label="alert vs action sheet\nor confirmation dialog,\nalert wording/buttons"];
    what -> "skills/hig-ref.md" [label="semantic color API,\ncustom color code,\nmaterial style details"];
    what -> "skills/liquid-glass.md" [label="Liquid Glass effects,\nmigrate from blur,\nRegular vs Clear,\nopt-out key"];
    what -> "skills/liquid-glass-ref.md" [label="app-wide Liquid Glass plan,\nplatform differences"];
    what -> "skills/sf-symbols.md" [label="rendering mode choice,\nsymbol effects/animations,\ncustom symbols"];
    what -> "skills/sf-symbols-ref.md" [label="SF Symbols API syntax,\nUIKit equivalents,\navailability matrix"];
    what -> "skills/typography-ref.md" [label="font selection,\nDynamic Type,\ntext styles, tracking"];
    what -> "skills/app-composition.md" [label="@main entry point,\nauth flow, root view,\nscene lifecycle"];
}
  1. Design decision / HIG compliance / choosing colors or backgrounds? → skills/hig.md

1a. Need semantic color API, custom color code, or material style details? → skills/hig-ref.md

1b. Alert, action sheet, or confirmation dialog — whether to show one, wording, button roles and placement? → skills/hig.md, full rules in skills/hig-ref.md

  1. Liquid Glass effects / migrating from blur / Regular vs Clear variant? → skills/liquid-glass.md

2a. Planning app-wide Liquid Glass adoption / platform differences? → skills/liquid-glass-ref.md

2b. Opting out of Liquid Glass / UIDesignRequiresCompatibility / backward compatibility? → skills/liquid-glass.md (Backward Compatibility)

  1. SF Symbols rendering mode / symbol effects / custom symbols? → skills/sf-symbols.md

3a. Need SF Symbols API syntax / UIKit equivalents / availability check? → skills/sf-symbols-ref.md

  1. Font selection / Dynamic Type / text styles / tracking / leading? → skills/typography-ref.md
  2. App entry point / auth flow / root view switching / scene lifecycle? → skills/app-composition.md
  3. SwiftUI view implementation? → /skill axiom-swiftui
  4. TextKit / rich text editing / Writing Tools? → /skill axiom-uikit
  5. Accessibility compliance (VoiceOver, contrast, touch targets)? → /skill axiom-accessibility
  6. Audit UI for Liquid Glass adoption? → liquid-glass-auditor (Agent — surfaces migration opportunities AND adoption-completeness gaps: variant discipline, nesting hygiene, unstyled pre-26 fallbacks, semantic toolbar placement, the UIDesignRequiresCompatibility opt-out, accessibility re-check; scores ADOPTED / PARTIAL / NOT ADOPTED)
  7. CarPlay app design, categories, driver-distraction rules? → /skill axiom-media (carplay-hig.md)
Platform-specific HIG

Conflict Resolution

design vs swiftui: When building UI:

  1. Use design FIRST — Decide what to build (colors, materials, typography, layout intent) before how to build it.
  2. Then use swiftui — Implement the design decision in SwiftUI code.

design vs accessibility: When choosing colors or typography:

design (liquid-glass) vs swiftui: When implementing Liquid Glass:

design (app-composition) vs swiftui: When structuring app architecture:

design vs media (CarPlay): When designing for CarPlay:

Critical Patterns

HIG Quick Decisions (skills/hig.md):

HIG Comprehensive Reference (skills/hig-ref.md):

Liquid Glass (skills/liquid-glass.md):

Liquid Glass Adoption (skills/liquid-glass-ref.md):

SF Symbols (skills/sf-symbols.md):

SF Symbols API (skills/sf-symbols-ref.md):

Typography (skills/typography-ref.md):

App Composition (skills/app-composition.md):

Anti-Rationalization

| Thought | Reality |

|---------|---------|

| "I'll just pick colors that look good" | Semantic colors adapt to dark mode, accessibility settings, and platform automatically. Custom colors need all of that manually. skills/hig.md has the decision tree. |

| "Liquid Glass is just a blur effect" | Liquid Glass is a distinct material system with lensing, tinting, and adaptive behavior. Using .blur() instead creates a visually wrong result. skills/liquid-glass.md explains the difference. |

| "I know which SF Symbol rendering mode to use" | The right mode depends on context (monochrome for toolbars, hierarchical for depth, palette for brand colors). skills/sf-symbols.md has the decision tree. |

| "I'll hardcode font sizes" | Hardcoded sizes break Dynamic Type, violate HIG, and fail accessibility review. skills/typography-ref.md shows the text style system. |

| "I'll handle auth state with a boolean" | A boolean can't represent login, onboarding, and main states without race conditions. skills/app-composition.md has the state machine pattern. |

| "Liquid Glass adoption means rewriting my whole UI" | Most standard SwiftUI/UIKit components adopt automatically. Start by building with latest Xcode, then review. skills/liquid-glass-ref.md has the incremental strategy. |

| "I'll add the SF Symbol animation later" | Symbol effects are the primary way users perceive interactive feedback. Shipping without them feels broken. skills/sf-symbols.md covers selection. |

| "I'll skip the design review, the code works" | HIG compliance affects App Store review. Reviewers reject apps that feel wrong even if they function correctly. skills/hig.md has the review checklist. |

Example Invocations

User: "Should I use a dark or light background?"

-> Read: skills/hig.md

User: "What semantic color should I use for secondary text?"

-> Read: skills/hig-ref.md

User: "How do I implement Liquid Glass in my app?"

-> Read: skills/liquid-glass.md

User: "I need to plan Liquid Glass adoption across my whole app"

-> Read: skills/liquid-glass-ref.md

User: "My SF Symbol is flat, I want it to have depth"

-> Read: skills/sf-symbols.md

User: "What's the SwiftUI API for symbol effects?"

-> Read: skills/sf-symbols-ref.md

User: "Which font should I use for body text?"

-> Read: skills/typography-ref.md

User: "How do I switch between login and main screens?"

-> Read: skills/app-composition.md

User: "Check my app's UI for HIG compliance"

-> Read: skills/hig.md, then /skill axiom-accessibility for contrast/Dynamic Type

User: "I want my download button icon to animate"

-> Read: skills/sf-symbols.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.