HIG Doctor logo

HIG Doctor

Organization
raintree-technology

Apple HIG reference and cross-framework UI audit tooling for agents.

Publisherraintree-technology
Repositoryhig-doctor
LanguageTypeScript
Forks
9
Stars
132
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    HIG Doctor exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    132 stars and 9 forks from the linked repository.

HIG Doctor

Active open-source project · MIT tooling with attributed Apple reference content

HIG Doctor helps developers and coding agents find interface issues before release. It checks Apple-platform source against Apple’s Human Interface Guidelines and checks web and cross-platform source against aligned accessibility and interface-quality rules.

Run an audit

bash
npx hig-doctor .

The CLI detects the project frameworks, reports concerns by severity, and points to a specific fix and source reference. This result is generated from the committed test/fixtures/readme-audit project and checked in the test suite:

text
2 moderate concerns · swiftui · 1 file
View.swift:5 · swift/navigation-view-deprecated
View.swift:7 · swift/hardcoded-color

The audit catalog currently contains 431 rules across 14 frameworks. Counts are generated from the rule catalog and checked in CI; they are coverage inventory, not a claim of complete HIG conformance.

Why use HIG Doctor

  • Catch reviewable source issues. Findings include severity, location, rule ID, fix guidance, and the reference that supports the concern.
  • Gate only new debt. Configuration, inline suppressions, content-based baselines, SARIF, and --fail-on support gradual adoption.
  • Give agents bounded guidance. MCP tools search the frozen reference corpus and explain individual findings without presenting generated advice as canonical HIG.
  • Use one engine across workflows. The CLI, MCP server, and embeddable core package share the same catalog and analysis tiers.

Choose a surface

SurfaceUse it forStart
Audit CLISource scans and CI gatesnpx hig-doctor .
MCP serverSearch, lookup, file audits, and explanationsnpx -y hig-mcp
Agent skillsDesign guidance and source auditscodex plugin add hig-doctor@raintree
Core packageEmbed the rule enginenpm install @raintree-technology/hig-doctor-core

The MCP server works over stdio or streamable HTTP. Its six tools list skills, look up topics, search the corpus, audit projects or files, and explain findings. See the MCP package README for client configuration.

Install the public Codex marketplace first with codex plugin marketplace add raintree-technology/plugins.

How analysis works

text
framework detection → regex scan → structural refinement → categorized findings → report or SARIF
  • The zero-dependency regex tier is comment- and string-aware.
  • Swift structural analysis follows chained modifiers to remove handled findings.
  • The TypeScript compiler refines selected JSX accessibility checks when available.
  • Every finding records the engine that produced it.

Precision and recall are measured on an annotated fixture corpus in docs/benchmark.md. CI enforces the published floors.

Framework coverage

Apple-platform rows are checked against the HIG directly. Web and cross-platform rows use universal accessibility and interface-quality principles that align with the HIG.

FrameworkRulesBasis
SwiftUI (swift)70Apple HIG
UIKit35Apple HIG
AppKit25Apple HIG
watchOS13Apple HIG
visionOS10Apple HIG
React / Next.js (web)122HIG-aligned universal checks
CSS / SCSS25HIG-aligned universal checks
Vue / Nuxt19HIG-aligned universal checks
Angular17HIG-aligned universal checks
Svelte / SvelteKit14HIG-aligned universal checks
Flutter21HIG-aligned universal checks
Jetpack Compose28HIG-aligned universal checks
Android XML18HIG-aligned universal checks
React Native14HIG-aligned universal checks

The authoritative per-rule inventory is docs/rules.md.

Skills corpus

The frozen 2025-02-02 snapshot contains 14 skills and 156 reference topics. Apple’s live Human Interface Guidelines remain canonical.

SkillDescription
hig-foundationsColor, typography, symbols, accessibility, layout, motion, privacy, and branding
hig-platformsiOS, iPadOS, macOS, tvOS, watchOS, and visionOS
hig-patternsOnboarding, navigation, search, feedback, modality, and settings
hig-inputsTouch, Pencil, keyboard, controller, pointer, Crown, and eye input
hig-technologiesSiri, Apple Pay, HealthKit, ARKit, ML, Sign in with Apple, and SharePlay
hig-project-contextShared project context for tailored guidance
hig-components-contentCharts, collections, images, web views, and lockups
hig-components-controlsPickers, toggles, sliders, buttons, and fields
hig-components-dialogsAlerts, action sheets, popovers, and sheets
hig-components-layoutSidebars, split views, tabs, lists, tables, and windows
hig-components-menusMenus, toolbars, buttons, and menu bars
hig-components-searchSearch fields, page controls, and path controls
hig-components-statusProgress indicators, status bars, and activity rings
hig-components-systemWidgets, live activities, notifications, complications, and App Clips

Nightly drift detection compares the snapshot with Apple’s DocC JSON. Content changes remain human-reviewed; a hash change does not automatically rewrite guidance.

Limits and evidence boundary

Automated findings support review. They do not prove accessibility, HIG conformance, or design quality. Regex fallback can produce different precision than structural analysis, and project-specific context can justify a documented suppression.

Apple owns the HIG content. This repository provides organization, cross-referencing, and detection rules. Each reference retains attribution and a canonical source URL.

Documentation

Raintree open-source system

HIG Doctor owns interface guidance and source audits. It can be used independently. DocPull acquires evidence, PolicyStrata tests policy behavior, Trellis enforces shared code policy, and Raintree Standards defines governed requirements. See the Raintree open-source portfolio.

Project policies

Contributing · Code of Conduct · Security · Changelog · Source repository · MIT License · Third-party notices

Apple HIG reference text in skills/*/references/ is © Apple Inc. and remains subject to Apple’s terms.

Installation

TypingMind
{
  "mcpServers": {
    "hig-doctor": {
      "command": "bun",
      "args": [
        "packages/hig-doctor/src-mcp/src/index.ts"
      ]
    }
  }
}

Use HIG Doctor MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once HIG Doctor is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add HIG Doctor as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the HIG Doctor MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "hig-doctor": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the HIG Doctor MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the HIG Doctor MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use HIG Doctor to help me with this task?
HIG Doctor
Sure. I read it.
Here is what I found using HIG Doctor.

Frequently asked questions

What is the HIG Doctor MCP server used for?

HIG Doctor is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use HIG Doctor MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use HIG Doctor with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use HIG Doctor MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With HIG Doctor connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect HIG Doctor MCP to TypingMind?

HIG Doctor runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does HIG Doctor MCP provide in TypingMind?

HIG Doctor exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use HIG Doctor MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If HIG Doctor requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