AgentSkillsCN

hig-docs

API参考:Apple人机界面指南。查询设计模式、UI组件、无障碍设计、色彩、字体、布局、触觉交互。

SKILL.md
--- frontmatter
name: hig-docs
user-invocable: true
description: "API reference: Apple Human Interface Guidelines. Query for design patterns, UI components, accessibility, color, typography, layout, haptics."
context: fork
agent: Explore

Human Interface Guidelines Reference

Comprehensive reference for designing interfaces that follow Apple's Human Interface Guidelines.

Downloaded Reference Files

All key HIG documentation is available locally (grep-friendly):

Getting Started

FileContentSize
hig-index.mdFull HIG table of contents11KB
designing-for-ios.mdiOS design principles5KB

Foundations

FileContentSize
app-icons.mdApp icon design guidelines14KB
color.mdColor usage and system colors17KB
typography.mdFonts, text styles, Dynamic Type17KB
layout.mdLayout principles, safe areas21KB
materials.mdMaterials, blur effects, vibrancy14KB
motion.mdAnimation principles9KB
accessibility.mdAccessibility best practices19KB
sf-symbols.mdSF Symbols usage21KB

Patterns

FileContentSize
onboarding.mdOnboarding flows6KB
modality.mdModal presentations7KB
launching.mdApp launch experience6KB
feedback.mdUser feedback patterns5KB
playing-haptics.mdHaptic feedback10KB
searching.mdSearch patterns7KB
settings.mdSettings patterns7KB

Components - Navigation

FileContentSize
tab-bars.mdTab bar design11KB
navigation-bars.mdNavigation bar patterns17KB
toolbars.mdToolbar design17KB
sidebars.mdSidebar patterns8KB

Components - Presentation

FileContentSize
sheets.mdSheet presentations11KB
alerts.mdAlert dialogs10KB
action-sheets.mdAction sheets4KB
menus.mdMenu design14KB

Components - Controls

FileContentSize
buttons.mdButton styles and usage17KB
lists-and-tables.mdList and table patterns9KB
toggles.mdToggle/switch design9KB
pickers.mdPicker controls6KB
sliders.mdSlider controls6KB
steppers.mdStepper controls2KB
text-fields.mdText input fields6KB

Searching the Docs

bash
# Find color guidance
grep -i "semantic" color.md

# Find button styles
grep -i "bordered" buttons.md

# Find haptic patterns
grep -i "notification" playing-haptics.md

# Browse the full HIG index
grep -i "navigation" hig-index.md

Fetching Additional Documentation

The sosumi.ai Technique

Apple's developer.apple.com uses JavaScript rendering. Replace with sosumi.ai for LLM-friendly markdown:

code
# Original (doesn't work)
https://developer.apple.com/design/human-interface-guidelines/buttons

# LLM-friendly
https://sosumi.ai/design/human-interface-guidelines/buttons

Downloading Docs via curl

bash
curl -sL "https://sosumi.ai/design/human-interface-guidelines/[topic]" > [topic].md

# Examples:
curl -sL "https://sosumi.ai/design/human-interface-guidelines/progress-indicators" > progress-indicators.md
curl -sL "https://sosumi.ai/design/human-interface-guidelines/segmented-controls" > segmented-controls.md

Common HIG Doc Paths

TopicURL Path
Full Indexhuman-interface-guidelines
iOS Designhuman-interface-guidelines/designing-for-ios
iPadOS Designhuman-interface-guidelines/designing-for-ipados
macOS Designhuman-interface-guidelines/designing-for-macos
App Iconshuman-interface-guidelines/app-icons
Colorhuman-interface-guidelines/color
Typographyhuman-interface-guidelines/typography
Layouthuman-interface-guidelines/layout
Accessibilityhuman-interface-guidelines/accessibility
SF Symbolshuman-interface-guidelines/sf-symbols
Buttonshuman-interface-guidelines/buttons
Tab Barshuman-interface-guidelines/tab-bars
Navigation Barshuman-interface-guidelines/navigation-bars
Sheetshuman-interface-guidelines/sheets
Alertshuman-interface-guidelines/alerts

More Components (Not Downloaded)

Download these as needed:

bash
# Indicators
curl -sL "https://sosumi.ai/design/human-interface-guidelines/progress-indicators" > progress-indicators.md
curl -sL "https://sosumi.ai/design/human-interface-guidelines/activity-rings" > activity-rings.md

# Presentation
curl -sL "https://sosumi.ai/design/human-interface-guidelines/popovers" > popovers.md
curl -sL "https://sosumi.ai/design/human-interface-guidelines/scroll-views" > scroll-views.md

# Selection
curl -sL "https://sosumi.ai/design/human-interface-guidelines/segmented-controls" > segmented-controls.md

# System
curl -sL "https://sosumi.ai/design/human-interface-guidelines/status-bars" > status-bars.md
curl -sL "https://sosumi.ai/design/human-interface-guidelines/home-screen-quick-actions" > home-screen-quick-actions.md

Quick Reference

Button Styles (iOS)

  • Plain - Text only, minimal visual weight
  • Gray - Gray background, for secondary actions
  • Tinted - Tinted background with accent color
  • Filled - Solid background, for primary actions
  • Bordered - Outlined with border
  • Bordered Prominent - Filled background, high prominence

Haptic Feedback Types

  • Selection - Light tap for selection changes
  • Impact - Light/medium/heavy/rigid/soft for collisions
  • Notification - Success/warning/error for outcomes

Safe Areas

  • Always respect safe areas for content
  • Extend backgrounds edge-to-edge
  • Place interactive elements within safe areas

Sources

Apple Documentation

WWDC Sessions

LLM-Friendly Apple Docs (sosumi.ai)

See docs/apple-docs-for-llms.md for full documentation on this technique.