Design Critique Pipeline
Overview
Run a full design critique across three lenses:
ui-design-critique— visual composition, hierarchy, layout, typography, color, density, affordance, reduction.interaction-design-critique— wayfinding, feedback, visibility, states, consistency, mental models, mapping, flow behavior.content-design-critique— UI copy, labels, empty states, errors, tone, specificity, sentence case.
The output is critique/reporting only: a self-contained DocuSketch°-style HTML artifact plus a short chat summary and file path.
When to use
Use this skill when the user asks for:
- “critique this component/screen/UI”
- “review this design end-to-end”
- “audit this screen”
- “run the design critique pipeline”
- broad feedback on a screenshot, URL, local path, code snippet, Figma/spec link, or flow description
When not to use
- The user asks for one lens only. Use the matching individual skill.
- The user asks to implement fixes. Do not edit source files; offer implementation as a follow-up after the report.
- The user asks for DocuSketch design-system compliance specifically. Use the project’s design-system reviewer/check workflow if available; this skill uses DocuSketch-style artifact presentation, not a compliance audit.
- The target is clearly non-UI backend logic, tests, migrations, or build configuration. Say it is not a UI critique target and stop.
Core workflow
1. Resolve the critique target
Accept any combination of:
- screenshot or image attachment
- URL
- local file or directory path
- pasted code or markup
- raw UI strings
- Figma/design/spec link
- flow description or screen sequence
If multiple inputs are provided, treat them as one target unless the user asks for comparison.
Inspect what is available:
- For paths, read relevant UI files and nearby styles/components.
- For directories, inspect representative UI files; ask the user to narrow scope if the directory is too large to review usefully.
- For screenshots, critique visible evidence and label inferred behavior.
- For URLs or Figma links, inspect only if available tooling permits. If inaccessible, list them as provided but not inspected and ask for a screenshot/export/code only if critique would otherwise be impossible.
- If there is no usable target, ask for one instead of manufacturing critique.
Checkpoint: record inspected evidence and limitations for the HTML report. If visual artifacts are available, identify which screenshot/image/rendered regions can support focused unannotated crops in the findings.
2. Run the three critique lenses
Use the individual skills as lens contracts:
- Run
ui-design-critiquefor visual/UI findings. - Run
interaction-design-critiquefor behavior/flow findings. - Run
content-design-critiquefor user-facing copy findings.
Do not duplicate their full workflows here. Apply each lens to the same resolved target, preserve lens tags in the findings, and preserve any visual references or No visual evidence reasons from the lens passes.
3. Normalize severity
The pipeline report uses:
- Critical — likely blocks the user, causes wrong action, hides essential state/action, or materially damages trust.
- Warning — creates friction, ambiguity, cognitive load, or weakens the design but does not block the primary task.
- Info — polish, consistency, minor reduction, or low-risk improvement.
Map content severities:
- Blocking → Critical
- Confusing → Warning
- Needs finesse → Info
If a finding depends on missing runtime/flow context, keep the severity conservative and use an evidence-basis label.
4. Create the HTML artifact
Before writing the artifact, read docusketch-html-report.md in this skill directory and follow it.
Required behavior:
- Write
/tmp/design-critiques/<slug>-<YYYYMMDD-HHMMSS>.html. - Make the report self-contained except for the allowed Google Fonts and Lucide imports defined in
docusketch-html-report.md. - Include target evidence and limitations.
- Include findings grouped by
Critical,Warning, andInfo. - For each finding that references a visible UI element, region, layout relationship, or rendered string, strongly prefer enough inline unannotated visual excerpts from the original visual artifact to substantiate the claim.
- Do not limit a finding to one image by default; include multiple focused crops or a context image plus focused crops when comparison, sequence, repetition, spatial relationship, or multiple affected controls/messages require it.
- Keep critique labels/captions outside images; do not add reviewer-drawn boxes, arrows, highlights, or labels to the image.
- If a finding has no visual reference, include an explicit
No visual evidencereason. - Include evidence basis for every finding:
Direct,Inferred,Needs runtime check, orNot inspected. - Include source references only when available.
- Include patterns observed and what’s working/no action.
- Lightly validate the generated HTML, including the visual-evidence exit gate from
docusketch-html-report.md. - Open it in the browser best-effort.
5. Respond in chat
Return only:
- artifact path
- whether browser opening succeeded or failed
- 3–5 top findings or “no findings” summary
- reminder that no source files were changed
Common Rationalizations
| Rationalization | Reality | |---|---| | “A chat critique is enough.” | This suite’s contract is an HTML artifact. Chat is only the summary. | | “The URL probably shows the screen.” | If the URL was not inspected, list it as not inspected. Do not invent visual evidence. | | “The component is small, so I can skip one lens.” | Small targets still need lens consideration; omit empty findings, not the lens pass. | | “I should fix the obvious issues while I’m here.” | These skills critique only. Source edits require a separate explicit user request. | | “The text explains the issue, so visual evidence is optional.” | If the issue points at visible UI and a visual artifact is available, include enough focused unannotated crops to substantiate the claim or explain why no visual evidence is available. | | “I’ll add arrows/boxes so the reader knows what I mean.” | Keep the original visual artifact unannotated. Explain the target in the caption or finding text instead. | | “I can use the DocuSketch design system as a checklist.” | The artifact should look DocuSketch-like; this is not a design-system compliance audit unless explicitly requested. |
Verification
Before finishing, confirm with evidence:
- [ ] Target inputs were resolved, inspected where possible, and limitations recorded.
- [ ] UI, interaction, and content lenses were considered.
- [ ] Content severities were mapped into
Critical / Warning / Info. - [ ]
docusketch-html-report.mdwas read before writing HTML. - [ ] HTML file exists under
/tmp/design-critiques/. - [ ] HTML contains
<!doctype html>,<title>, and a findings or no-findings section. - [ ] Each finding that references a visible UI element/region/string includes enough inline visual evidence to substantiate the claim, or an explicit
No visual evidencereason. - [ ] Visual evidence uses unannotated original screenshots/crops, with critique labels outside the image.
- [ ] HTML has no external dependencies except the allowed IBM Plex Sans Google Fonts stylesheet and Lucide CDN script.
- [ ] Browser open was attempted best-effort, or failure was reported with the path.
- [ ] Final response includes the artifact path and states that no source files were changed.