# Apple HIG skill: Apple design rules and an iPhone Duo redesign (justinwetch/HIGAgentSkills) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-19 against commit 2206ff9 (version 2026-09-27).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/justinwetch/higagentskills/

## Explain it to a non-programmer
Your AI assistant gets a shortened copy of Apple's design guidelines for iPhone, iPad, Mac, Apple TV, Vision Pro and Apple Watch. When you ask a design question or want a screen reviewed, it reads the matching pages and quotes the rule before applying it. A /duo command walks an existing iPhone app through a redesign for the folding iPhone Duo, and an optional strict mode has two separate reviewers score and fix your interface.

## Who it is for
- You design or build an app for an Apple device and want answers that quote Apple's own rules and exact sizes
- You want a review of an app's navigation, accessibility or layout against Apple's guidelines
- You ship an iPhone app and want to adapt it to the folding iPhone Duo in its own Swift code
- You design any interface and want established design principles to check against
- Not for: You want web mockups or HTML previews of a redesign: Duo mode never makes them
- Not for: Your app is web or cross-platform and you want the full Duo redesign: the Duo workflow targets native iOS apps

## What it is
- Kind: knowledge, command, scripts
- License: MIT
- Repository: https://github.com/justinwetch/HIGAgentSkills

## What it does
- Ordinary guidance (default): reads 16 foundation pages every time, then the page for your platform, the pages for the components you name and one hop of related pages
- Quotes the short Apple rule word for word, then gives only the application you asked for
- Keeps exact values, platform differences and the strength of each recommendation; says when it is unsure
- Duo mode (/duo): resume, assess, match, decide, build, verify, in that fixed order, in the app's own code
- Enforce mode (only when asked by name): two independent reviewers score the interface, the agent fixes what they find, up to three cycles, pass at 90/100
- Never cuts: exact values and qualifiers, platform differences, recommendation strength, the user's choices in Duo mode
- Level ordinary: Answers and reviews from the guidelines (default)
- Level duo: Guided iPhone Duo redesign of one app journey at a time
- Level enforce: Scored review and repair loop with two independent reviewers

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| apple-hig | plain language ("Use apple-hig to review ...") | no | Answers design questions and reviews screens using Apple's guidelines |
| duo | /duo [journey or screens], or "Use apple-hig in Duo mode for <journey>" | yes | Redesigns one flow of your existing iPhone app for the folding iPhone Duo |
| enforce mode | plain language ("Use apple-hig in enforce mode to review and fix this interface") | yes | Two separate reviewers score your interface, the assistant fixes what they find and checks again |

### apple-hig
- Asks for: Your question or the screens to review
- Asks for: The platform and device, if not obvious
- Asks for: Any platform or topic to leave out
- Gives: A short quote of the Apple rule
- Gives: How it applies to your case, with exact values
- Gives: Each platform's rule stated separately where they differ
- Say: "Use apple-hig to review the navigation and accessibility of this iOS app."

