🍎 Apple Design Skill

Apple Human Interface Guidelines (HIG) & Design System Skill for AI Coding Agents

skills.sh License: MIT GitHub stars

English | TiαΊΏng Việt


Equip any AI Coding Agent with official Apple Human Interface Guidelines (HIG), SF Pro typography scale, Dynamic OLED colors, Frosted Glass materials, continuous squircle curvature, and authentic spring motion physics.


⚑ Overview

apple-design-skill is an open-standard agent skill built on the skills.sh / Vercel Labs (npx skills) specification. It enables AI coding assistants (Claude Code, Antigravity, Codex, Cursor, GitHub Copilot, Windsurf, Cline, Roo-Code, etc.) to accurately design, implement, and audit Apple-grade interfaces across Web, iOS, iPadOS, macOS, watchOS, and visionOS.

✨ Highlights:

  • πŸ“– 172 Complete HIG Reference Docs: Official Apple Developer guidelines converted into clean Markdown with 451+ local Retina illustrations.
  • 🎨 Code-Ready Design Tokens & Presets: CSS Variables, Tailwind CSS Preset, and pre-built components (Filled/Tinted Buttons, Frosted Glass Cards, Inset Grouped Lists, Segmented Controls, Sheets).
  • 🚫 Strict Anti-Pattern Enforcement: Eliminates clichΓ© tropes (e.g. purple-on-dark neon glow, harsh undiffused shadows, touch targets < 44pt).
  • πŸ” Automated 0–100 HIG Audit Engine: Built-in CLI tool for codebase linting, WCAG relative luminance contrast calculation, touch target verification, and structured scorecard generation.

πŸš€ Installation Guide (Global Scope)

Install globally so the skill is instantly active across all projects and workspaces.

🌟 Quick Install: All Agents at Once (Global)

npx skills add billythekidz/apple-design-skill -g

πŸ“¦ Specific Agent Setup (Global Scope)

1. Claude Code

Install to global user configuration (~/.claude/skills/apple-design):

npx skills add billythekidz/apple-design-skill -a claude-code -g

Manual git clone alternative:

# macOS / Linux
git clone https://github.com/billythekidz/apple-design-skill.git ~/.claude/skills/apple-design

# Windows (PowerShell)
git clone https://github.com/billythekidz/apple-design-skill.git $HOME\.claude\skills\apple-design

2. Google Antigravity / Gemini CLI

Install to global Antigravity customization directory (~/.gemini/antigravity-cli/skills/apple-design):

npx skills add billythekidz/apple-design-skill -a antigravity -g

Manual git clone alternative:

# macOS / Linux
git clone https://github.com/billythekidz/apple-design-skill.git ~/.gemini/antigravity-cli/skills/apple-design

# Windows (PowerShell)
git clone https://github.com/billythekidz/apple-design-skill.git $HOME\.gemini\antigravity-cli\skills\apple-design

3. Codex (OpenAI Codex CLI)

Install to global Codex skills repository (~/.codex/skills/apple-design):

npx skills add billythekidz/apple-design-skill -a codex -g

Manual git clone alternative:

# macOS / Linux
git clone https://github.com/billythekidz/apple-design-skill.git ~/.codex/skills/apple-design

# Windows (PowerShell)
git clone https://github.com/billythekidz/apple-design-skill.git $HOME\.codex\skills\apple-design

4. Other AI Assistants (Cursor, GitHub Copilot, Windsurf, Cline)

# Cursor
npx skills add billythekidz/apple-design-skill -a cursor -g

# GitHub Copilot CLI / Extension
npx skills add billythekidz/apple-design-skill -a copilot -g

# Windsurf / Cline / Roo-Code
npx skills add billythekidz/apple-design-skill -a windsurf -g

🎯 Operational Modes

AI Agents equipped with this skill operate in two primary workflows:

