Doctor
Diagnoses Crispy configuration, compatibility, setup, Foundations, components, and library contracts in the repository context, read-only.
Doctor finds workspaces using Crispy and selectively runs health checks applicable to that context. Rather than a component linter, it's a guide that connects configuration, packages, app setup, token visibility contracts, component guidelines, and library distribution contracts to official documentation and actual code evidence.
Diagnosis is read-only. It doesn't fix code or install packages; instead, it records both a schema v2 YAML and a human-readable HTML report to a temporary directory. Actual fixes are made only when the user explicitly instructs them.
Documentation and Skill Relationship
Coverage and documentation lists are not copied into the skill. Doctor reads the following indexes each time it runs:
It finds common Components and Foundations documents in the complete index, and finds the current leaf documents needed for this diagnosis from the selected platform index, such as installation, upgrade, components, and author documents. If the index is read successfully but the contract document doesn't exist, it's not-applicable; if the index or linked document can't be read, it's not-verified. Gaps are not filled with documents from other platforms.
One Doctor request uses one document pool per URL. Complete and platform indexes and leaf documents are read only once per URL, and workspaces and rules from the same execution are reused. Even if the same URL is repeated in the references of the result, it indicates the source and doesn't mean the document is requested again.
Usage
Make natural language requests while the skill is loaded.
There are no Quick/Deep modes. General diagnosis runs all applicable rules; requests with specific categories run only that category.
Output
For each workspace, both doctor-report.yaml and doctor-report.html are created. YAML is the single source of truth for judgments and evidence, and HTML is a human-readable result rendered from the validated YAML in report-template.html. Both files are saved to the same temporary directory, not the target project. HTML is only omitted if the user explicitly requests "YAML only".
Discovery Order
- User-specified path
seed-design.jsonexcludingnode_modules,.git,.claude/worktrees- Direct
@seed-design/*dependencies per workspace regardless of configuration discovery - Deduplication at package boundaries from both candidates
- Platform confirmation in order of: user specified →
framework→ direct dependencies - Determine
appandlibraryroles non-exclusively using app entry and public entry points/library build evidence
If multiple workspaces are found, the target is confirmed. "All" requests create separate reports per workspace and don't merge different meta. Even without seed-design.json, direct package usage continues to be diagnosed, with only snippet rules requiring configuration being excluded.
Rules
| Rule | Category | What It Checks |
|---|---|---|
project-config | config | Current CLI configuration contract, framework conflicts, snippet path and alias connections |
package-compatibility | compatibility | Installed peer or current official compatibility documentation vs. package combinations |
project-setup | setup | Current platform installation and style documentation vs. app connections |
snippet-compatibility | compatibility | Current official CLI compatibility check results |
foundation-contract | foundations | Token existence, visibility, deletion, and internal style API dependencies |
library-authors | library | Distribution contracts for platforms with current official author documentation |
outdated-version | compatibility | Only generation gap of installed packages to latest |
snippet-generation | compatibility | Only generation difference between installed snippet and latest registry |
no-deprecated-component | components | Deprecated usage with valid sources on platform |
component-guidelines | components | Current common guidelines vs. implementation connected via platform index |
Actual compatibility errors and missing essential setup are error; deprecated, internal API, and distribution risks are warn; latest generation gaps are info. In Foundations, only contract violations are judged; appropriateness of hardcoding or semantic token selection is not inferred.
Criteria for component-guidelines are not fixed in rule files. They are derived at execution time from each component guideline, so when the documentation's Do/Don't changes, the evaluation criteria change accordingly.
project-config.md
package-compatibility.md
project-setup.md
snippet-compatibility.md
foundation-contract.md
library-authors.md
outdated-version.md
snippet-generation.md
no-deprecated-component.md
component-guidelines.md
Result Format
YAML is the single source of truth for diagnosis results. Chat summaries and the HTML report created by default are derived from this file.
In the example, {...LeafUrlResolvedFromIndex} is replaced with the actual leaf URL found from the selected platform index at runtime.
Fields
| Key | What | Why |
|---|---|---|
meta.projectKinds | Array of app and library roles | Roles are non-exclusive; can be an empty array if no role evidence exists |
checks | Status of all rules in request scope | Shows actual check scope including not just pass/fail but reasons for exclusions and non-verification |
summary | Count by severity of findings | Does not create scores or grades |
findings | Only things to fix | Includes official references and copyable fix prompts |
verdicts | Complete judgments per component criteria | Doesn't hide passing and unknown or not-verified statuses |
coverage | Mechanically collected criteria vs. actual judgments | Reveals skipped criteria in component-guidelines |
rejected | Candidates reviewed but rejected | Distinguishes between not-seen and seen-but-excluded |
Check status is pass | fail | not-applicable | not-verified; category is config | compatibility | setup | foundations | components | library. pass and fail require evidence; exclusions and non-verification require reason; all checks require official references.
Each check.rule is unique within the report, and findings must come only from fail checks of the same rule. Apart from JSON Schema structure validation, semantic validation before saving checks that all findings have failing checks, all failing checks have findings, and summary matches coverage.
verdicts.unknownReason distinguishes no documentation threshold (no-threshold), runtime dependent (runtime-dependent), information outside code (not-in-code), and official documentation conflicts (doc-conflict). rejected contains only candidates actually reviewed but excluded because official criteria permit them or evidence is insufficient.
findings[].remediation is not a description but a complete prompt that can be passed as a separate fix request for that finding alone. It includes target project and file, identified issue, specific requirements, change constraints, complete official evidence, and a request to check repository guidelines and package scripts before running appropriate validation. Doctor only generates the prompt; it's not executed until the user explicitly requests the actual fix.
Schema
HTML Report
HTML is created by default in the same temporary directory as the validated YAML. It's only omitted if the user requests "YAML only". After "Things to Do First," it shows project roles, test scope by category, and coverage, with reasons for not-applicable and not-verified collapsible. For each finding, it provides official references and a collapsible "fix prompt"; the verdict table preserves actual status (pass | fail | unknown | not-verified) and evidence. It opens as a single file without external CDNs or JavaScript.