Review an Illustration
review-illustrationChecks an SVG illustration in a real browser against project principles, names visible faults such as unclosed shapes, floating parts, conflicting light, and clipped contents before handoff.
Instructions
Look at an SVG illustration you drew and get back what is visibly wrong with it.
You write SVG blind. This renders it in a real browser and judges it against this project's illustration principles, so you find out that a shape does not close, a part floats unattached, the light comes from two directions, or contents sit outside the container meant to hold them.
Use it whenever you have drawn an illustration, before you hand it to anyone. Drawing something worth shipping usually takes 2 or 3 rounds.
How to call it:
Get the rules first with
get-ui-principle({ topic: "svg-illustration" })and draw against them. For an isometric technical figure, useget-illustration-guideand passstyle: "isometric".review-illustration({ svg, intent: "an open inbox tray with letters" }). Say what the drawing is meant to be, in your own words.Fix what
faultsnames, then call again passingreviewTokenback. Reviewing the same drawing again costs nothing while that token is valid.Stop when
faultsis empty.
Markup carrying script, event handlers, remote references, or styles that reach outside the drawing is refused rather than cleaned, so the drawing you fix is the drawing you sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | The complete svg element you drew. | |
| style | No | Use "isometric" for a figure drawn with get-illustration-guide, so it is judged by those rules. | |
| intent | Yes | What it is meant to be, in plain words. For example "an open inbox tray with letters". | |
| animated | No | Set when the drawing was meant to move, so the motion checks apply. | |
| reviewToken | No | The token from a previous review of this drawing. Reviews it again free. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| faults | Yes | ||
| layers | Yes | ||
| unseen | Yes | ||
| message | Yes | ||
| reviewed | Yes | ||
| reviewToken | Yes |