ui-review-contract

ui-review-contract is a skill for Claude Code from Jerrylalala/compound-engineering. It costs 68 tokens per session (1,509 once invoked), scanned A, original, MIT.

A rule set that decides when a coding task needs a visual review of its user interface, such as pages, components, layouts, or styles.

In plain words
What is it for?
It detects interface-related plans, front-end files, screenshots, Figma links, and design specifications, then adds appropriate design checks to review.
Why use it?
It prevents visual checks from being skipped when both the task and its files or design references indicate interface work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the compound-engineering plugin — 78 skills, 4 commands, 2 hooks shipped together

Good fit It detects interface-related plans, front-end files, screenshots, Figma links, and design specifications, then adds appropriate design checks to review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jerrylalala/compound-engineering/ui-review-contract
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jerrylalala/compound-engineering --skill ui-review-contract
Clone the repo
git clone --depth 1 https://github.com/Jerrylalala/compound-engineering

Made for: Claude Code.

Or install compound-engineering, the plugin that ships this one along with the rest of its 78 skills, 4 commands, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-review-contract

README.md
[![agentmods](https://agentmods.dev/badge/skills/jerrylalala/compound-engineering/ui-review-contract/github.svg)](https://agentmods.dev/skills/jerrylalala/compound-engineering/ui-review-contract)
Your own site
<a href="https://agentmods.dev/skills/jerrylalala/compound-engineering/ui-review-contract"><img src="https://agentmods.dev/badge/skills/jerrylalala/compound-engineering/ui-review-contract/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-review-contract

Your own site · 80×15
<a href="https://agentmods.dev/skills/jerrylalala/compound-engineering/ui-review-contract"><img src="https://agentmods.dev/badge/skills/jerrylalala/compound-engineering/ui-review-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01509
Opus 5 $0.00034 $0.00754
Sonnet 5 $0.00014 $0.00302
Haiku 4.5 $0.00007 $0.00151

Measured 9d ago against content hash cd41fc28715e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ui-review-contract scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/compound-engineering/skills-custom/ui-review-contract/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI Review Contract — 四信号门触发协议

背景(Codex P9 → P4 提前)ce:work 已有 Figma Design Sync 步骤,但缺乏统一的触发协议。 本 overlay 收敛现有 UI 检测行为为可预期的四信号门规则。


四信号门定义

信号 类型 检测内容
Plan Signal 计划/需求 出现 UI 相关词:componentpagescreenlayoutstyledesignresponsivevisualUIUX界面页面样式组件
File Signal 改动文件 匹配:*.css*.scss*.tsx*.jsx*.vue*.htmlcomponents/pages/views/styles/design-tokens/
Artifact Signal 工件引用 出现:Figma URL、screenshotvisual diffdesign specmockup
Exclusion Signal 排除条件 匹配:API designdatabase designschema、纯 CLI/后端任务(无 File Signal 匹配时排除)

触发规则

满足以下任意一组组合才触发 Design Review(单个信号不触发):

组合 说明
Plan + File 计划提到 UI + 有前端文件改动
File + Artifact 有前端文件改动 + 有设计工件引用
Plan + Artifact 计划提到 UI + 有设计工件

Exclusion Signal 覆盖:如果 Exclusion Signal 触发且 File Signal 未触发,不做 Design Review。


触发后行为

当四信号门判断需要 Design Review 时,在 ce:review 的 Advisory Tier 中增加 UI 审查:

1. 加载设计审查代理(并行)

design-implementation-reviewer — 视觉对齐检查(如有 Figma URL)
figma-design-sync              — Figma 设计同步检查(如有 Figma URL)
design-iterator                — 迭代改进建议(N 轮截图-分析-改进循环)

2. 设计审查输出格式

使用 Review Contract 的 Advisory Tier 规则(autofix_class: advisory),额外字段:

# 设计 finding 额外字段
design_check:
  figma_url: "https://figma.com/..."    # 如有
  screenshot: "path/to/screenshot.png"  # 如有
  visual_diff: "描述视觉差异"
  severity: P2 | P3                     # 设计问题最高 P2(不 blocking)

3. 输出 Checklist

设计审查完成后生成 checklist(插入 review.md):

## UI Review Checklist

- [ ] 组件间距符合设计规范
- [ ] 颜色/字体与 design token 一致
- [ ] 响应式布局在移动端正常
- [ ] 无障碍性(aria labels、contrast ratio)
- [ ] 加载/空/错误状态已实现

与现有工作流集成

ce:work 中的集成点

在 ce:work Phase 3 质量检查阶段,已有 Figma Design Sync 步骤:

# 原有步骤(保留)
6. Figma Design Sync (if applicable)

# 本 overlay 增加
6.5 四信号门检查:是否需要 Design Review?
    └─ 是 → 加载 design-implementation-reviewer
    └─ 否 → 跳过

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 138 lines · 68 tokens per session scan A cd41fc28715e

Subscribe to this mod's changes

ui-review-contract is a skill published in the GitHub repository Jerrylalala/compound-engineering (5 stars, last pushed 3mo ago), licensed MIT. It adds 68 tokens to every session and 1,509 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 86 tokens