HIG Doctor
v0.2.4Apple Human Interface Guidelines search, lookup, and project audits for AI coding agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hig_list_skills
List all available Apple HIG skills with descriptions and reference topics. Use this first to discover what HIG guidance is available before calling hig_lookup.
hig_lookup
Fetch Apple HIG reference markdown. Provide a skill name (e.g. 'hig-foundations') to get the skill overview, or a skill+topic (e.g. skill='hig-foundations', topic='color') to get detailed reference for that topic. Content is from Apple's HIG, snapshot dated 2025-02-02. If you don't know which skill/topic to use, call hig_search instead.
| Parameter | Type | Description |
|---|---|---|
skill * | string | Skill identifier, e.g. 'hig-foundations', 'hig-components-layout', 'hig-platforms'. |
topic | string | Optional topic within the skill, e.g. 'color', 'typography', 'accessibility', 'sidebars'. Call hig_list_skills first to see valid topics. |
hig_search
Full-text search (BM25) across all Apple HIG reference topics. Ask in natural language, e.g. 'minimum touch target size', 'when to use a sheet vs a popover'. Returns ranked topics with snippets. Follow up with hig_lookup using the returned skill/topic.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language or keyword query. |
limit | number | Max results (default 8, cap 25). |
hig_audit
Audit a project directory for HIG and accessibility concerns. Scans source files across SwiftUI, UIKit, React, Vue, Svelte, Angular, Compose, Android XML, React Native, Flutter, CSS, and HTML. Returns severity counts (critical/serious/moderate), per-category breakdown, and a markdown report with code excerpts and HIG reference material. Honors hig-doctor.config.json, .hig-baseline.json, and inline hig-disable suppressions in the audited project.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Absolute path to the project directory to audit. Must be a directory the server process can read. |
fail_on | string | Optional severity threshold. If set, the response includes gate_tripped=true when any concern at/above this severity is found. |
hig_audit_file
Audit a single source file: the fast inner loop after writing or editing a file. Returns every finding with its rule ID, severity, line, fix guidance, and HIG citation. Use hig_explain_finding for deeper guidance on a specific rule.
| Parameter | Type | Description |
|---|---|---|
file * | string | Absolute path to the source file to audit. |
fail_on | string | Optional severity threshold for gate_tripped. |
hig_explain_finding
Explain an audit finding: full rule metadata (severity, engine, fix guidance) plus an excerpt of the Apple HIG reference the rule cites. Pass the ruleId from hig_audit / hig_audit_file results (e.g. 'swift/hardcoded-color').
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Stable rule ID, e.g. 'swift/hardcoded-color', 'web/missing-alt'. |