--- name: 'code-review' description: 'OUDS Web compliance code review. Use this skill when reviewing a diff, preparing a commit, or when asked to check code quality. Acts as a safety net that verifies all OUDS conventions are respected: token usage (no hardcoded values, no raw tokens), required mixins (border-radius, transition), accessibility (ARIA, focus-visible), multi-brand sync (tokens in all 3 brands), and file hygiene (no dist/, no auto-gen edits). Invoke proactively before any commit or PR submission.' --- # Code Review (OUDS Compliance) ## Purpose This skill is a safety net. It catches OUDS convention violations that other skills might have missed. Invoke it before committing or when reviewing diffs. --- ## Checklist For each changed file in the diff, verify: ### SCSS files (`**/*.scss`) - [ ] **No hardcoded values** — colors (`#xxx`), spacing (`16px`), dimensions must use tokens - [ ] **No raw tokens** — `$core-ouds-*`, `$core-orange-*`, `$core-sosh-*` never in component SCSS - [ ] **Mixins used** — `@include border-radius()` and `@include transition()` (never direct properties) - [ ] **`border: 0`** — not `border: none` - [ ] **No `lighten()`/`darken()`** — use token variant - [ ] **`!default` on variables** — every module-scope SCSS variable - [ ] **Colors via CSS custom props** — `var(--#{$prefix}color-*)` for dark mode - [ ] **`color-mode()` mixin** — not raw `[data-bs-theme]` or `prefers-color-scheme` - [ ] **`#{$ouds-root-selector}`** — not `:root` directly - [ ] **`// OUDS mod:`** comment on Bootstrap deviations ### JavaScript files (`js/src/**/*.js`) - [ ] **No semicolons** - [ ] **No trailing commas** - [ ] **Template literals** (not concatenation) - [ ] **`.js` extension** on imports - [ ] **No `console.*`** in `js/src/` - [ ] **`'use strict'`** at top - [ ] **Extends `BaseComponent`** (if it's a component) ### HTML/MDX files - [ ] **Semantic elements** — `