tools/sage-claude-plugin/skills/design-review/SKILL.md
Design review report with findings, severity, and fix/manual classification
npx skillsauth add xoai/sage design-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Design quality audit + design system compliance. Finds visual quality issues, missing states, token violations, and AI slop patterns.
Report only — /design-review does NOT modify code. Mechanical findings route to /fix. Design decisions require human judgment.
Design system detection. Scan in order (stop at first match):
sage/skills/ or .claude/skills/DESIGN.md or design-system.md in project root or .sage/docs/--color-*, --spacing-*, --font-*)If found:
Sage: Found design system context: [{source}].
Will audit general quality + design system compliance.
If not found:
Sage: No design system detected. Auditing general design quality only.
(To enable compliance checking, add a DESIGN.md or design system skill.)
Lightpanda detection. Check for MCP tool availability. If available, note it. If not, proceed code-only. No nag.
If invoked after /build (cycle context exists): Read spec and plan. Identify changed frontend files/components. Scope audit to those components + immediate parents.
If invoked standalone:
Sage → design-review workflow. What should I review?
[1] Recent changes — audit the current diff
[2] Specific page/component — point me at what to review
[3] Full app — audit all frontend code (broader, slower)
Pick 1-3, type / for commands, or describe what you need.
Show scoped file list, confirm before proceeding.
For each component/file in scope:
Layer 1 — General quality (always runs). 6 categories:
1. Typography: heading hierarchy, font count (>2 = warning), type scale consistency, line height (1.4-1.7), measure (45-75 chars).
2. Spacing and layout: spacing consistency (grid vs arbitrary), spacing scale system, container consistency, alignment.
3. Visual hierarchy: primary action clarity, information hierarchy, contrast, whitespace.
4. Interactive states: hover/focus, disabled, loading, empty, error.
5. Color and contrast: color count (>8 non-gray = warning), semantic color consistency, WCAG AA contrast ratios, dark mode coverage.
6. AI slop detection: purple-to-blue gradients, 3-column icon grids, uniform border-radius, all-centered text, decorative blobs, generic CTAs, identical repeated cards, excessive shadows, Inter with no personality. Each indicator is a WARNING, not an issue.
Layer 2 — Design system compliance (when system detected).
Token compliance: hardcoded values vs token references. Component compliance: correct component usage, sizes, variants. Layout compliance: screen anatomy, padding, spacing values. Anti-mixing: patterns from different design systems mixed.
For each finding, record:
If Lightpanda MCP is available AND URL provided:
goto each affected routesemantic_tree — verify rendered structure matches intentevaluate with getComputedStyle — verify fonts, colors, sizesinteractiveElements — verify all interactive elements reachableBrowser findings flagged as "browser-verified" (higher confidence).
If Lightpanda not available: skip entirely, no message. Code audit findings are still valuable.
Save to .sage/work/[cycle-id]/design-review.md (if cycle) or
.sage/docs/design-review-[topic].md (if standalone).
Use template from develop/templates/design-review-template.md.
🔒 DESIGN REVIEW CHECKPOINT:
Sage: Design review complete.
Reviewed: {N} files, {M} components
Design system: {name | none}
Findings: {issues} issues, {warnings} warnings, {notes} notes
AI slop indicators: {count}/10
Route to /fix (mechanical): {count} findings
Design decisions needed (manual): {count} findings
Report: .sage/[path]/design-review.md
[A] Approve report [R] Revise — recheck something
[F] → /fix to address mechanical issues [N] New session
Pick A/R/F/N, or tell me what to change.
Next steps (Zone 3):
Next steps:
/fix — diagnose → scope → fix (reads design-review findings)
/qa — browser-based functional testing
/reflect — review the cycle, extract learnings
Type a command, or describe what you want to do next.
Good design review output:
No fabricated browser findings. If Lightpanda wasn't used, do NOT claim browser-verified findings. Code-only analysis is honest.
Design system detection honesty. Do NOT invent design system standards. If no DESIGN.md, no skill, no tokens → Layer 2 doesn't run.
Mechanical vs judgment separation. A missing :focus style is mechanical (/fix). "The page layout buries the primary action" is judgment (manual). Do NOT auto-fix design decisions.
Light mode invisible when N/A. In quality gates (Gate 7), if no frontend files in diff → no output, no warning.
tools
Captures agent mistakes, corrections, and discovered gotchas so they are not repeated. Use when: (1) a command or operation fails unexpectedly, (2) the user corrects the agent, (3) the agent discovers non-obvious behavior through debugging, (4) an API or tool behaves differently than expected, (5) a better approach is found for a recurring task. Also searches past learnings before starting tasks to avoid known pitfalls. Activate alongside the sage-memory skill — they share the same MCP backend but serve different purposes (sage-memory = codebase knowledge, sage-self-learning = agent mistakes and gotchas).
development
Typed knowledge graph stored in sage-memory. Use when creating or querying structured entities (Person, Project, Task, Event, Document), linking related objects, checking dependencies, planning multi-step actions as graph transformations, or when skills need to share structured state. Trigger on "remember that X is Y", "what do I know about", "link X to Y", "show dependencies", "what blocks X", entity CRUD, cross-skill data access, or any request involving structured relationships between things.
tools
Integrates sage-memory into Sage workflows. Teaches the agent when to remember (store findings during work), when to recall (search memory at session start and task start), and how to learn (structured knowledge capture via sage learn). Use when the user mentions memory, remember, recall, learn, capture knowledge, onboard to codebase, or when starting any session where sage-memory MCP tools are available.
tools
Captures agent mistakes, corrections, and discovered gotchas so they are not repeated. Use when: (1) a command or operation fails unexpectedly, (2) the user corrects the agent, (3) the agent discovers non-obvious behavior through debugging, (4) an API or tool behaves differently than expected, (5) a better approach is found for a recurring task. Also searches past learnings before starting tasks to avoid known pitfalls. Activate alongside the sage-memory skill — they share the same MCP backend but serve different purposes (sage-memory = codebase knowledge, sage-self-learning = agent mistakes and gotchas).