# Apple HIG Skills Agent-native Apple Human Interface Guidelines: a structured index of Apple's HIG delivered as Claude Skills, with an MCP server and a universal compliance auditor as the verification loop. Built for AI coding agents; usable by humans. [![GitHub stars](https://img.shields.io/github/stars/raintree-technology/hig-doctor?style=social)](https://github.com/raintree-technology/hig-doctor/stargazers) - **Skills corpus** — 14 skills and 156 reference topics covering the complete HIG (foundations, components, patterns, inputs, platforms, technologies). Snapshot dated 2025-02-02; canonical content remains at [developer.apple.com/design/human-interface-guidelines](https://developer.apple.com/design/human-interface-guidelines/). - **MCP server** — stdio Model Context Protocol server exposing `hig_list_skills`, `hig_lookup`, and `hig_audit` for Claude Desktop, Cursor, Windsurf, and Claude Code. - **Audit CLI** — universal HIG compliance scanner across 12 frameworks (SwiftUI, UIKit, React, Vue, Svelte, Angular, Compose, Android XML, React Native, Flutter, CSS, HTML). Emits severity-bucketed markdown/JSON with a pass/fail CI gate. Content is © Apple Inc.; this repository provides organization, cross-referencing, and detection rules for AI agent use. MIT-licensed for structure and tooling. ## Star History Star history chart for raintree-technology/hig-doctor ## Install as a Claude Code plugin ```bash /plugin marketplace add raintree-technology/hig-doctor ``` Or add as a git submodule into any project's `.claude/` directory. ## MCP server Expose the skills and audit tool to any MCP-compatible client. ```bash # From a git clone of this repo bun packages/hig-doctor/src-mcp/src/index.ts ``` Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json`): ```json { "mcpServers": { "hig-doctor": { "command": "bun", "args": ["/absolute/path/to/hig-doctor/packages/hig-doctor/src-mcp/src/index.ts"] } } } ``` Tools: | Tool | Purpose | |------|---------| | `hig_list_skills` | Enumerate skills, descriptions, and reference topics. | | `hig_lookup` | Fetch HIG reference markdown by skill (and optional topic). | | `hig_audit` | Run the HIG compliance audit on a project directory. | Set `HIG_SKILLS_DIR` if you relocate the `skills/` folder. ## HIG Audit CLI Scan any project for Apple HIG compliance. Works with SwiftUI, UIKit, React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, React Native, Flutter, Jetpack Compose, Android XML, and plain HTML/CSS. Detects 348 patterns across accessibility, color systems, typography, responsive layout, dark mode, motion, i18n, and more. Requires [Bun](https://bun.sh). ```bash cd packages/hig-doctor/src-termcast bun run audit ``` Example output: ``` HIG Audit: my-app 2 serious nextjs · 412 detections · 48 files ──────────────────────────────────────────────────────────────────── Foundations 312 ██████████████░░░░░░ 286 good 2 serious Layout & Navigation 41 ████░░░░░░░░░░░░░░░░ 9 good Controls 24 ░░░░░░░░░░░░░░░░░░░░ Input Methods 15 ██████████████░░░░░░ 11 good ──────────────────────────────────────────────────────────────────── Totals 412 306 good 2 serious 4 moderate Serious issues found — Significant HIG violations degrade UX. ``` ### Options | Flag | Description | |------|-------------| | `--export` | Write a full audit report to `/hig-audit.md` | | `--stdout` | Print raw audit markdown to stdout (pipe to an AI for evaluation) | | `--json` | Print structured results as JSON (for CI/scripts) | | `--fail-on ` | Exit 1 if any concern at/above `critical`, `serious`, or `moderate` is found | | `--help` | Show help | ### Severity model Concerns are classified as: - **critical** — accessibility-breaking (missing alt, empty button, `user-scalable=no`, `