Mode 1 β€” Design & Build from Scratch

  • Platform Navigation: Selects native paradigms (iOS Bottom Tab Bars, iPadOS Sidebars, macOS Split Views, visionOS Ornaments).
  • Spatial Grid & Corners: Enforces 8pt layout grid with continuous G2 squircle corners (corner-smoothing: 60%).
  • Typography & Color: Applies SF Pro optical sizing with tight letter-spacing and dynamic semantic labels (label, secondaryLabel, systemBackground).
  • Tactile Motion: Uses Apple spring curves (cubic-bezier(0.25, 1, 0.5, 1)) with :active { transform: scale(0.97); } feedback.

Mode 2 β€” Apple HIG Compliance Audit & Scoring

  • Automated Scanning: Scans CSS/HTML/TSX/JSX/Swift codebases and calculates a 0–100 score with a -10 pts per violation rubric.
  • Precision Validation: Computes exact WCAG contrast ratios and 44Γ—44pt touch-target compliance.
  • Confidence Tagging: Classifies findings with 🟒 Tool-verified, 🟑 Needs device test, or πŸ”΄ Assumed.

πŸ’‘ Prompt Examples

  • Web Landing Page:

    "Build a modern product landing page following Apple HIG aesthetics with SF Pro typography, frosted glass header, and spring active buttons."

  • iOS Settings View:

    "Create an iOS Settings screen using the standard Inset Grouped List pattern with squircle icon containers and switch toggles."

  • visionOS Spatial UI:

    "Design a visionOS floating glass panel with subtle specular borders, ornaments, and gaze hover states."

  • Design Audit & Review:

    "Audit this screen against Apple HIG for color contrast, 44pt tap targets, 8pt spacing grid, and dark mode accessibility."


πŸ› οΈ CLI & Audit Engine

Zero-dependency CLI tool built into the package:

# 1. Full codebase scan & 0-100 score generation:
npm run audit

# 2. Check WCAG AA/AAA color contrast ratio:
node skills/apple-design/scripts/audit-apple-design.mjs contrast "#8E8E93" "#FFFFFF"

# 3. Validate touch target size (44x44 pt minimum):
node skills/apple-design/scripts/audit-apple-design.mjs target 32 32

# 4. Run batch JSON checks:
node skills/apple-design/scripts/audit-apple-design.mjs batch audit.json

# 5. Fetch / update all 172 documentation pages and 451 images from Apple CDN:
npm run fetch-hig

πŸ“‹ Audit Scorecard Template:

Use the standard 5-pillar evaluation scorecard at skills/apple-design/templates/apple-hig-audit-scorecard.md.

Rating Tiers:

  • 🟒 90 – 100 pts: Ship β€” Certified Apple HIG compliance. Ready for App Store submission.
  • 🟑 70 – 89 pts: Fix Before Release β€” Structurally compliant, but minor contrast or touch target violations must be resolved.
  • πŸ”΄ < 70 pts: Systematic Redesign β€” Significant accessibility or platform architectural violations detected.

πŸ“ Repository Structure

apple-design-skill/
β”œβ”€β”€ skills/
β”‚   └── apple-design/
β”‚       β”œβ”€β”€ SKILL.md                 # Core instructions & trigger rules for AI agents
β”‚       β”œβ”€β”€ references/              # 172 comprehensive HIG markdown docs + INDEX.md + local images
β”‚       β”œβ”€β”€ assets/                  # apple-tokens.css, apple-components.css, tailwind preset, SwiftUI
β”‚       β”œβ”€β”€ templates/               # apple-hig-audit-scorecard.md
β”‚       └── scripts/                 # audit-apple-design.mjs, fetch-apple-hig.mjs
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── update-hig.yml           # Weekly automated sync with Apple Developer CDN
β”œβ”€β”€ SKILL.md                         # Root skill definition for single-skill discovery
β”œβ”€β”€ package.json                     # NPM manifest & CLI binaries
β”œβ”€β”€ LICENSE                          # MIT License
β”œβ”€β”€ README.md                        # English documentation
└── README.vi.md                     # Vietnamese documentation

πŸ“„ License

Released under the MIT License by @billythekidz.