界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
设计与创意 · SKILL.md

hig-doctor-audit

hig-doctor-audit

【设计与创意】Audit interface source with HIG Doctor when the user asks to scan, lint, review, or remediate Swift, UIKit, AppKit, React, Vue, Svelte, Angular, Compose, Android XML, Flutter, CSS, or HTML for HIG-aligned interface and accessibility concerns. Do not activate for general design advice without source to audit; use the relevant HIG guidance skill instea…

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: hig-doctor-audit description: Audit interface source with HIG Doctor when the user asks to scan, lint, review, or remediate Swift, UIKit, AppKit, React, Vue, Svelte, Angular, Compose, Android XML, Flutter, CSS, or HTML for HIG-aligned interface and accessibility concerns. Do not activate for general design advice without source to audit; use the relevant HIG guidance skill instead.

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 <target> --json for machine-readable findings.
  3. Report the detected frameworks, severity counts, rule IDs, locations, and material analysis limits.
  4. Use hig_explain_finding or the relevant bundled HIG skill when a finding needs its cited guidance and context.
  5. Before editing, distinguish mechanical fixes from changes that require product, design, accessibility, or platform judgment.
  6. If the user authorized remediation, preserve justified suppressions and rerun the audit plus the repository's relevant checks.

Gates and baselines

  • Use --fail-on <critical|serious|moderate> 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.

我的收藏