Skip to content
RefineUI

Doctor

Read-only RefineUI workspace diagnostics — setup, tokens, composition contracts, and import conventions.

RefineUI Doctor inspects projects that use @refineui/* and reports setup gaps, token contract violations, and component API misuse — without modifying your code.

RuleCategoryDescription
package-setupsetupApp projects declare @refineui/react and @refineui/tokens
stylesheet-setupsetupGlobal CSS imports tokens, icons, and refineui.css
foundation-contractfoundationsNo hardcoded hex/rgba or arbitrary px in component styles
composition-apicomponentsNo convenience props (title, description, …) on RefineUI components
component-importscomponentsImport from @refineui/react root only

Diagnostics are read-only. Doctor writes a YAML report; it does not install packages or edit files unless you ask an agent to fix findings separately.

npm install -D @refineui/doctor
refineui-doctor
refineui-doctor ./apps/web
refineui-doctor --workspace packages/my-app --output ./doctor-report.yaml
refineui-doctor --category setup --category foundations

Exit code 1 when error-severity findings exist.

Install the RefineUI skill, then ask in natural language:

RefineUI 잘 쓰고 있나 봐줘
셋업만 진단해줘
이 모노레포의 RefineUI 워크스페이스를 전부 진단해줘

The skill loads doctor rules and routes to live docs via llm.txt — it does not duplicate documentation.

When @refineui/mcp is configured, agents can call run_doctor with an optional project path and workspace name. The tool returns JSON matching the YAML schema.

Schema v2 YAML written to a temp directory or --output:

schemaVersion: 2
meta:
target: /path/to/project
projectKinds: [app]
refineui:
declared:
"@refineui/react": "^0.x"
summary:
error: 0
warn: 1
info: 0
checks: [...]
findings: [...]

Each finding includes remediation text suitable for agent-guided fixes.

Doctor CLISkillMCP run_doctor
Runs locallyYesAgent follows rulesYes
Best forCI / scriptsNatural language requestsAgent automation
OutputYAML fileConversation + optional YAMLJSON

Use Skill for interactive diagnosis, CLI for repeatable checks, MCP when the agent should run diagnostics programmatically.