/productos:develop-design-reviewfrom productos
Reviews uncommitted UI changes against docs/DESIGN.md, classifying each as Inconsistency, New Pattern, or Already-Aligned. Writes a timestamped report with fix list, promotion checklist, and paste-ready fix prompt.
Ships in productos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill runs in the app repo — the repository that contains productos/ — and produces a design system adherence review of uncommitted UI changes against docs/DESIGN.md. Each run writes a new timestamped report at docs/design-reviews/YYYY-MM-DD-HHMM-design-review.md (never overwriting prior reviews) with three buckets — Inconsistencies (changes that violate documented tokens or rules), New Patterns (changes that introduce something not yet in the design system), and Already-Aligned (changes that use tokens correctly) — plus a prioritized fix list, a promotion checklist for DESIGN.md, and a paste-ready fix prompt the member can copy into their coding agent to fix every issue in one pass.
Shapes: for products with screens — web-app, mobile-app, desktop-app, browser-extension, website — and for any landing page, settings screen, or portal another shape ships. Shapes without a UI have nothing for it to review.
Read inputs from docs/ at the app repo root.
git diff main...HEAD for a branch) or coming back after they've made changes.docs/DESIGN.md — required. The Google-format design system from design-design-system (or design-design-system-from-code): YAML frontmatter tokens plus the markdown body's sections (after ## Product Identity when ProductOS wrote one). If it's missing or substantively empty, stop and tell the member to run design-design-system first. Don't improvise a review against an undocumented design system.docs/DESIGN.md → ## Product Identity — optional (absent without ProductOS). Supplies tone of voice for any copy critique, and the contrarian belief + visual style for judging whether a new pattern feels right for the brand. If absent, review strictly at token level.docs/COPY.md — optional. When present, check new or changed user-facing strings against its review rubric — lexicon, mechanical rules, banned words — and report violations as Inconsistencies alongside the token findings.docs/DEFINE.md — optional. The product type (from the Summary and Offer) contextualizes the review — a marketplace listing card has different conventions than a B2B dashboard card, even with the same tokens.A senior design systems engineer doing a pre-commit review — surfacing every drift between code and the documented system, not gatekeeping.
src/components/CTAButton.tsx:18 uses backgroundColor: '#2563EB'; DESIGN.md defines {colors.primary} as #1A4D8C. Either replace the hex with the token, or — if #2563EB is intentional — propose it as a new primary-bright token."{colors.on-surface} (#1A1A1A), not the inline #2D2D2D."docs/DESIGN.md and parse the token catalogueRead the file in full before looking at the diff. Parse the YAML frontmatter into a catalogue: every color token and hex; every type level (fontFamily, fontSize, fontWeight, lineHeight, letterSpacing); every radius level; every spacing token; every component definition and the tokens it references. Read the markdown body for rules that aren't tokens — the elevation model (shadows / borders / glass / tonal / flat), the shape philosophy, the Do's and Don'ts, and prose constraints in Brand & Style or Components.
State the catalogue back in one compact paragraph: "Reviewing against docs/DESIGN.md — [N] color tokens, [N] type levels, [N] radius levels, [N] spacing tokens, [N] component definitions. Elevation model: [hairlines / shadows / glass / tonal / flat]. Excluded fonts (per identity): [list]. Confirm before I scan the diff."
If the file is malformed (YAML doesn't parse, sections missing), surface the specific problem and ask whether to proceed with a partial catalogue or fix the file first. Don't silently work around a malformed source of truth.
Run git status --porcelain, git diff HEAD (working tree + index), and git ls-files --others --exclude-standard. Untracked files never appear in git diff, and new component files are where most New Patterns live — read each one in full. Default scope: every modified, added, staged, or untracked file.
Filter to UI-relevant files — components, stylesheets, native views/layouts, Tailwind config, token/theme files, static markup. Skip server routes without JSX, schemas, migrations, fixtures, lockfiles, tests with no visual assertions, and generated build output. If the diff is entirely non-UI, say so — "No UI-relevant files in the diff. Nothing to review against the design system." — and stop. Don't manufacture findings.
If the diff is large (>30 changed files, an auto-formatter pass, a dependency upgrade), ask the member to scope down first: "Detected [N] changed files. Want me to review all of them, or scope to a folder (e.g., src/components/) or to a single feature?" A 5000-line review is worse than no review.
State the scope back: "Scope: [N] UI files across [folders]. About to scan for design system adherence — confirm."
Walk the diff hunk by hunk. Inspect every line that touches a visual property — color, typography, spacing, radius, elevation — in whatever form the codebase expresses it (literals, CSS variables, Tailwind classes, inline styles, native color/font calls). Also inspect component shape: a newly introduced component type or variant (a new <Dialog> variant, <Card> shape, <Button> size) may be a New Pattern even if every token it uses is correct, because DESIGN.md's Components section doesn't document it yet.
Classify each hit:
A hardcoded value where a documented token exists, a documented token applied to a role the system forbids, or a violation of a documented rule (Do's and Don'ts, Brand & Style). Examples:
backgroundColor: '#1A4D8C' where {colors.primary} exists with that exact hex.font-family: 'Inter' where the system uses Public Sans (and Inter is in the exclusion list).border-radius: 14px where the system documents only none / 4px / 8px / 12px / 16px / full.box-shadow: 0 4px 12px rgba(0,0,0,0.15) in a system documented as hairline-borders-only.{colors.secondary} when the Do's and Don'ts say primary CTAs always use {colors.primary}.Capture for each: (1) location — file path + line number + hunk header; (2) the offending value as it appears in the diff; (3) the documented alternative — exact token reference or rule; (4) severity — P0 (breaks brand or accessibility: wrong primary CTA color, contrast failure, banned font), P1 (wrong token on a high-visibility surface), P2 (wrong token on a low-visibility surface, or a debatable case), P3 (cosmetic, e.g., 14px vs 12px radius on a single tooltip); (5) the fix — the literal replacement.
A visual decision not documented in DESIGN.md but not clearly wrong — a new color shade, type level, component variant, motion curve, or spacing value. The right resolution may be to promote it into the system rather than retro-fit it. Examples: a colors.success-bright: #2DC07A used as a confirmation-toast accent; a 12px body-xs level for dense tables; a new <Banner> with its own padding/radius/elevation; a motion.easing.spring curve where the system only documents ease-in-out. If DESIGN.md is partial (say, no motion or icon section), classify changes in the undocumented area as New Patterns even when they look reasonable — the missing documentation is the gap to surface.
Capture for each: (1) location(s); (2) the new value(s); (3) proposed token name and YAML placement (e.g., typography.body-xs, components.banner); (4) proposed DESIGN.md prose — one or two sentences on the role and when to use it; (5) verdict — Promote (fills a real gap), Refactor (the gap is real but the value is wrong — propose a different one), or Defer (single use, leave inline and revisit if it recurs).
Uses a documented token correctly. No action — capture a one-line count by file so the report credits the work without padding.
Pre-existing issues in unchanged code are out of scope. Mention one only when it's adjacent to a current finding ("the line above this one also hardcodes the color — fix together or leave for a separate pass?"); if the member wants a whole-codebase audit, suggest a separate, explicitly scoped run.
border-radius: 14px is an Inconsistency if it clearly should be the documented 12px; a New Pattern if there's a case for a token between md (12) and lg (16). Lean Inconsistency unless the diff shows the value used systematically — one-off use is rarely worth a token.State the reconciled summary: "Found [N] Inconsistencies (P0: [n], P1: [n], P2: [n], P3: [n]) across [N] files, [N] New Patterns proposed for promotion, and [M] aligned changes. Want me to walk through them before I write the report, or write it now and you'll review the file?" Default to writing the report unless the member wants a guided walkthrough.
Get the timestamp programmatically — date "+%Y-%m-%d-%H%M" — never hardcode or guess it. Create the folder if needed (mkdir -p docs/design-reviews). Write to docs/design-reviews/YYYY-MM-DD-HHMM-design-review.md; if that filename already exists, append -2, -3, … until it's unique. Never overwrite a prior review.
Read templates/design-review-report.md for the report structure and templates/fix-prompt.md for the paste-ready prompt that closes the Inconsistencies section. Fill both with real values — every bracket and <placeholder> replaced. Reference DESIGN.md by section and token name; don't copy its prose into the review. Tight bullets, no meta-commentary or re-pitching of the design system.
Re-read the written file and check:
docs/design-reviews/YYYY-MM-DD-HHMM-design-review.md with the real current date and time; no prior review overwritten.<placeholder> text.Deliver the file path and a short recap — one line for scope (files scanned, branch), one line for counts (P0/P1/P2/P3, N new patterns), the top three to-dos, and: "Scroll to 'Paste-ready fix prompt for your coding agent' to action everything in one pass."
Next step: paste the fix prompt into the coding agent, work the Promotion checklist into docs/DESIGN.md, then re-run this skill before committing UI work — promoted patterns should now classify as Already-aligned.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-review, design-system, ui-consistency, design-adherence
45 skills in this plugin
/build-loopBuilds plan tasks or a feature prompt in Claude Code, Codex, or Cursor through a build → test → fix loop per task, then one review pass with the tool's own /review (plus a security pass for sensitive surfaces) once the work is finished. Use when the user says "run the build loop", "build the next task", "continue the plan", or asks to implement work from a plan file or a direct prompt. Works in any repo. Not for running a whole roadmap in one go — use develop-build./continuePicks up the member's ProductOS work where they left off — reads setup, any open challenge, the programme plan, docs/PATH.md, and docs/, tells the member in plain words where they are and what the next step does for them, then hands over to the skill that owns it: setup, a challenge check-in, product-refactor, or a phase orchestrator. Use when the member starts or returns to a session and says "continue", "keep going", "what's next", "where was I", or "pick up where I left off". Not for carrying on a task already under way in this conversation — just keep going with it./define-business-strategyWorks out the economics behind the price — cost per customer and gross margin, unfair advantage, north star metric — and writes the optional Business Strategy section of docs/DEFINE.md. Use when the money questions get real (before paid acquisition, at first revenue, when an investor asks): "what are my margins", "unit economics", "what does each customer cost me", "what's my north star metric". Requires the Offer and Pricing sections. Not for choosing the business model or price — use define-pricing.npx claudepluginhub buildgreatproducts/product-os-public --plugin productosOther plugins' skills for the same job