Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问clear审计通过

axiom-hig公理高

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

4,725

周安装

193

GitHub Stars

873

下载量

1,513
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:axiom-hig(公理高)
来源仓库:https://github.com/charleswiltgen/axiom
仓库路径:skills/axiom-hig
安装命令:
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-hig
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-hig

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护,适合生成或审查 React、Vue、CSS 等相关代码。

  • 提供 HIG 合规性快速参考,涵盖颜色、字体、布局及跨平台设计一致性等常见决策点。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令添加指定技能,需结合原始 README 进一步确认具体用法。
  • 使用时需结合项目现有设计系统和路由结构,避免生成孤立片段;涉及页面改动时应配合本地预览验证效果。
  • axiom-hig 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Apple Human Interface Guidelines — Quick Reference

When to Use This Skill

Use when:

  • Making visual design decisions (colors, backgrounds, typography)
  • Reviewing UI for HIG compliance
  • Answering "Should I use a dark background?"
  • Choosing between design options
  • Defending design decisions to stakeholders
  • Quick lookups for common design questions

Related Skills

  • Use axiom-hig-ref for comprehensive details and code examples
  • Use axiom-liquid-glass for iOS 26 material design implementation and version-conditional design (supporting both pre-Liquid Glass and Liquid Glass in the same app)
  • Use axiom-liquid-glass-ref for iOS 26 app-wide adoption guide with backward compatibility strategy
  • Use axiom-accessibility-diag for accessibility troubleshooting

Version-Conditional Design

When supporting both iOS 25 (pre-Liquid Glass) and iOS 26+, see axiom-liquid-glass for the adoption strategy — it covers when to use #available(iOS 26, *), how to degrade gracefully, and which system components adopt Liquid Glass automatically vs which need explicit opt-in.


Quick Decision Trees

Background Color Decision

Is your app media-focused (photos, videos, music)?
├─ Yes → Consider permanent dark appearance
│        WHY: "Lets UI recede, helps people focus on media" (Apple HIG)
│        EXAMPLES: Apple Music, Photos, Clock apps use dark
│        CODE: .preferredColorScheme(.dark) on root view
│
└─ No → Use system backgrounds (respect user preference)
         CODE: systemBackground (adapts to light/dark automatically)
         GROUPED: systemGroupedBackground for iOS Settings-style lists

Apple's guidance: "In rare cases, consider using only a dark appearance in the interface. For example, it can make sense for an app that enables immersive media viewing to use a permanently dark appearance."

Color Selection Decision

Do you need a specific color value?
├─ No → Use semantic colors
│        label, secondaryLabel, tertiaryLabel, quaternaryLabel
│        systemBackground, secondarySystemBackground, tertiarySystemBackground
│        WHY: Automatically adapts to light/dark/high contrast
│
└─ Yes → Create Color Set in asset catalog
         1. Open Assets.xcassets
         2. Add Color Set
         3. Configure variants:
            ├─ Light mode color
            ├─ Dark mode color
            └─ High contrast (optional but recommended)

Key principle: "Use semantic color names like labelColor that automatically adjust to the current interface style."

Font Weight Decision

Which font weight should I use?
├─ ❌ AVOID: Ultralight, Thin, Light
│            WHY: Legibility issues, especially at small sizes
│
├─ ✅ PREFER: Regular, Medium, Semibold, Bold
│             WHY: Maintains legibility across sizes and conditions
│
└─ Headers: Semibold or Bold for hierarchy
            Body: Regular or Medium

Apple's guidance: "Avoid light font weights. Prefer Regular, Medium, Semibold, or Bold weights instead of Ultralight, Thin, or Light."


Core Principles Checklist

Before Shipping Any UI

Verify every screen passes these checks:

Appearance

  • Works in Light Mode
  • Works in Dark Mode
  • Passes with Increased Contrast enabled
  • Passes with Reduce Transparency enabled

Typography

  • Supports Dynamic Type (text scales to 200%)
  • No light font weights (Regular minimum)
  • Hierarchy clear at all text sizes
  • No truncation at large text sizes

Accessibility

  • Contrast ratio ≥ 4.5:1 minimum
  • Contrast ratio ≥ 7:1 for small text (recommended)
  • Touch targets ≥ 44x44 points
  • Information conveyed by more than color alone
  • VoiceOver labels for all interactive elements

Motion

  • Respects Reduce Motion setting
  • Animations can be canceled/skipped
  • No auto-playing video without controls

