Skill library

Agent skill UI design

Refactoring UI

Shape a web interface around a coherent visual direction.

  • UI design
  • Design systems

Install the skill

Installation method

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

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

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

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add s0xDk/refactoring-ui-skill --skill refactoring-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. One caption editing entry point, its real save behavior and access to the existing visual system and local preview.

View operation manual

What this skill helps with

  • Shape a web interface around a coherent visual direction.

Good for

  • Visual direction
Task
Build the smallest usable caption editor in an existing photo log
Requirements
One caption editing entry point, its real save behavior and access to the existing visual system and local preview.
Deliverable
A usable caption editor with a scoped before-and-after comparison of hierarchy and spacing.
Skill name
refactoring-ui

Start from the actual design decision

An underspecified request

Design a new application shell and a beautiful caption card.

The task is editing one caption. A new shell adds choices before the feature works.

A result you can check

  1. Define the smallest supported editing flow.
  2. Use the closest decisions from the established scale.
  3. Review it against the small feature brief.

Refactoring UI operation manual

A usable caption editor with a scoped before-and-after comparison of hierarchy and spacing.

One caption editing entry point, its real save behavior and access to the existing visual system and local preview.

  1. Prototype in grayscale on a narrow canvas

    Define the smallest supported editing flow.

    Prompt · Step 1
    Use s0xDk’s installed refactoring-ui Skill and read its SKILL.md first.
    
    Start with [caption editor] at roughly 400 CSS pixels. Work in grayscale before choosing accents. Lay out the existing caption, field guidance, save and cancel, and account for the error recovery supported by the current save behavior. Give one primary action visual priority.
  2. Build the first usable version

    Use the closest decisions from the established scale.

    Prompt · Step 2
    Use s0xDk’s installed refactoring-ui Skill and read its SKILL.md first.
    
    Implement only the caption editor and respect the existing state and submission contract. For spacing and type decisions, compare the nearby scale steps before choosing. Add accent color once the hierarchy reads without it, and avoid implying unsupported attachments or controls.
  3. Compare the actual editor at two widths

    Review it against the small feature brief.

    • The real editor remains usable in grayscale and contains only the controls supported by its implemented flow.
    Prompt · Step 3
    Use s0xDk’s installed refactoring-ui Skill and read its SKILL.md first.
    
    Render the editor near 400 CSS pixels and on desktop. Exercise a longer caption, cancel, save and a fixture failure. Confirm the chosen spacing and primary action still read. Report the concrete design change and any save-state behavior you could not exercise.

Find the relevant source guidance

Read the cited section in your installed Skill.

Build the smallest usable caption editor in an existing photo logSKILL.md
Command or reference
The procedure
Examples
The real editor remains usable in grayscale and contains only the controls supported by its implemented flow.

Troubleshooting

Do I have to introduce the Skill’s whole token scale?

For one feature, begin with the app’s established scale. Compare nearby values to choose a consistent spacing and type relationship.