157 raintree-technology

hig-doctor-audit Skill

当用户要求扫描、检查、审查或修复 Swift、UIKit、AppKit、React、Vue、Svelte、Angular、Compose、Android XML、Flutter、CSS 或 HTML 源码中与 HIG 一致的界面和无障碍问题时,用 HIG Doctor 审计界面源码。没有源码可审计时不要激活,请改用相关的 HIG 指导技能获取一般设计建议。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

HIG Doctor audit

Use HIG Doctor findings as review evidence, not certification.

Audit workflow

  1. Confirm the target repository or directory. Keep the scan within that scope.
  2. Run npx -y hig-doctor@2.0.3 --json for machine-readable findings.
  3. Report the detected frameworks, severity counts, rule IDs, locations, and

material analysis limits.

  1. Use hig_explain_finding or the relevant bundled HIG skill when a finding

needs its cited guidance and context.

  1. Before editing, distinguish mechanical fixes from changes that require

product, design, accessibility, or platform judgment.

  1. If the user authorized remediation, preserve justified suppressions and

rerun the audit plus the repository's relevant checks.

Gates and baselines

  • Use --fail-on only when the requested workflow

needs a gate.

  • Use --write-baseline only when the user asks to adopt a baseline. A baseline

records accepted existing findings; it does not resolve them.

  • Do not delete or weaken configuration, inline suppressions, or baselines merely

to produce a clean result.

Failure handling

If npx or the package cannot run, state the failed command and the missing
prerequisite. Ask the user to install a supported Node.js runtime or restore
package-registry access. Do not substitute an unversioned audit command.

Output

Lead with the audit result. Separate confirmed findings, judgment-dependent
warnings, preserved exceptions, checks run, and missing evidence. Never claim
that an automated scan proves HIG compliance or accessibility.