Localization

  • No hardcoded strings in images
  • Right-to-left language support
  • Proper text directionality

Common Design Questions

Q: Should my app have a dark background?

A: Only for media-focused apps (photos, videos, music) where content should be the hero. Use system backgrounds for everything else.

Apple's own apps:

AppBackgroundReason
MusicDarkAlbum art is focus
PhotosDarkImages are hero
ClockDarkNighttime use
NotesSystemDocument editing
SettingsSystemUtilitarian

Code:

// ❌ WRONG - Don't override unless media-focused
.background(Color.black)

// ✅ CORRECT - Let system decide
.background(Color(.systemBackground))

Q: What's the right background color?

A: Use systemBackground which adapts to light/dark automatically. For grouped content (like iOS Settings), use systemGroupedBackground.

Color hierarchy:

  • Primary: systemBackground - Main background
  • Secondary: secondarySystemBackground - Grouping elements
  • Tertiary: tertiarySystemBackground - Grouping within secondary
// ✅ Standard list
List { }
    .background(Color(.systemBackground))

// ✅ Grouped list (Settings style)
List { }
    .listStyle(.grouped)
    .background(Color(.systemGroupedBackground))

Q: How do I ensure legibility?

A: Use semantic label colors, maintain 4.5:1 contrast, avoid light font weights.

Label hierarchy:

// Most prominent
Text("Title").foregroundStyle(.primary)

// Subtitles
Text("Subtitle").foregroundStyle(.secondary)

// Tertiary information
Text("Detail").foregroundStyle(.tertiary)

// Disabled text
Text("Disabled").foregroundStyle(.quaternary)

Q: Should I use SF Symbols or custom icons?

A: SF Symbols unless you need brand-specific imagery. They scale with Dynamic Type and adapt to appearance automatically.

Benefits of SF Symbols:

  • 5,000+ symbols included (SF Symbols 5)
  • Automatic light/dark adaptation
  • Scale with Dynamic Type
  • Become bolder with Bold Text accessibility
  • Nine weights matching San Francisco font

When to use custom:

  • Brand-specific imagery
  • App-specific concepts not in SF Symbols
  • Unique visual style requirement

Q: Light/Dark Mode or user choice?

A: Always support both. Never create app-specific appearance settings.

Apple's guidance: "Avoid creating app-specific appearance settings. Users expect apps to honor their systemwide Dark Mode choice. An app-specific appearance mode option creates more work for people because they have to adjust more than one setting to get the appearance they want."

Q: What contrast ratio do I need?

A: 4.5:1 minimum for normal text, 7:1 recommended for small text.

WCAG Contrast Standards:

  • AA (required): 4.5:1 for normal text, 3:1 for large text (18pt+/14pt+ bold)
  • AAA (enhanced): 7:1 for normal text, 4.5:1 for large text
  • Apple guidance: Use semantic colors which automatically meet AA requirements

Testing: Use online contrast calculators or Xcode's Accessibility Inspector.

Q: What's the minimum touch target size?

A: 44x44 points on iOS/iPadOS, with spacing between targets.

Platform-specific:

  • iOS/iPadOS: 44x44 points minimum
  • macOS: 20x20 points minimum; larger for primary actions
  • watchOS: Use system controls (optimized for small screen)
  • tvOS: 60+ point spacing for focus clarity

Design Review Checklist

When Reviewing Any Design

Use this checklist for design reviews, App Store submissions, or stakeholder presentations:

Content-First Design

  • Does UI defer to content? (Not competing for attention)
  • Is branding restrained? (No logo on every screen)
  • Are backgrounds content-appropriate? (Media apps dark, others system)

Platform Consistency

  • Does it feel native to iOS/iPad/Mac?
  • Uses system colors and fonts?
  • Standard gestures work as expected?
  • Navigation patterns familiar?

Accessibility Compliance

  • All contrast ratios meet requirements?
  • All touch targets ≥ 44x44 points?
  • Information conveyed beyond color?
  • VoiceOver labels complete?
  • Dynamic Type supported?

Light & Dark Modes

  • Works in both appearance modes?
  • Colors adapt automatically?
  • No hardcoded color values?
  • Increased Contrast tested?

Localization-Ready

  • No hardcoded strings in images?
  • RTL language support?
  • Text doesn't truncate?
  • Layouts adapt to text size?

Design Review Pressure: Defending HIG Decisions

The Problem