### duo
- Asks for: The journey or screens to adapt (otherwise it picks the app's main one)
- Asks for: Your choices on its recommendations
- Asks for: "continue" to resume a later session
- Gives: A short screen-by-screen summary of the current design
- Gives: A table of decisions with options, a recommendation and the source
- Gives: Native code changes in SwiftUI or UIKit
- Gives: A list of checks it ran and checks it could not run
- Gives: duo-notes.md in your project
- Say: "/duo the library and reading flow"

### enforce mode
- Asks for: The interface to review and fix
- Asks for: An agent that can start subagents and run Python 3.10+
- Asks for: A way to see the real result (rendered screens or running the app)
- Gives: A status: pass, needs changes or blocked
- Gives: Fixes made and findings left
- Gives: Overall and per-area scores
- Gives: Reviewer names and the number of correction cycles
- Say: "Use apple-hig in enforce mode to review and fix this interface"

## Know before installing
- It can switch on for any interface work, not only Apple apps: its description asks to be used for any digital interface.
- The guideline pages are a shortened rewrite of Apple's text, and the license does not cover Apple's material.
- Installing includes the /duo command; the skill tells the assistant to copy it into your user-level command folder if your agent does not pick it up.
- Duo mode edits your app's code and stops for your choices; it does not commit unless you ask.
- Upgrading from the June release: replace the whole folder, the pages moved.
- Not affiliated with Apple.

## Install (official commands)
- Any agent (ask it to install): Paste the README's install prompt to your agent; it installs the skill and the /duo command.
- Any agent with a skills folder (manual): Extract the complete apple-hig/ folder from the release ZIP into your agent's skills folder (one project or all projects). If /duo does not appear after a restart, copy commands/duo.md into your agent's custom command or prompt folder. Remove: `Delete the apple-hig folder and the copied duo.md`.
- Agents without skill discovery: Give the agent access to the extracted SKILL.md and the files next to it.

## What runs on the user's machine
- Code on the machine: yes (the optional Python helpers (routing, enforce scoring))
- Network: optional
- Ordinary questions: If Python is available, the assistant saves your request to a text file in a temporary folder outside your project and runs scripts/hig_route.py to pick the pages. Standard library only, reads local files, no network. Without Python it does the same steps by hand.
- Enforce mode: The assistant runs scripts/hig_enforce.py on review files it writes under work/hig-enforce/ in your project; the script checks file hashes and arithmetic and writes a result.json there.
- Duo mode: The assistant edits your app's code and keeps duo-notes.md in the project root; it may build and run the simulator if Xcode is available.
- Install: The assistant may copy commands/duo.md into your user-level custom command folder.
- Never at runtime: The repository also holds maintainer scripts that download pages from developer.apple.com and build the release ZIP. They are not part of the runtime package and the skill never tells the assistant to run them; network use happens only if someone runs them by hand.

## Examples (from the pack's own files)
- An enforce-mode finding: output format defined in references/enforce.md

## Author's numbers (as reported, not run by AgentGid)
- 157 references, rewritten from 261,621 to 90,027 words of Apple's guidance (65.6% shorter). Source: justinwetch/HIGAgentSkills/README.md
- Full reference files total 163,033 o200k_base tokens; the 16 foundations 27,096 (Static file counts, not measured per-request loads). Source: justinwetch/HIGAgentSkills/README.md
- All 157 topics passed independent source review. Source: justinwetch/HIGAgentSkills/README.md

## Steps only the person can do
- Choose among the options in the Duo decision table (or say up front to use the assistant's recommendations) (The conversation, at Duo Stage 3) Then: The assistant builds the chosen changes natively in Apple's order
- Install Xcode 27.1 / the iOS 27.1 SDK if you want builds and the iPhone Duo simulator; the assistant does not upgrade Xcode for you (references/duo.md (Stage 4)) Then: The assistant can build, render previews and run the simulator checks
- Check camera preview and mirroring on a physical iPhone Duo (references/duo.md (Stage 5)) Then: The camera check moves from "not run" to a result

## Mistakes to avoid
- Not: Copy the new release over the June install. Instead: Delete the old skill folder and put the new one in its place; check for a second copy with the same name. Why: The reference pages moved folders between releases
- Not: Install the skill folder only and expect /duo to work. Instead: Check that /duo appears; if not, copy commands/duo.md into the agent's custom command or prompt folder. Why: Some agents do not pick the command up from the skill folder
- Not: Expect an ordinary review to score and fix the interface. Instead: Ask for enforce mode by name, with subagents, Python 3.10+ and a way to observe the result available. Why: Only an explicit request starts enforce mode; without its capabilities it returns blocked
- Not: Ask /duo for an HTML or image mockup of the new design. Instead: Ask for SwiftUI previews, or a description and the code diff. Why: Duo mode forbids web and image mockups even as a fallback
- Not: Treat Duo simulator results as proof for a real device. Instead: Check camera preview and mirroring on a physical iPhone Duo. Why: The workflow says a simulator does not prove on-device behaviour

## What leaves the machine
- Requests for Apple's guideline pages, with a User-Agent naming the project → developer.apple.com, Only if someone runs the maintainer update scripts (scripts/crawl_apple_hig.py, scripts/capture_native_hig.py) by hand; not during normal use. Opt out: Do not run the maintainer scripts; the runtime package excludes them

## Lines in the pack aimed at agents (ask the person first)
- "copy `commands/duo.md` into the host's custom slash-command or custom prompt directory (user-level unless the user asks for one project)" (SKILL.md): This writes outside the project into the user's agent configuration. Ask the person before copying, and say where the file goes.
- "Also use when the user is designing any digital interface and could benefit from established design principles, even without an explicit Apple platform context." (SKILL.md): Broad trigger: on non-Apple work, ask whether Apple's guidelines should apply before loading 16 or more reference pages.

## May I use it like this?
- commercial-app: conditions (MIT covers the code and original material; the repo says the license does not extend to Apple's guideline material the reference files are distilled from)
- redistribute-files: conditions (MIT for the repo's own files (keep the notice); references/hig/, distilled/ and the Duo files are distilled from Apple material the license does not claim to cover)
- client-work: conditions (MIT for the code and original material; Apple's material is outside the license)
- ai-training: conditions (The repo grants MIT only for its own material; the reference files are rewritten from Apple's guidelines, which it does not license)

## Which one to pick
- If You want Apple's guidelines quoted rule by rule for any Apple platform, plus an iPhone Duo redesign workflow: skill:justinwetch/HIGAgentSkills
- If You build in Flutter, Tauri, Electron or React Native and want an Apple-style design review: skill:dickwu/apple-design-skill
- If You need SwiftUI code best practices rather than design rules: skill:twostraws/SwiftUI-Agent-Skill

## Works well with
- skill:twostraws/SwiftUI-Agent-Skill: Duo mode builds changes in SwiftUI; a SwiftUI code skill covers the code side
- skill:conorluddy/ios-simulator-skill: Duo Stage 5 runs checks in the iOS simulator

## Works in and needs
- Works in Any agent with a skills folder: skills folder
- Works in Agents without skill discovery: files given to the agent
- Needs Python 3.10+: Optional routing helper; required for enforce mode scoring
- Needs Subagents: Enforce mode uses two independent reviewers
- Needs Xcode 27.1 with the iPhone Duo simulator: Duo mode verification, where available

## How to tell it works
After installing, ask: "Use apple-hig to review the navigation and accessibility of this iOS app." The answer should quote short Apple rules before applying them. For /duo, it should stop after a decision table and wait for your choices.

## Related
- shadcn-ui/lint

## Safety
Skills are instructions your assistant follows: read SKILL.md before installing. Duo and enforce mode edit your app's code, and the install step may copy a command file into your user-level command folder.
