Hig

From JubaKitiashvili/everything-react-native-expo · View interactive version

Hig is an AI agent skill from the GitHub repository JubaKitiashvili/everything-react-native-expo. Apple HIG design intelligence — build, review, animate, and analyze with Apple Human Interface Guidelines for React Native/Expo

How to use this skill

Skill file

Apple HIG Design Intelligence

When to Use

Intent Router

Detect intent from the user's message and route to the appropriate mode:

| Intent Keywords | Mode | What Happens |

|---|---|---|

| build, create, make, design, component | Build | Apply HIG rules while creating UI |

| review, check, scan, audit, compliance | Review | Run HIG scanner on source files |

| animate, motion, spring, gesture, transition | Animate | Implement animations with HIG physics |

| video + file path | Analyze | Extract motion spec from reference video |

| tokens, theme, design system | Tokens | Generate HIG design tokens |

| No clear intent | Interactive | Ask what the user wants |

Build Mode

When building UI, load and apply these rules from design/hig/rules/:

  1. Always: design-system.md (typography, colors, spacing, corners)
  2. If animation involved: animation.md + craft.md (spring physics)
  3. If navigation/modals: patterns.md (sheets, tabs, transitions)

Non-negotiable requirements:

Spring presets (use from design/hig/index.ts):

Review Mode

Run the HIG scanner from design/scanner/:

/erne-hig review ./src/screens/
/erne-hig review ./src/components/Button.tsx

Output: violations grouped by severity (critical → low), HIG score (0-100), grade (A-F), and fix suggestions.

Integrate with /erne-quality-gate — scanner runs automatically alongside code-reviewer and performance-profiler.

Animate Mode

Load craft.md + animation.md rules. Key patterns:

Analyze Mode

Process reference video through design/video/:

/erne-hig video ./reference.mp4

Auto-detects project stack, generates Reanimated/Gesture Handler code matching the video's motion patterns.

Tokens Mode

Generate typed design tokens from design/tokens/:

/erne-hig tokens

Creates theme/hig-tokens.ts with colors, typography, spacing, shadows — ready for useColorScheme and StyleSheet.create.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.