In design reviews, you'll hear:

  • "Let's add our logo to every screen for brand consistency"
  • "Use light font weights—they look more elegant"
  • "Make a custom appearance toggle—some users prefer dark"
  • "This screen needs a splash screen for our brand"

These violate HIG. Here's how to push back professionally.

Red Flags — Requests That Violate HIG

If you hear ANY of these, reference this skill:

  • "Add logo to navigation bar" — Wastes space, distracts from content
  • "Use Ultralight font" — Legibility issues, fails accessibility
  • "Custom dark mode toggle" — Creates more work for users, ignores system preference
  • "Splash screen for branding" — Launch screens can't include branding
  • "Custom brand color for all text" — May fail contrast requirements

How to Push Back Professionally

Step 1: Show the HIG Guidance

"I want to make this change, but let me show you Apple's guidance:

[Show the relevant HIG section from this skill or hig-ref]

Apple explicitly recommends against this because..."

Step 2: Demonstrate the Risk

For contrast issues:

  • Show the design at 4.5:1 contrast (passing)
  • Show their proposal (failing)
  • Explain App Store rejection risk

For appearance toggles:

  • Show iOS Settings → Display & Brightness
  • Explain users already have this control
  • Demonstrate confusion of two separate settings

Step 3: Offer Compromise

"I understand the brand concern. Here are HIG-compliant alternatives:

1. Use your brand color as the app's tint color
2. Feature branding in onboarding (not launch screen)
3. Use your accent color for primary actions
4. Include subtle branding in content, not chrome"

Step 4: Document the Decision

If overruled:

Slack message to PM + designer:

"Design review decided to [violate HIG guidance].

Important risks to monitor:
- App Store rejection (HIG violations)
- Accessibility issues (users with visual impairments)
- User complaints (departure from platform norms)

I'm flagging this proactively. If we see issues after launch,
we'll need an expedited follow-up."

When to Accept the Design Decision

Sometimes designers have valid reasons to override HIG. Accept if:

  • They understand the HIG guidance
  • They're willing to accept rejection/accessibility risks
  • You document the decision in writing
  • They commit to monitoring post-launch feedback

Three Core HIG Principles

Every design decision should support these principles:

1. Clarity

Definition: Content should be paramount, interface elements should defer to content.

In practice:

  • White space is your friend
  • Every element has a purpose
  • Remove anything that doesn't serve the user
  • Users should know what they can do without instructions

2. Consistency

Definition: Use standard UI elements and familiar patterns.

In practice:

  • Standard gestures work as expected
  • Navigation follows platform conventions
  • Colors and fonts use system values
  • Familiar components in familiar locations

3. Deference

Definition: UI shouldn't compete with content for attention.

In practice:

  • Subtle backgrounds, not bold
  • Navigation recedes when not needed
  • Content is the hero
  • Branding is restrained

From HIG: "Deference makes an app beautiful by ensuring the content stands out while the surrounding visual elements do not compete with it."


Platform-Specific Quick Tips

iOS

  • Portrait-first design
  • One-handed reachability
  • Bottom tab bar for primary navigation
  • Swipe back gesture

iPadOS

  • Sidebar-adaptable layouts
  • Split view support
  • Pointer interactions
  • Arbitrary window sizing (iOS 26+)

macOS

  • Menu bar for commands
  • Dense layouts acceptable
  • Pointer-first interactions
  • Window chrome and controls

watchOS

  • Glanceable interfaces
  • Full-bleed content
  • Minimal padding
  • Digital Crown interactions

tvOS

  • Focus-based navigation
  • 10-foot viewing distance
  • Large touch targets
  • Gestural remote

visionOS

  • Spatial layout
  • Glass materials
  • Comfortable viewing depth
  • Avoid head-anchored content

Resources

WWDC: 356, 2019-808

Docs: /design/human-interface-guidelines, /design/human-interface-guidelines/color, /design/human-interface-guidelines/dark-mode, /design/human-interface-guidelines/typography

Skills: axiom-hig-ref, axiom-liquid-glass, axiom-liquid-glass-ref, axiom-accessibility-diag


Last Updated: Based on Apple HIG (2024-2025), WWDC25-356, WWDC19-808 Skill Type: Discipline (Quick decisions, checklists, pressure scenarios)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.64%
按下载量换算433

Codex

21.14%
按下载量换算320

OpenCode

18.49%
按下载量换算280

Antigravity

12.82%
按下载量换算194

Cursor

7.58%
按下载量换算115

windsurf

3.35%
按下载量换算51

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills