Sulat.com / Writing on AIWednesday, December 2, 2026
Enter →
Agent Engineering/2 December 2026

Apple’s design guidelines as an agent skill

Peilin Wu's open-source apple-design skill hands a coding agent 123 pages of Apple's Human Interface Guidelines. I ran it through opencode on five models against a deliberately bad phone screen.

Silver 3D Apple logo beside a phone showing a finance app with measurement guides and checkmarks
Illustration: Sulat, featuring the Apple logo

At a glance

  • Peilin Wu's apple-design skill gives a coding agent 123 pages of Apple's Human Interface Guidelines, a Liquid Glass guide and notes for Flutter, React Native, Tauri and Electron.
  • I had five models redesign a deliberately bad phone screen in opencode, once with the skill and once without.
  • Contrast failures went from four of five runs to none, and dark mode from two of five to all five.
  • Tap targets barely moved: three runs missed Apple's 44 point minimum without the skill and two still did with it.
  • Four of the five runs took longer with the skill and all five cost more, a smoke test with one run each.

Peilin Wu’s apple-design is an open-source agent skill that loads Apple’s Human Interface Guidelines into a coding agent, so the agent can review a screen, or redesign it, against them. It carries 123 pages of Apple’s guidelines as Apple published them, a curated Liquid Glass guide, and notes for translating Apple’s vocabulary into Flutter, React Native, Tauri and Electron.

I installed it, wrote a deliberately bad phone screen and had five models redesign it in opencode, once with the skill and once without. Text contrast and dark mode moved a lot. Tap targets barely moved. The skill made four of the five runs slower and all five of them dearer.

What the skill is

The repository is a SKILL.md of about 425 lines, an AGENTS.md, and a references folder. In it are 123 Markdown pages of Apple’s guidelines for iOS, iPadOS and macOS, plus a curated liquid-glass.md, a cross-platform.md that maps Apple’s terms onto other frameworks, a code-audit.md, and a summary of Apple’s archived guidelines from 1987 to 2014. A script, pull-hig.mjs, re-pulls the pages from the JSON behind Apple’s own site in about 170 requests. The bundled snapshot is dated 28 October.

It installs with the skills CLI:

Code
npx skills add dickwu/apple-design-skill

The installer put it in .agents/skills/apple-design, and opencode loaded it when asked. The README lists the same install for Claude Code, Cursor, Codex and Antigravity.

Three boxes: SKILL.md, 8 to 12 HIG pages from 123, then review or redesign, joined by arrows
The skill’s brief picks a handful of Apple’s pages for each job. Illustration: Sulat

The brief tells the agent to read before it cites: load the accessibility, layout, typography and colour pages first, then three to six more depending on what’s on screen, and name the file and heading behind every finding. Past the review there are modes for iPhone Duo, app icons, dark mode, Liquid Glass, onboarding, generative AI features and a code audit that searches source for hand-drawn Apple Pay buttons. The README says those buttons cause App Store Review Guideline 4.9 rejections. An improvement mode plans a token system and one “signature element” before it proposes anything, which is its answer to generic AI-made interfaces.

Where it sits

Apple reintroduced the design principles in the guidelines in June 2026: purpose, agency, responsibility, familiarity, flexibility, simplicity, craft and delight, with a WWDC26 session called Principles of great design. On 9 September it added Designing for iPhone Duo, a new page on the two-display phone, its poses and the toolbars and tab bars that move to the side. The skill bundles both and builds its review around the principles.

It isn’t the only skill of its kind. At least six public repositories package the same guidelines for agents, and they differ mainly in how much of Apple’s text survives.

