π Apple Design Skill
Apple Human Interface Guidelines (HIG) & Design System Skill for AI Coding Agents
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 violationrubric. - 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.
No comments yet
Be the first to share your take.