validate_composition
Statically check HTML or Astro source for Basecoat migration errors, semantic rhythm, FSM bindings, missing scripts, nested cards, spacing, and hierarchy issues before fixing diagnostics.
Instructions
[STAGE 4: QUALITY AUDIT] Statically check HTML/Astro source for Basecoat migration errors, semantic rhythm, FSM bindings, missing scripts, nested cards, spacing and hierarchy issues. Pass code or alias html and optionally a semanticProfile and densityProfile. Does not render or evaluate dynamic code. Next step: Fix any errors/warnings reported in the diagnostic output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | HTML or Astro source code to validate statically against Basecoat rules and tokens. | |
| html | No | Alias for code parameter. Pass either code or html. | |
| densityProfile | No | Optical spacing density profile ("comfortable" or "compact"). | |
| semanticProfile | No | Semantic rhythm profile ID (e.g., "default", "dashboard"). Defaults to "default". |