RepositoryApproach
dickwu/apple-design-skill123 pages in Apple’s own wording, regenerated by script, with a curated Liquid Glass guide, iPhone Duo and code-audit modes. MIT for the repository, not for Apple’s text.
justinwetch/HIGAgentSkills157 references rewritten to roughly a third of Apple’s wording, a /duo workflow for the folding iPhone, and an optional enforce mode where two reviewers score the result. MIT.
ebuntario/apple-hig68 reference files cited to the live guidelines, aimed at SwiftUI, UIKit and AppKit. Version 1.0.0.
tzzs/apple-design-skillA paraphrased summary plus a sitemap of official URLs for the agent to fetch live. Claude Code plugin. MIT.
gotired/apple-design-skillsSix local skills: a router, guidance, web build, review, a render check in light, dark and narrow layouts, and a refresh. Works in Codex and Claude Code.
raintree-technology/hig-doctorAudit tooling with rule counts per framework, from 70 for SwiftUI to 122 for React, on top of 14 reference skills.
Public Apple-design skills for coding agents, from each repository’s own description.

The trade is context against fidelity. Condensed references are cheap to load but are somebody’s summary of Apple. Apple’s pages as published are exact and heavy: the 123 files hold about 172,000 words. The skill copes by telling the agent to open eight to twelve of them, and the runs below did roughly that.

The README is plain about ownership. The skill, the curated guides and the script are MIT-licensed. The guideline text belongs to Apple, carries a source link at the top of every file, and isn’t covered by the MIT licence. The project isn’t affiliated with Apple.

What I ran

The test app is Tally, a 4.8 KB single-file mobile web screen I wrote to break the guidelines on purpose: 9 px text, grey type on white and white type on a gradient, a 26 px add button, switches built from 30 by 16 px divs, emoji for tab icons, a button that pulses forever, remove links 10 px tall and no dark mode. Of 38 text items, 19 fail WCAG AA contrast. The worst is 1.61 to 1.

Purple gradient finance app screen with tiny grey text, small round plus button and emoji tab icons
The deliberately poor starting screen.

opencode 1.19.6 ran each model twice from a clean copy of the folder: once with the skill installed and the prompt naming it, once with no skill. DeepSeek V4.1 Flash ran through Morph, Kimi K3.1 Pro through Synthetic, Claude Haiku 5.5, GPT-6.2 Sol and Gemini 4 Neon through their own APIs. Here are the exact prompts. Without the skill:

Code
index.html in this folder is the home screen of a personal finance web app called Tally, meant to be used on a phone. Redesign it so it feels at home on iOS and follows Apple's Human Interface Guidelines. Keep every piece of content and every working interaction (toggles, add, remove, export). Edit index.html in place, as a single self-contained file with no external resources. Check your work in a browser at 390 by 844 if you can, then reply with a short summary of what you changed.

With the skill, the same text with one sentence in front:

Code
Use the apple-design skill. index.html in this folder is the home screen of a personal finance web app called Tally, meant to be used on a phone. Redesign it so it feels at home on iOS and follows Apple's Human Interface Guidelines. Keep every piece of content and every working interaction (toggles, add, remove, export). Edit index.html in place, as a single self-contained file with no external resources. Check your work in a browser at 390 by 844 if you can, then reply with a short summary of what you changed.

I measured the ten files in headless Chromium at 390 by 844. Contrast is computed from each text item’s rendered colour against its background, taking the worst gradient stop. Hit areas are found by probing which element sits under each point around a control, so extended touch areas count. Dark mode is tested by emulating the phone’s dark setting. I also clicked the toggles, add, remove and export on every file. All ten kept every piece of content and every interaction, though two changed how removal works.

The results

ModelText under 4.5 to 1Dark modeControls under 44 pxTime
DeepSeek V4.1 Flash6, then 0no, then yes5, then 41:32, then 3:30
Kimi K3.1 Pro14, then 0no, then yes5, then 02:33, then 4:30
Claude Haiku 5.58, then 0yes, then yes0, then 10:52, then 1:53
GPT-6.2 Sol0, then 0no, then yes0, then 02:50, then 4:36
Gemini 4 Neon7, then 0yes, then yes4, then 03:47, then 3:34
Each cell reads without the skill, then with it. One run per model and setup, so this is a smoke test, not a benchmark. The starting screen had 19 text items under 4.5 to 1.
Before and after boxes: failed contrast 4 of 5 to 0, dark mode 2 of 5 to 5, missed 44px taps 3 to 2
Contrast and dark mode moved the most. Tap targets barely did. Illustration: Sulat

