Skill library

Agent skill UI design

Oil UI

Shape a web interface around a coherent visual direction.

  • UI design

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add oil-oil/oil-ui --skill oil-ui --agent claude-code --yes

Check this file in your project.claude/skills/oil-ui/SKILL.md

Other ways to install
  • Choose an assistant interactively

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

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use a runnable local page or a synthetic local HTML file. Oil UI’s standalone capture requires Node.js 22 and Chrome, Chromium or Edge. Use the host’s Oil UI screenshot tool when provided.

View operation manual

What this skill helps with

  • Shape a web interface around a coherent visual direction.

Good for

  • Visual direction
Skill name
oil-ui
Scenario
Review a settings dialog on desktop and mobile
Deliverable
Named 1440×900 and 390×844 captures, a capture report and an impact-ranked read-only review.
Skill name
oil-ui
Repository
oil-oil/oil-ui

Define a component task with an observable result

A request with an unclear outcome

Redesign the dialog as part of a review request.

Changing the screen loses the baseline the user asked you to assess.

A workflow with observable results

  1. Define the review target
  2. Capture the real open state
  3. Rank evidence and recommendations

Oil UI operation manual

Capture the existing screen and one open dialog state, then report evidence and suggested fixes.

Replace the bracketed details with your own project and target.

  1. Define the review target

    Choose one interaction and two viewport sizes.

    Prompt · Step 1
    Use the `oil-ui` read-only review workflow for [local settings route]. Read `references/task-review.md` and the relevant viewport and tool rules. Describe the user’s goal, the default view and the open dialog state. Use only the files needed for that interaction and preserve the screen’s existing implementation.
  2. Capture the real open state

    Save the screenshots and report in the review folder.

    Prompt · Step 2
    Use `oil-ui` to capture [local page] on desktop and mobile. For a standalone checkout, run `node <installed-skill>/scripts/shoot.mjs <local-html> --size desktop,mobile --steps "opened: click .open" --out <review-folder>`, replacing the path and .open with the actual trigger selector. Open both PNGs and read report.json before filing findings.
  3. Rank evidence and recommendations

    Tie each recommendation to the actual view or state.

    • Both named PNGs exist and show the real open dialog.
    • Every finding has evidence and the product files were left intact.
    Prompt · Step 3
    Use `oil-ui` to review [named desktop and mobile captures]. For each actionable issue, cite the viewport, location and observed impact on reaching the action. Include an existing behavior worth preserving. State whether an independent reviewer inspected the images. Deliver impact-ranked findings and stop after the read-only report.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

Capture an actual interactionReference
Command or reference
references/tools.md
Examples
Use named --steps for click-driven states and --size desktop,mobile for both widths.

Oil UI troubleshooting

Why use --steps instead of --states?

Use --steps to interact with the page. Reserve --states for pages that already read the state query parameter.