verify-design
Diff current UI against Paper design refs with Playwright runtime fidelity checks, then fix mismatches in place. Run before (and during) UI work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diff current UI against Paper design refs with Playwright runtime fidelity checks, then fix mismatches in place. Run before (and during) UI work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute a roadmap end-to-end and AUTONOMOUSLY — phase by phase, task by task: develop in a worktree, review in a fresh context, fix findings, then merge to main. No human gate by default. Use when the user says 'run the roadmap', 'autopilot this', 'ship phases 1-3', 'work through docs/roadmap/', wants unattended multi-phase delivery landed on main, or hands over a roadmap file expecting the whole thing built, reviewed, and merged. Use --supervised to restore per-phase human checkpoints.
Create distinctive, production-grade UI designs in Paper.design MCP — full design system + brand guide + all screens, or a single flow. Use when the user asks to mock up, wireframe, design screens, produce UI, build a visual prototype, or mentions Paper / Paper.design / design system / brand guide / screen layouts for the project. Commits to a bold aesthetic direction (editorial, brutalist, luxury, retro-futuristic, etc.) rather than defaulting to generic AI-SaaS looks. Grounds every design decision in the PRD and architecture, not guesswork.
Single-milestone/phase delivery pipeline — implements every open issue in one GitHub milestone (or one roadmap phase) as parallel, conflict-free PRs, each pre-reviewed by a fresh-context reviewer agent. Stops with all PRs open for human merge. Use when the user says 'run factory on milestone N', 'ship phase 003_auth', 'open PRs for the auth milestone', or '/factory --milestone <N>'. For end-to-end multi-phase roadmap execution, use /autopilot instead.
Implement a feature end-to-end from a spec file at docs/specs/<name>.md — code it and verify it. Stops with a working tree the user can review. Supports --commit (auto-commit, output only log) and --pr (auto-commit + open PR, output only log + URL). Use when the user says 'implement the auth spec', 'build feature X', 'code up the Y spec', 'work through docs/specs/<name>.md', or points at a spec and asks to execute it.
Use this skill to generate well-branded interfaces and assets for Rlabs, either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.
File GitHub milestones + issues for a roadmap, a phase, or a spec — one milestone per phase, one issue per task/slice — using the trunk-based patterns from /spec, /roadmap, and /feature. Use when the user says 'create the GitHub issues', 'file the issues for this roadmap', 'open issues for this spec', 'make the milestones', or points at docs/roadmap/*.md or docs/specs/*.md and asks to hand them to GitHub.
| name | verify-design |
| description | Diff current UI against Paper design refs with Playwright runtime fidelity checks, then fix mismatches in place. Run before (and during) UI work. |
Verify current UI against Paper design references for: $ARGUMENTS
This skill does a fix-in-place fidelity pass against Paper design references. It:
The user does NOT want a pure report. They want the issues found AND resolved in the same session. Only stop to ask if a mismatch looks intentional or the fix would change scope.
/verify-design owner — check that page/verify-design Hero or web/components/landing/Hero.tsxArguments may include free-form notes from the user (specific bugs, reference screenshots, which page to use as a style anchor). Treat those as priority work items.
Priority:
docs/design/ (page-level docs, artboard exports, DESIGN_SYSTEM.md)specs/**/plan.md / tasks.md / spec.md — extract Paper artboard IDs (e.g. 4P-0, 96-0, 15D-0, 17M-0)docs/specs/ / docs/roadmap/ cross-refsBuild a scope table (Page → Paper artboard (desktop) → Paper artboard (mobile) → source file). If both a desktop and mobile artboard exist (e.g. 96-0 + 17M-0), check both.
If no design docs exist at all, stop and tell the user to run /design first.
Read docs/design/DESIGN_SYSTEM.md, web/app/globals.css, and web/tailwind.config.*. Record palette, type scale, spacing, radii, shadows. Flag hardcoded values in source that duplicate a token.
Use the Paper MCP:
get_basic_info once per sessionget_screenshot on each artboard in scope (desktop + mobile)get_jsx / get_computed_styles on key nodes — never read sizes/colors from screenshots aloneRead every file the target page touches (page, components, global CSS, relevant UI primitives). Don't guess.
Ensure the dev server is running (curl http://localhost:3000). If it isn't, start it (pnpm --filter web dev in background) before using Playwright.
For each in-scope page, drive a real browser:
browser_resize to desktop (1440x900) → browser_navigate → browser_take_screenshot (full page)browser_resize to mobile (390x844) → same navigation → full-page screenshotbrowser_console_messages (level: "error") — any runtime error is a HIGH findingprefers-reduced-motion if motion is in scopeRecord findings in memory (not a file) — severity guide below. Track hard failures (console errors, overflow clipping, inoperable controls) as HIGH.
Apply targeted edits. Rules:
After edits:
pnpm -w lint, pnpm -w typecheck, pnpm -w test or the project's equivalents).| Severity | Examples |
|---|---|
| HIGH | Wrong font family, wrong primary color, missing page section, broken responsive layout, runtime console errors, inoperable interactive components (menu/drawer can't close), content overflow / clipping visible at a supported viewport |
| MEDIUM | Font size off by >2 steps, wrong spacing in a primary content area, missing loading/error state, token replaced by hardcoded value |
| LOW | ≤2px spacing drift, slightly off shadow, minor border-radius mismatch |
This skill is a single-pass agent: one invocation reviews + fixes + re-verifies. Do not split into a separate "review" and "fix" cycle — that duplicates the Paper MCP + Playwright load and doubles spend for the same result.
Writer/reviewer separation (from global workflow rules) applies to code-review skills. /verify-design is a fidelity-fix skill, not a reviewer — it is authored to mutate code. Treating its output as a review-only gate is a misuse.
Model guidance for agents that dispatch this skill to sub-agents:
| Dispatch mode | Model | Rationale |
|---|---|---|
| First-pass on a new/changed PR | Sonnet | Analytical comparison + targeted edits; Opus is overkill for rule-matching work |
| Re-verify against a prior delta list | Haiku | Checklist walking on a known set of items |
| Design + implementation from scratch in one shot | Opus | Wider synthesis, ambiguous token choice, layout decisions |
If invoked directly by the user (not via a parent agent), run in the current session at whatever model the user has chosen — do not downgrade for cost.