ui-review-contract

Detects UI-related tasks via a four-signal gate to trigger design review in code review workflows.

6|2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Jerrylalala/compound-engineering --skill ui-review-contract-jerrylalala
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ui-review-contract
Source: https://github.com/Jerrylalala/compound-engineering/tree/main/plugins/compound-engineering/skills-custom/ui-review-contract
Command: npx skills add https://github.com/Jerrylalala/compound-engineering --skill ui-review-contract-jerrylalala

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code review workflows often miss visual and design issues because there is no consistent rule for deciding when a task actually involves UI work. This Skill defines a deterministic four-signal gate that automatically decides whether a design review layer should be added during ce:work or ce:review, preventing both missed UI reviews and unnecessary over-review of backend tasks. ## Core Features & Use Cases - Four-Signal Gate Detection: Evaluates Plan Signal (UI keywords in plan files), File Signal (frontend file changes like .tsx, .css, .vue), Artifact Signal (Figma URLs, screenshots, design specs), and Exclusion Signal (API design, schema, pure backend tasks) to decide if design review applies. - Combination-Based Triggering: Triggers design review only when signal pairs match (Plan+File, File+Artifact, or Plan+Artifact), with Exclusion Signal overriding when no frontend files changed. - Design Reviewer Dispatch: Automatically adds design-implementation-reviewer, figma-design-sync, and design-iterator agents to the Advisory Tier of ce:review, producing a UI review checklist covering spacing, design tokens, responsiveness, accessibility, and loading states. - Use Case: When a developer fixes a Button style (button.css changed, plan mentions "style fix"), the gate triggers Plan+File and automatically adds visual review to the review pipeline, while a SQL injection fix is correctly excluded. ## Quick Start Run ce:work or ce:review on a task and the four-signal gate will automatically determine whether design review agents should be included.

Frequently Asked Questions about ui-review-contract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically trigger design review in a code review workflow?▼

Use a four-signal gate that checks plan keywords, changed frontend files, and design artifact references. Design review triggers only when signal pairs match, such as Plan+File or File+Artifact, avoiding unnecessary reviews on backend-only tasks.

What signals indicate a task involves UI changes?▼

Three positive signals indicate UI work: Plan Signal (keywords like component, page, layout, style in plan files), File Signal (changes to .css, .tsx, .vue, components/ paths), and Artifact Signal (Figma URLs, screenshots, design specs).

Does the UI review gate work for backend or API tasks?▼

No, backend tasks are excluded by design. The Exclusion Signal matches terms like API design, database design, and schema, and when it triggers without a File Signal match, no design review is performed.

Can a single signal trigger design review on its own?▼

No, a single signal never triggers design review. At least two signals must combine, such as Plan+File, File+Artifact, or Plan+Artifact, which prevents over-review from ambiguous single-keyword matches.

What does the design review output include when triggered?▼

The review adds design findings to the Advisory Tier with fields like figma_url, screenshot, visual_diff, and severity capped at P2. It also generates a UI checklist covering spacing, design tokens, responsiveness, accessibility, and loading or error states.