hig-doctor-audit
关于
This skill performs automated audits of app projects against Apple's Human Interface Guidelines across multiple frameworks including SwiftUI, UIKit, React Native, and Flutter. It generates severity reports and can be integrated into CI pipelines to enforce compliance. Developers should use it when they need to scan for accessibility issues, design violations, or verify HIG conformance before deployment.
快速安装
Claude Code
推荐npx skills add raintree-technology/claude-starter -a claude-code/plugin add https://github.com/raintree-technology/claude-startergit clone https://github.com/raintree-technology/claude-starter.git ~/.claude/skills/hig-doctor-audit在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
HIG Doctor Audit
Use this skill as the verification loop for Apple HIG work. It complements the hig-* reference skills: run the audit to find concrete concerns, then use the matching HIG skill and reference topic to fix them.
Tooling
HIG Doctor is documented at https://apple.raintree.technology and published as hig-doctor.
npx hig-doctor ./path/to/project
npx hig-doctor ./path/to/project --export
npx hig-doctor ./path/to/project --stdout
npx hig-doctor ./path/to/project --json
npx hig-doctor ./path/to/project --fail-on critical
Requires Node 20+ for the published package. From the local source repo, the Bun entrypoint is:
cd /Users/mb1/Code/secondary/hig-doctor/packages/hig-doctor/src-termcast
bun run audit ./path/to/project
Workflow
- Confirm the project path and target platform/framework.
- Run
npx hig-doctor <path> --exportfor a human-readablehig-audit.md, or--jsonfor CI/scripts. - If output is large, focus first on
critical, thenserious, then high-confidencemoderate. - Map each category's
skillfield to the matching local HIG skill, such ashig-foundationsorhig-components-controls. - Read only the specific HIG reference topics needed for the flagged issue.
- Fix concrete code issues and rerun the audit with the same flags.
- For CI, use
--fail-on criticalfirst. Raise toseriousonly after existing serious issues are cleaned up.
Ignore File
Use .higauditignore for intentional fixtures, generated output, stories, or demos:
**/*.stories.tsx
examples
components/audit-demo-fixtures.ts
Keep ignores narrow. Do not hide application UI code to make the audit pass.
Interpretation
critical: accessibility-breaking or interaction-blocking. Treat as release blockers unless clearly a false positive.serious: significant HIG or UX degradation. Fix before shipping visible UI.moderate: style or best-practice drift. Batch when the issue is repeated across a design system.positive: useful evidence, not work to do.
HIG Doctor is regex-based. Verify each finding against the code and the relevant HIG reference before editing.
GitHub 仓库
相关推荐技能
executing-plans
设计该Skill用于当开发者提供完整实施计划时,以受控批次方式执行代码实现。它会先审阅计划并提出疑问,然后分批次执行任务(默认每批3个任务),并在批次间暂停等待审查。关键特性包括分批次执行、内置检查点和架构师审查机制,确保复杂系统实现的可控性。
requesting-code-review
设计该Skill可在完成任务、实现主要功能或合并代码前自动调度代码审查子代理,确保实现符合需求和计划。它支持通过指定git SHA范围进行精准的代码变更审查,帮助开发者在关键节点及时发现潜在问题。核心原则是"早审查、勤审查",适用于开发流程的各个关键阶段。
connect-mcp-server
设计这个Skill指导开发者如何将MCP服务器连接到Claude Code,支持HTTP、stdio和SSE三种传输协议。它涵盖了从安装配置到认证安全的完整流程,适用于集成GitHub、Notion、数据库等外部服务。当开发者需要添加集成、配置外部工具或提及MCP相关功能时,这个Skill能提供实用的操作指南。
web-cli-teleport
设计该Skill帮助开发者根据任务特性选择Claude Code的Web或CLI界面,并指导如何在两种环境间无缝迁移会话。它能分析任务复杂度、迭代需求等要素,推荐最优工作界面和工作流。关键特性包括会话状态管理、环境切换指导和上下文优化建议。
