Token导航 LogoToken导航

Agent Skill · 前端设计

axiom-hig(公理高)

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

axiom-hig 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 1,596。

总安装 4,725周安装 193GitHub Stars 873下载 1,513核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助前端页面、组件、样式和交互逻辑的开发与维护,适合生成或审查 React、Vue、CSS 等相关代码。提供 HIG 合规性快速参考,涵盖颜色、字体、布局及跨平台设计一致性等常见决策点。通过 GitHub 仓库安装,使用 npx skills add 命令添加指定技能,需结合原始 README 进一步确认具体用法。

使用时需结合项目现有设计系统和路由结构,避免生成孤立片段;涉及页面改动时应配合本地预览验证效果。axiom-hig 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/axiom-hig

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/charleswiltgen/axiom --skill axiom-hig;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

axiom-hig 怎么安装?

在终端执行 npx skills add https://github.com/charleswiltgen/axiom --skill axiom-hig。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

axiom-hig 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

axiom-hig 需要什么权限?

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

axiom-hig 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

axiom-hig 用的人多吗?

公开数据是累计安装 4,725 次,近一周安装 193 次,下载 1,513 次,GitHub 873 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

axiom-hig 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
axiom-hig

公理高 · 本页

4,725873只读MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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)

平台分布

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