Token导航 LogoToken导航

Agent Skill · 研究检索

ui-doctor(用户界面医生)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

ui-doctor 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 40,546。

总安装 1,273周安装 52GitHub Stars 公开资料未说明下载 408核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ui-doctor(用户界面医生)
来源仓库:https://github.com/iress/design-system
仓库路径:skills/ui-doctor
安装命令:
npx skills add https://github.com/iress/design-system --skill ui-doctor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/iress/design-system --skill ui-doctor

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。适合根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需结合现有品牌、设计系统和用户任务,避免堆砌装饰元素;涉及页面改动时应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

安装方式:github,可通过 npx skills add 命令从指定仓库添加。适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

来源仓库内路径:skills/ui-doctor

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/iress/design-system --skill ui-doctor;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

ui-doctor 怎么安装?

在终端执行 npx skills add https://github.com/iress/design-system --skill ui-doctor。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ui-doctor 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ui-doctor 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

ui-doctor 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ui-doctor 用的人多吗?

公开数据是累计安装 1,273 次,近一周安装 52 次,下载 408 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ui-doctor 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ui-doctor

用户界面医生 · 本页

1,273—只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill: UI Doctor

Audit and review application UI for IDS compliance, accessibility, usability, and cognitive load. This skill helps AI agents perform comprehensive UI reviews covering component usage, accessibility (WCAG), usability heuristics (Nielsen's 10), cognitive load, and progressive disclosure — then produce actionable reports with prioritised recommendations.

When to Use

Activate this skill when the user says things like:

  • "Review this page / component / file for accessibility"
  • "Check the usability of this UI"
  • "Audit this for IDS compliance"
  • "This feels like too much cognitive load"
  • "Are we following IDS guidelines?"
  • "Check for a11y issues"
  • "Review this UI"
  • "Is this form accessible?"
  • "Can you do a UX review?"

Or more generally:

  • Reviewing application UI code for IDS compliance
  • Validating accessibility (WCAG 2.1 AA)
  • Assessing usability and cognitive load
  • Evaluating design token usage and consistency
  • Generating a UI health report with a compliance score
  • Providing recommendations to improve UX, accessibility, and IDS adoption

Audit Modes

Default: Quick UX Review. Use this unless the user specifically asks for accessibility or full compliance. Escalate to a more thorough mode if the quick review reveals significant issues.

Quick UX Review (default)

Use when the user asks for a general UI review, usability check, or "does this look right?"

  1. Cognitive load & information architecture — Is the UI overwhelming? Are there too many items, options, or actions visible at once?
  2. Usability heuristics — Evaluate against Nielsen's 10 (see audit checklist § Usability Heuristics)
  3. Button hierarchy & layout consistency — One primary per section, consistent spacing
  4. Quick component scan — Are obvious raw HTML elements used where IDS components exist?

Accessibility Review

Use when the user asks about a11y, WCAG, keyboard navigation, or screen reader support.

  1. Form accessibility — Labels, required indicators, validation messages, id/htmlFor pairing
  2. Keyboard & focus — Skip links, focus trapping in modals/slideouts, visible focus indicators
  3. Screen reader — ARIA landmarks, dynamic content announcements, accessible names on interactive elements
  4. Colour & contrast — WCAG AA contrast ratios, no reliance on colour alone
  5. Cognitive load — Progressive disclosure, information density (see audit checklist § Cognitive Load)

Full Compliance Audit

Use when the user asks for a complete IDS audit or compliance report.

  1. Run all checklist sections from the audit checklist
  2. Validate component usage against replacement tables
  3. Check design token usage and Provider/CSS setup
  4. Evaluate patterns (forms, loading, navigation)
  5. Assess usability and cognitive load
  6. Generate a full report using the report template

Scoped Audits

If the user asks about a specific file, component, or page, focus the audit on that scope only. Apply the same checklist items but only to the files in question. Do not scan the entire application unless asked.

Example: "Check the accessibility of UserProfileForm.tsx" → run the Accessibility Review mode on that single file.

Audit Scope

Before starting, determine which files to scan.

Files to Scan

  • All .tsx, .jsx, .ts, .js files in src/ (or the application source directory)
  • CSS/SCSS/styled-component files for hardcoded design values
  • Application entry point(s) for Provider and CSS import checks

Important: Always trace the component tree from the actual mount point (e.g. main.tsx, index.tsx) before evaluating Provider & Setup. The entry point may not be a route file — it could be a custom element wrapper, a shadow DOM host, or a separate bootstrap file that renders the router. Do not penalise missing Provider/CSS if a parent entry point already handles it.

Files to Exclude

  • Test files (*.test.tsx, *.spec.tsx, __tests__/) — test mocks may legitimately use raw HTML
  • Storybook stories (*.stories.tsx) — may intentionally show raw HTML for comparison
  • Config files (*.config.ts, *.config.js) — not UI code
  • Type definitions (*.d.ts) — no runtime UI code
  • Third-party code (node_modules/, vendored libraries) — outside application control
  • Build output (dist/, build/) — generated code

Version-Aware Auditing

IDS is currently on version 6. When auditing:

  • Check the installed version — package.json for @iress-oss/ids-components
  • v6 — Apply all rules as-is
  • v5 — Flag v5-specific patterns as "migration opportunities" (key differences: IressForm uses rules prop, react-hook-form is a peer dependency, form state via useWatch/ref)
  • Pre-v5 — Flag as requiring major migration; prioritise Provider/CSS setup first
  • Always note the version in the audit report header

Audit Process

1. Evaluate UX, Accessibility & Cognitive Load

Start with what users experience — assess the UI's usability, accessibility, and information density before checking component compliance.

a. Usability Heuristics (Nielsen's 10)

Evaluate the application against all 10 heuristics. Each has IDS-specific guidance in the audit checklist § Usability Heuristics. Key areas:

  1. Visibility of system status — Loading states use IressLoading (preferred) or IressSkeleton (for custom content placeholder patterns); active states visible on tabs, nav, breadcrumbs
  2. Match between system and real world — Labels use plain language; icons paired with text; status colours follow conventions
  3. User control and freedom — Modals/slideouts dismissible; destructive actions require confirmation; forms have cancel
  4. Consistency and standards — All components from IDS; tokens used consistently; same action = same pattern
  5. Error prevention — Declarative rules validation; required fields marked; constraints communicated via hint
  6. Recognition rather than recall — Persistent navigation; visible breadcrumbs; labels always visible (not just placeholders)
  7. Flexibility and efficiency — Keyboard shortcuts; skip links; searchable selects; autocomplete
  8. Aesthetic and minimalist design — Clear visual hierarchy; consistent spacing; one primary action per section
  9. Help users recognise/recover from errors — Human-readable validation; inline errors; IressValidationSummary for long forms
  10. Help and documentation — Hint text; tooltips for non-obvious UI; placeholder supplementary to labels
b. Cognitive Load & Information Architecture

Evaluate whether the UI presents too much information or too many choices at once.

  • Item count thresholds — Menus/dropdowns with >10 items should use searchable; long forms (>8 fields) should use IressForm pattern="long"; navigation with >7 top-level items should use grouping
  • Progressive disclosure — Use IressExpander or IressTabSet to hide secondary content until needed; multi-step flows break complex tasks into stages
  • Information density — Is the screen overwhelming? Use IressCard/IressPanel to group related content; use IressStack with adequate spacing
  • Batch action safety — Bulk operations (select-all + delete) need explicit confirmation via IressModal; show count of affected items
  • Focus management after state changes — After modal close, focus returns to trigger; after item deletion, focus moves to next/previous item; after form submission, focus moves to result or error
  • Visual hierarchy — Primary content is prominent; secondary content is de-emphasised; use IressText textStyle to establish hierarchy
c. Accessibility (WCAG 2.1 AA)

Check form accessibility, keyboard & focus, screen reader support, and colour/contrast. See audit checklist § Accessibility for the full list. Key checks:

  • All form inputs have labels (via IressField or IressFormField)
  • Skip links present (IressSkipLink)
  • Focus trapping in modals/slideouts (automatic with IDS)
  • ARIA landmarks (<nav>, <main>, <aside>)
  • Dynamic content announced to screen readers — choose the right tier:

- IressAlert — persistent, inline status messages (no aria-live; already in the reading flow) - IressToaster — transient notifications demanding attention (aria-live="assertive"); avoid overuse - Micro animations/interactions with colocated aria-live="polite" — for subtle, user-initiated updates (save indicators, count badges, status changes) that don't warrant a toast; place the live region near the component, not globally

  • Colour contrast meets WCAG AA; no reliance on colour alone
d. Button Hierarchy
  • One mode="primary" button per logical section
  • Destructive actions use status="danger", not custom red styling
  • Icon-only buttons include accessible text
e. Layout Consistency
  • Vertical stacks → IressStack; horizontal rows → IressInline; grids → IressRow/IressCol
  • Spacing uses token values (0–10) on gap prop
  • IressCSSProps (m, mx, p, px) instead of inline styles
  • Responsive: hideFrom/hideBelow props or useBreakpoint hook; grid layouts use responsive span (e.g. span={{xs: 12, md: 6}}); mobile view focuses on primary task with secondary content in IressSlideout or collapsible sections

2. Validate IDS Component Usage

Scan for raw HTML, third-party components, and custom implementations that have IDS equivalents. Use the replacement tables for the full mapping.

Quick checks:

  • No raw <button>, <input>, <select>, <form>, <table> — use IDS equivalents
  • No third-party UI library imports (MUI, Ant, Chakra, Bootstrap, Radix, Headless UI) where IDS equivalents exist
  • No custom modals, drawers, tabs, tooltips, alerts — use IDS patterns
  • No custom loading spinners — use IressLoading (preferred) or IressSkeleton for custom content placeholder patterns
  • Layout divs with flex/grid styles → IressStack, IressInline, IressRow/IressCol

Acceptable exceptions (do NOT flag): raw elements in test files, third-party widgets the app cannot control, <input type="hidden">, custom components wrapping IDS internally. See replacement tables § Acceptable Exceptions.

3. Validate IDS Principles & Setup

a. Provider & CSS Setup
  • IressProvider must wrap the application root — Required for fonts, CSS variables, and theming. IressProvider already includes IressModalProvider, IressSlideoutProvider, IressToasterProvider, IressPopoverProvider, and IressIconProvider — these should not be added separately. Similarly, IressShadow includes IressProvider internally, so no additional providers are needed when using IressShadow.
  • The IDS component CSS must be imported — @iress-oss/ids-components/dist/style.css contains all component styles
  • Users only need to install @iress-oss/ids-components@beta — the tokens are bundled within the component library and do not need to be installed separately. IDS v6 is currently in beta, so the @beta tag is required (e.g. npm install @iress-oss/ids-components@beta)
  • CSP must allowlist IDS external origins — If the app enforces a Content Security Policy, fonts.googleapis.com and fonts.gstatic.com must be in style-src/font-src. Add cdn.iress.com if using legacy Font Awesome icons or IressTheme. If using IressShadow and inline styles are blocked, add <meta name="csp-nonce" content="..."> in <head>. See the CSP Guide at node_modules/@iress-oss/ids-components/.ai/guides/get-started-content-security-policy.md for details (requires @iress-oss/ids-components to be installed).
  • If using design tokens directly in application code (for custom styling), users should additionally install @iress-oss/ids-tokens@beta and import @iress-oss/ids-tokens/build/css-vars.css
// ✅ Minimum required setup (option A — standard)
import '@iress-oss/ids-components/dist/style.css';
import { IressProvider } from '@iress-oss/ids-components';

function App() {
  return <IressProvider>{/* app content */}</IressProvider>;
}
// ✅ Minimum required setup (option B — IressShadow)
// IressShadow is a superset of IressProvider — it wraps children in a shadow DOM,
// injects style.css automatically, and provides the IressProvider context.
// No separate IressProvider or CSS import is needed when using IressShadow.
import { IressShadow } from '@iress-oss/ids-components';

function App() {
  return <IressShadow>{/* app content */}</IressShadow>;
}
// ✅ With direct token usage in application code (optional)
import '@iress-oss/ids-components/dist/style.css';
import '@iress-oss/ids-tokens/build/css-vars.css';
import { IressProvider } from '@iress-oss/ids-components';
import { cssVars } from '@iress-oss/ids-tokens';

function App() {
  return (
    <IressProvider>
      <div style={{ padding: cssVars.spacing[4] }}>{/* app content */}</div>
    </IressProvider>
  );
}
// ❌ Incorrect — missing component CSS
import { IressProvider } from '@iress-oss/ids-components';
// Components will render without styles!

// ❌ Incorrect — installing tokens separately just for provider setup
yarn add @iress-oss/ids-tokens@beta  // Not needed unless using tokens directly

// ❌ Incorrect — installing without @beta tag (will not resolve to v6)
yarn add @iress-oss/ids-components  // Must use @beta tag
b. Design Token Usage
  • No hardcoded colour hex/rgb — use IDS colour tokens
  • No hardcoded pixel spacing — use IDS spacing tokens
  • No hardcoded font properties — use IDS typography tokens
  • No hardcoded border-radius — use IDS radius tokens
// ❌ Hardcoded values
<div style={{ color: '#003271', padding: '16px', borderRadius: '4px' }}>

// ✅ IDS tokens
import { cssVars } from '@iress-oss/ids-tokens';
<div style={{
  color: cssVars.colour.primary.fill,
  padding: cssVars.spacing[4],
  borderRadius: cssVars.radius[1]
}}>
c. Form & Pattern Compliance

IDS provides patterns that ensure consistent UIs. Validate usage where appropriate.

Form Pattern (IressForm):

  • Use IressForm + IressFormField for all forms
  • rules prop for validation; useWatch for conditional fields
  • pattern="long" for forms with >8 fields
  • react-hook-form as peer dependency

Loading Pattern (IressLoading / IressSkeleton):

  • page, component, start-up, validate, long patterns
  • Handles timing thresholds automatically (no indicator <500ms, spinner at 500ms, message at 2s)
  • Prefer IressLoading for standard loading states — it handles timing, messaging, and accessibility automatically
  • IressSkeleton is valid for custom content placeholder patterns where you need skeleton screens that mirror the page layout; use IressLoading if possible
  • When a page reads from a pre-populated cache (e.g. SWR, React Query, or TanStack Query cache populated by a previous page), a separate loading state may be unnecessary — check whether the data source is a cache read vs a fresh fetch before flagging

Navigation Patterns:

  • IressDropdownMenu for filter/action triggers (not inside forms)
  • IressContextualMenu for row-level actions with ariaLabel
  • IressSideNav for application shell navigation
  • IressBreadcrumbs for hierarchy navigation

Error Boundary Pattern:

React error boundaries catch component crashes and should render IDS components as fallback UI — not custom error pages or raw HTML.

Error ScopeIDS ComponentWhy
Full-page crash (root error boundary)IressModal status="danger" with retry/reload actionsBlocks interaction, demands attention, provides structured recovery
Section/feature crash (scoped boundary)IressAlert status="danger" as inline fallbackPersistent, in-context — rest of the page still works
Transient API/network failure (not a crash)IressToasterRetryable, doesn't block the UI
  • Do NOT use IressToaster for error boundaries — toasts are transient and dismissible; if the user dismisses it, the broken component tree has no recovery UI
  • IressModal status="danger" is the primary recommendation for root-level error boundaries — use actions prop to offer "Retry" or "Reload" buttons
  • IressAlert status="danger" is preferred for scoped boundaries that wrap individual features — shows inline where the broken component was

Before flagging missing error handling: Check whether a parent component or layout route already provides an error boundary that covers the file being audited. Error boundaries are an app-wide pattern — a page component does not need its own error/empty state handling if a parent boundary already catches and renders IDS-based fallback UI (e.g. IressModal status="danger" with navigation-aware recovery). Only flag if no ancestor provides error handling.

Shadow DOM Pattern (IressShadow):

  • IressShadow is a superset of IressProvider — it creates a shadow root, injects style.css into it, and provides the IressProvider context automatically. When an app uses IressShadow at its entry point, no separate IressProvider or CSS import is required.
  • Commonly used for microfrontend CSS isolation, but also valid as the sole Provider + CSS setup for any application
  • Creates a shadow root on a <div> — children are standard React components
  • The slot attribute is irrelevant; always use React props (prepend, append, footer, etc.)

4. Provide Recommendations

Prioritise findings using these levels:

PriorityDescriptionAction
CriticalMissing Provider/CSS, raw inputs without labels, missing skip links, forms not using IressFormMust fix immediately
HighRaw HTML elements with IDS equivalents, custom form handling, a11y failures, high cognitive load issuesFix in current sprint
MediumHardcoded tokens, missing IressText, custom layout, missing ARIA landmarks, information density issuesPlan for next sprint
LowMissing IressImage, custom badges, minor token inconsistencies, non-critical UX improvementsBacklog

For each finding, provide: (1) what was found, (2) why it matters, (3) how to fix (with before/after code), (4) priority level.

5. Generate Compliance Report

Use the report template to produce a structured report.

Example Audit Output

Quick Scan Summary

IDS UI Doctor — Quick Scan
================================
Files scanned:     42
Components found:  18 IDS / 7 raw HTML
Patterns used:     3/7 available
Token compliance:  73%
Accessibility:     82%

Top Issues:
  ⚠ 3× raw <button> found (should be IressButton)
  ⚠ 2× hardcoded colours found (#333, #f5f5f5)
  ⚠ 1× <input> without IressField wrapper
  ⚠ 2× custom <form> found (should use IressForm)
  ⚠ 1× custom loading spinner (should use IressLoading)
  ⚠ 1× missing skip link for keyboard navigation
  ✓ IressProvider correctly configured
  ✓ Component CSS imported
  ✓ IressBreadcrumbs used for navigation hierarchy
  ✓ Colour contrast passes WCAG AA

Reference

Note: Component docs, pattern docs, and the manifest are within the package itself.
  • Component docs: node_modules/@iress-oss/ids-components/.ai/components/
  • Pattern docs: node_modules/@iress-oss/ids-components/.ai/patterns/
  • Index (full component list): node_modules/@iress-oss/ids-components/.ai/index.json
  • Token usage skill: .agents/skills/token-usage/SKILL.md
  • Figma mapping skill: .agents/skills/figma-to-ids/SKILL.md
  • UI translation skill: .agents/skills/ui-translation/SKILL.md
  • Storybook and Guidelines: https://main--691abcc79dfa560a36d0a74f.chromatic.com
  • Common mistakes guide: node_modules/@iress-oss/ids-components/.ai/guides/foundations-common-mistakes.md (requires @iress-oss/ids-components to be installed)

Common Mistakes to Flag in Audits

For the full list of common anti-patterns with code examples, read the Common Mistakes guide at node_modules/@iress-oss/ids-components/.ai/guides/foundations-common-mistakes.md (requires @iress-oss/ids-components to be installed). When auditing, flag these with the following priorities and audit rules:

disabled attribute on IressButton — High priority

Audit rule: Search for disabled on any <IressButton. Every match is a finding.

Redundant textStyle on IressText — Medium priority

Audit rule: Search for IressText with both element and textStyle where the textStyle matches the element's default styling (e.g. element="h1" textStyle="typography.heading.1").

Legacy slot attributes (v4 pattern) — High priority

Audit rule: Search for slot=" inside any <Iress*> component. Every match is a finding.

平台分布

Codex

38.36%
按下载量换算157

Claude

29.54%
按下载量换算121

Cursor

17.47%
按下载量换算71

Gemini CLI

8.82%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills