oil-ui README

项目的 README,来自 github.com/oil-oil/oil-ui。合并为一个 markdown 文件:README.md。

English · 中文 · 日本語 · 한국어 · Deutsch · Español

Oil UI

GitHub Stars Latest Release License: MIT skills.sh Live Gallery Blind Benchmark

Full-lifecycle UI/UX design skill for AI coding agents—covering 0→1 interface design, on-demand 3-direction comparison, screenshot recreation, isolated real-browser review, existing-codebase renovation, and DESIGN.md governance across Claude Code, Codex, Cursor, and any SKILL.md-compatible agent.

Browse 141 Examples → · Core Workflows · Quick Start (90s) · Walkthrough · Benchmark

Oil UI: one brief for Orvo (an AI website and app builder with human experts) turned into three genuinely distinct English landing pages — 01 Launch Garden, 02 Open Doorway, and 03 Side by Side


Core Workflows

Oil UI is not just a comparison generator—by default it recommends one clear visual direction and builds cleanly, switching workflows to match whatever UI task you hand it:

Workflow What it does Edition
0→1 interface design Recommends one clear visual direction by default and builds responsive websites, apps, dashboards, or components Open Source (multi-page rollout & workspace depth in Pro)
On-demand 3-direction comparison Generates an offline side-by-side HTML comparison page from one brief so you pick before full build Open Source
Screenshot & prototype recreation Rebuilds layouts faithfully from screenshots with mobile adaptation; supports interactive pacing & real-time 3D scenes Open Source (prototype-to-code mapping audit in Pro)
Isolated real-browser review & UX check Read-only visual scoring on desktop/mobile screenshots + lightweight UX walkthrough without touching files (gracefully skips browser steps when unavailable) Open Source (multi-round 9/10 polish & risk probes in Pro)
Existing-project UI & flow makeover Diagnoses live screens and renovates UI, flows, or new features from shared tokens/components without breaking business logic Pro (open source triages intent)
DESIGN.md governance & deep polish Consolidates conflicting design docs into one DESIGN.md, runs structured revision rounds, and polishes single components Pro (open source flags conflicts)
Companion specialized skills Free motion craft & frame-by-frame checker (oil-motion-effect); art-directed brand landing anchors (oil-art-landing) oil-motion-effect: Open Source · oil-art-landing: Pro

Quick Start

Explore online first (no install): Open any of the 141 interactive live examples (each includes the prompt and model used), or step through the interactive walkthrough.

Run locally (~90 seconds):

1. Install the skill

npx skills add oil-oil/oil-ui --skill oil-ui

Or paste this into an agent that installs skills:

Install oil-ui for me by running: npx skills add oil-oil/oil-ui --skill oil-ui
Target specific hosts (Claude Code, Cursor, Codex, DeepSeek Harness) or install manually
  • Install to a specific host (add -g for user-global instead of project-local):
    npx skills add oil-oil/oil-ui --skill oil-ui -a claude-code
    npx skills add oil-oil/oil-ui --skill oil-ui -a cursor
    npx skills add oil-oil/oil-ui --skill oil-ui -a codex
    
  • DeepSeek Harness: Install the native plugin dsh-oil-ui (dsh plugin --profile web add github:oil-oil/dsh-oil-ui), which bundles the open-source edition and detects local Oil UI Pro installations automatically.
  • Manual install: Clone oil-oil/oil-ui and copy SKILL.md, references/, assets/, and scripts/ into your host's skill directory (for example ~/.claude/skills/oil-ui or .cursor/skills/oil-ui).
  • Already have Oil UI Pro? Do not install the open-source edition alongside it—both match the same requests.

2. Send a prompt for any UI workflow

Share any brand assets, screenshots, or existing files you have. Intermediate drafts and screenshots stay in .oil-ui; final code and production assets are written directly to your project.


What the Open-Source Edition Does

1. Side-by-side 3-direction comparison

By default, Oil UI recommends one clear direction and confirms before building. When you ask to compare, it generates a portable offline HTML comparison page (scripts/build_explorer.py) where any two directions may share at most one trait across layout, typography, palette, and visual anchor—preventing color-swapped clones.

Built-in English style comparison page showing three genuinely distinct directions for Atelier Volders De Drievoet: 01 Grain and Tenon, 02 River Timber, and 03 The Wedged Oak, with Compare/Single and Desktop 1280/Mobile 390 controls

Candidates can be HTML files, images, or running localhost dev servers (with the current version placed first as a baseline). Toggle Desktop 1280 and Mobile 390, inspect any candidate at actual size, navigate with arrow keys, and click Select to copy a ready-to-paste choice back to your agent.

2. Real-browser inspection & lightweight UX walkthrough

  1. Name the product and pick a concrete north star. Before writing CSS, Oil UI identifies the product category, studies real peers, and anchors the design in a concrete material, setting, or visual system instead of generic adjectives.
  2. Match screen one to the user's task. Dashboards, tools, and catalogs open directly on real content and controls; only persuasion and brand pages get a choreographed opening layout.
  3. Inspect real desktop & mobile screens. After building, it opens desktop and mobile viewports (scripts/shoot.mjs), dispatches an isolated reviewer without build-history bias to score hierarchy and readability, and runs a lightweight UX walkthrough across primary flows.
  4. Finish with a subtraction pass. Strips decorative filler while keeping one or two memorable moments sharp.

Host capability & fallback: Visual screenshot scoring requires an agent with image viewing plus local Chrome/Chromium/Edge (Node.js 22+); interactive walkthroughs require a runnable preview. On hosts without vision or a local browser, Oil UI still delivers the direction, layout, and code cleanly and skips screenshot-dependent checks rather than fabricating results.

3. Real outputs across product forms

Nine real English interfaces built with Oil UI: Tide surf app, Fieldwork Type foundry, Lumen Studio dashboard, Vesper API billing console, Luma sleep app, Still audio player widget, Off Hours tea store, Dispatch API docs, and Roam trip planner

4. Included open-source motion skill: oil-motion-effect

Give AI-built interfaces tactile motion instead of sluggish default fades: presses respond immediately, popovers originate from their trigger, exits settle cleanly, and spring presets stay crisp without bouncy overshoot. Includes motion_check.mjs to flag boilerplate CSS/JS transitions and capture frame-by-frame contact sheets.

npx skills add oil-oil/oil-ui --full-depth --skill oil-motion-effect

(--full-depth is required because oil-motion-effect lives in skills/oil-motion-effect/ alongside the root oil-ui skill.)

Explore interactive motion demos & guide →

5. Benchmarks & playbooks


Open Source vs. Oil UI Pro

The open-source edition covers designing a new page from a blank start through visual review and a lightweight UX walkthrough. Upgrade to Oil UI Pro when you are renovating an existing codebase without breaking logic, governing a shared DESIGN.md across multi-page products, running optional multi-round polish loops, or building art-directed brand landing pages.

Capability Oil UI (Open Source) Oil UI Pro
Design direction: category framing, tone, distinct directions, comparison page ✓ ✓
Visual craft: hierarchy, typography, color, spacing, imagery, scroll storytelling ✓ ✓
Screenshot recreation & real-time 3D / pacing for interactive mini-games ✓ ✓
Companion open-source motion skill (oil-motion-effect) ✓ (manual install) ✓ (auto-installed)
Independent review 1-round visual score + lightweight UX walkthrough Blind review + optional multi-round 9/10 polish, overlap checks & autonomous UX risk probes
Usability depth: forms, states, dialogs/popovers, full desktop & mobile rules ✓
Dashboards & workspaces: object-led layouts held consistent across the app ✓
Existing codebases: separate paths for UI refresh, flow fix, and new features Identifies which path fits ✓
Prototype to production code: component mapping table & side-by-side audit Avoids raw copy-paste ✓
Design system governance: write DESIGN.md & consolidate conflicting rules Flags conflicts ✓
Multi-page sets, structured revision rounds & single-component deep polish ✓
19 coded card prototypes, spatial expansion containers & SVG/shader effects ✓
Included free companion oil-art-landing (desktop & mobile visual anchors) ✓

Included Free with Pro: oil-art-landing

Beyond product UI and workspaces, Oil UI Pro includes the standalone companion skill oil-art-landing at no extra cost: a library of desktop and mobile visual anchors (infrared film, polar glacier, X-ray darkroom, sunlit conservatory, fluted glass, cotton letterpress, terracotta dunes, optical ice, indigo shibori, and more) with a derivation grammar to compare 3 directions and hand off clean foreground-occlusion layers into live code. Explore 20 interactive live examples →

Oil Art Landing examples included with Oil UI Pro: Kova, Aperture, Helixa, Serre, Bryo, Quicksilver, Succin, and Duna desktop and mobile landing pages

Pricing & install: Oil UI Pro is a one-time purchase ($19.99 with lifetime updates, 100 image-generation credits, oil-art-landing included free, and oil-motion-effect auto-installed). See current details & checkout at ui.oiloil.org/en/pro, or let your agent guide sign-in, payment, and setup:

npx github:oil-oil/oil-cli install oil-ui-pro

Compatibility, Boundaries & Notes

Works well with

License

MIT

oil-ui (oil-oil/oil-ui)

正在搜索数据库…

这是什么?Oil UI 是面向 AI 编码智能体(如 Claude Code 或 Codex)的一个 Skill,教它们一套可复用的 UI 设计方法论:识别产品类别、确定视觉基调、探索多个真正不同的方向,再对照真实截图打磨出最优方案。
它是独立应用,还是安装到智能体里的东西?它是一个 Agent Skill,不是独立程序。你把它安装到支持 Skill 的编码智能体里,之后当你让智能体设计或审查 UI 时,它就会运用这套设计方法。
除了智能体本身还需要什么?命令行安装需要 Node.js 18+。自动检查更新还需要 Python 3(可通过 python3、python 或 Windows 上的 py -3 调用);如果没有 Python 3,只会收到一次性提醒,设计工作照常进行。
安装上有什么需要留意的坑吗?不要同时安装免费的 Oil UI 和 Oil UI Pro——两者都会尝试处理同类请求,会产生冲突。
Oil UI Pro 相比免费版多了什么?免费的 Skill 覆盖基调设定、方向探索、对比页面、基础的字体/配色/留白以及截图还原。Pro(69 元人民币一次性购买)增加了交互与状态设计、带视差效果的滚动叙事、深度组件打磨、发光和圆点纹样等 SVG/着色器特效,以及更严格的多轮独立审查流程。
和 Oil UI 一起提到的 draw-ui 和 oil-motion 是什么?它们是与 Oil UI 搭配使用的姊妹技能:draw-ui 在实现真正设计之前用图像模型生成参考图,oil-motion 则把生成的视频或帧序列转化为由滚动或拖拽驱动的网页动画。
内置的风格对比页面是怎么工作的?它并排展示多个设计候选——HTML 文件、图片或运行中的开发页面——可以在桌面和移动尺寸间切换、缩放到真实比例,并用方向键翻页。选中某个方案后会复制一段简短口令,你把它粘贴回智能体,它就会基于该选择继续。
使用前需要准备参考资料吗?不需要——只给一段普通的任务描述就可以开始。品牌素材、截图或现有项目也可以一并提供;只有在智能体搞不清你实际要交付什么时,它才会提问。
作者
oil-oil
大小
3.6 MB
星标
3.5K
时长
2个月
提交 · 90 天