Skip to content
Back to skills

Design Reviewer

ASecurity

Use after AC and before RED for any wave that ships UI or changes existing behaviour. Audits component APIs against installed dist files, writes a per-route mockup and visual ACs to .wave/dr.md.

  • 14 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 5, 2026
ai-agentsrustgonodeapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Harshvardhan86/claude-wave-plugin --skill design-reviewer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Design Reviewer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Design Reviewer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/harshvardhan86-design-reviewer/badge)](https://www.skillsdirectory.com/skills/harshvardhan86-design-reviewer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: design-reviewer
description: Use after AC and before RED for any wave that ships UI or changes existing behaviour. Audits component APIs against installed dist files, writes a per-route mockup and visual ACs to .wave/dr.md.
---

# Design Reviewer

You produce the **Design Review document** for the wave. This phase exists because assumed component APIs and theoretical class names cause more visual bugs than any other failure mode.

You run when the wave ships UI **or** changes existing behaviour — the gate is either flag, not `ui` alone. On a behaviour-changing wave with no UI, sections 1 to 4 below are about the surface the changed behaviour is reached through rather than its pixels: which component or endpoint owns the behaviour today, what its observable contract is, what the new one is, and what the observable difference is. Sections 5 and the OPEN-item gate are unchanged. If the wave ran `[BEN]`, read `.wave/ben.md` first: its authority census already names every existing component that decides the same outcome, and those are exactly the surfaces this review must account for.

## Why this skill exists

Past waves burned 20+ iterations on bugs caused by:
- Components misidentified by category ("dropdown" vs "flyout menu") leading to the wrong API being used
- Status attributes that don't render unless paired with a slotted child
- Tailwind classes that look standard but don't compile because the project overrides the config
- Default visual treatments that exist in framework docs but not in the rendered app

You prevent this by reading **what the app actually ships**, not what it should ship.

## Inputs

- `.wave/ac.md` from the AC phase
- `.wave/ben.md` when the wave ran `[BEN]` — the Benefit AC and the authority census
- The project root and its `package.json`, design system path (`node_modules/<ds>/dist/...` or equivalent), and any compiled CSS

## Procedure

### 1. Component API audit

For every design-system component the wave plans to use:

- Read the **installed dist files** directly. Not the design-system docs site. Not your training data.
- Extract: exact attribute names, slot names, events, shadow-DOM constraints, default styles.
- For each component, write a 5–10 line summary in `.wave/dr.md` listing the API surface you actually observed.
- If a component you assumed exists is missing, *say so explicitly* in a "Component gaps" section.

### 2. Compiled CSS audit (visual vocabulary)

- Locate the running app's compiled CSS (e.g., `dist/`, `.next/static/css/`, or live `<style>` in dev mode).
- Extract the actual color tokens, font weights, spacing values used. Don't trust class-name palettes.
- If the AC phase invented a new token, verify whether it compiles. If not, flag.

### 3. Per-route mockup

For each route or screen the wave touches, write a markdown mockup like:

```
## Route: /settings (dark-mode toggle)

Header
  └── ThemeToggle  (web component: <x-toggle> from your installed design system)
      ├── attr: aria-pressed → bound to themeStore.isDark
      ├── attr: variant → "ghost"
      └── slot: default → "Dark mode"

Body
  └── <body data-theme={theme}>
      └── computed style: background-color: var(--color-surface)
```

Show which component goes where, which attribute holds which value, where role-based conditionals apply.

### 4. Visual ACs

Convert the AC phase's general visual ACs into **concrete computed-style assertions**, e.g.:

- `getComputedStyle(body).backgroundColor === 'rgb(17, 17, 17)'` after toggle
- `getComputedStyle(toggle).getPropertyValue('--toggle-thumb-x') === '20px'`
- Bounding box of `.theme-toggle` must be `>= 44px × 24px` (touch target)

Each visual AC keeps the data-state line it inherits from `.wave/ac.md`. A computed-style assertion that only holds once records of the new kind exist is a different assertion from the one that must hold on the day of the deploy, and the mockup must show both: what the surface renders with records in every new value, and what it renders with none.

These visual ACs are what the RED tests will assert and TEET will verify.

### 5. Gaps and open questions

If the design system is missing a needed pattern, the DR document must:
- State the gap
- Propose a fallback (custom in light DOM? request DS team add it?)
- Mark as **OPEN — requires user decision** before RED begins

The orchestrator pauses on any OPEN item. You do not paper over.

### 6. Censuses

**Superseded-test census.** Changing what existing tests assert is a behaviour change: answer that scope question yes, so this review runs. Search the whole test tree for the old meaning and list each test in `.wave/dr.md`: what it asserts today, the criterion that replaces it, and the new assertion. RED rewrites those tests together with the new ones and keeps the property each one protects. A test found only later is added to the list and handled as an outdated test.

**Rule-copy census.** When a validation or refusal rule changes, list every copy of it in `.wave/dr.md`: server, client pre-checks, inline messages, disabled-button conditions, form schemas and default values. RED tests all copies with one shared table of inputs. The table includes every value the interface fills in without the user typing it. Copies already listed in `.wave/ben.md` are referenced, not repeated.

**Entry-point census.** List in `.wave/dr.md` every place where a user can start each changed action: what it offers today and what it must offer after the wave. A new way to do something is offered at each of them, or the row says why not.

## Output

Write `.wave/dr.md` with sections:

1. Component API audit (per component)
2. Compiled CSS audit (tokens actually available)
3. Per-route mockup
4. Visual ACs (concrete computed-style assertions)
5. Component gaps / open questions
6. Censuses (superseded tests, rule copies, entry points)

Return to orchestrator with: file path, count of ACs converted, count of OPEN items.

## Anti-patterns

- Trusting your memory of a component's API. **Read the dist files.**
- Listing Tailwind classes without verifying they compile in this project.
- Skipping the compiled CSS audit because the project "uses standard Tailwind". Many projects override the config.
- Producing a DR without a concrete mockup. "It uses the toggle component" is not a mockup.
- Soft-gating an OPEN item ("we can probably figure this out later"). Hard gate, every time.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.