Without the skill, every model already pushed Tally towards iOS: system fonts, grouped lists, a proper switch, a tab bar with drawn icons. What they missed was the checking. Four of the five left text under the contrast floor, with the worst item at 2.2 to 1 in the Haiku and Neon runs. GPT-6.2 Sol was the exception and passed with nothing to fix. With the skill, no run failed, and the lowest ratio anywhere was 4.69 to 1. Text size followed: four unaided runs kept 10 px text, where Apple’s minimum for iOS is 11 points. Every skill run floored at 11.

Ten phone screenshots of the Tally app, five without the skill above and five with it below, light mode
The ten finished screens in light mode, rendered at 390 by 844.

Dark mode is where the skill changed the output most visibly. Three of the five unaided runs never added it. All five skill runs did, and four of the five added a higher-contrast variant as well, which none of the unaided runs did.

Ten phone screenshots in dark appearance; three of the no-skill screens stay light, all five skill screens go dark
The same ten screens with the phone set to dark. Three of the five unaided runs stay light.

Tap targets are the weak spot. Apple asks for a hit region of at least 44 by 44 points. Three unaided runs fell short: DeepSeek and Kimi left the add button and every Remove control at 36 to 40 px, and Neon left Remove links 19 px tall. With the skill, Kimi and Neon cleared 44. DeepSeek’s Remove links grew to 42 px, though its own summary said it had met 44, and Haiku’s new Edit button is 38 px tall.

What the skill did to the design

Two skill runs changed the interaction, not just the look. GPT-6.2 Sol added an undo bar after a row is removed, and DeepSeek added an Undo toast; both trace to the guidelines’ agency principle, which asks for easy recovery from mistakes. Haiku moved Remove behind an Edit button on the list, the way iOS lists work. That follows the pattern and still removes rows, but it isn’t the flow I asked it to keep, and it’s the one place a skill run bent the brief.

The unaided runs did none of this. They restyled and left behaviour alone.

What it costs

Paired bars of wall time for five models; the skill run is longer for four of them
Four of the five runs took longer with the skill. Illustration: Sulat

The extra time is reading. DeepSeek, Kimi, Neon and Sol opened between 11 and 13 reference pages each; Haiku read them through shell commands. By opencode’s own cost estimate each run cost more with the skill: DeepSeek about 2 cents became 7 cents, Haiku 1 cent became 3, Kimi 18 cents became 54, Sol 18 cents became 42 and Neon 38 cents became 69. Neon is the one run that came out faster, 3:34 against 3:47.

Watch a run

Here is one full run in the opencode terminal, DeepSeek V4.1 Flash with the skill, from the typed prompt to its summary, uncut. It’s a separate run from the one in the table, so its time differs.

DeepSeek V4.1 Flash redesigning Tally with the skill, in full. Recording: Sulat

How to use it

  1. Install it with npx skills add dickwu/apple-design-skill and say “use the apple-design skill” in the prompt.
  2. Name the platform and framework, since the skill translates Apple’s terms for Flutter, React Native, Tauri and Electron.
  3. Ask for a review first if you want to keep control, since a redesign prompt hands the agent the whole file.
  4. Check the numbers it claims. Ask the agent to measure hit areas and contrast in a browser, because a summary that says 44 points can still hide a 42 pixel control.
  5. Re-run node scripts/pull-hig.mjs before you rely on newer pages, as the bundled snapshot is dated 28 October.

That is one screen and one run per model and setup, so treat the timings, the costs and the tap-target result as a smoke test. The contrast and dark-mode results were the same in every model that ran with the skill.

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.