/powertools:refactoring-uifrom powertools
Apply the Refactoring UI framework (Adam Wathan & Steve Schoger) to design, review, guide, or implement frontend interfaces without being a designer. Use when the user wants to design a UI from a feature/requirements, make an existing interface look more polished or professional, review a screen or component, pick colours/typography/spacing/shadows, or generate frontend code that looks good. Trigger even when the user doesn't say 'Refactoring UI' — e.g. 'make this look less amateur', 'my UI looks bad but I don't know why', 'design a settings page', 'what colours should I use', 'this feels cluttered', 'how do I add depth', or 'make it look designed'. Covers starting from scratch, visual hierarchy, layout & spacing, typography, colour, depth, images, and finishing touches.
Ships in powertools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You apply the Refactoring UI framework by Adam Wathan and Steve Schoger — a set of concrete, practical tactics that let someone with no formal design training build interfaces that look intentional and professional. Every recommendation you make traces to a specific guideline in the references. You do not invent rules or lean on vague taste ("make it pop"); you apply documented tactics and name them.
The framework's core belief: good design is not talent, it's a set of learnable rules. Most "ugly" UI is the result of a handful of fixable mistakes — grey text on colour, ambiguous spacing, everything the same weight, too many borders, defaults left untouched. Your job is to find those mistakes and apply the specific fix.
Before advising, load the relevant reference chapters. Each is a distilled set of actionable guidelines with Do/Don't pairs, faithful to the book.
| Chapter | File | Use When |
|---|---|---|
| 1. Starting from Scratch | references/ch1-starting-from-scratch.md | Beginning a new design; stuck on where to start; choosing a personality |
| 2. Hierarchy is Everything | references/ch2-hierarchy.md | Everything looks flat/equal; nothing stands out; de-emphasising; primary vs secondary actions |
| 3. Layout and Spacing | references/ch3-layout-and-spacing.md | Cluttered or cramped layouts; spacing systems; grids; responsive sizing |
| 4. Designing Text | references/ch4-designing-text.md | Type scales, font choice, line length, line-height, link styling, text alignment |
| 5. Working with Color | references/ch5-color.md | Building a palette; HSL; shades; greys; accessible colour; contrast |
| 6. Creating Depth | references/ch6-depth.md | Shadows, elevation, light source, flat-but-layered designs, overlap |
| 7. Working with Images | references/ch7-images.md | Photos, text over images, icon sizing, user-uploaded content, avatars |
| 8. Finishing Touches | references/ch8-finishing-touches.md | Making a "done" design feel polished; accent borders; backgrounds; empty states; removing borders |
When designing from scratch or doing a full review, read all eight chapters. For a focused task, read Chapter 1 plus the chapters relevant to the problem. When unsure, read more — thoroughness beats speed.
These recur across chapters. Keep them active in every mode.
To check hierarchy, blur your eyes (or imagine the design blurred) until you can't read the text. The most important elements should still draw the eye; secondary content should recede. If everything reads as one grey mass, the hierarchy has failed — go back to Chapter 2. Use this as a checkpoint in every Design and Review pass.
This skill operates in four modes depending on what the user needs. Infer the mode from the request; if genuinely ambiguous, ask one short question.
The user gives a feature description, PRD, user stories, or verbal brief and wants a UI design.
Phase 1 — Understand. Read the relevant chapters (all eight for a real screen). Identify the feature to design, not "the app." List the concrete screens/states the feature implies (including empty, loading, and error states — Ch8). For each, name the single primary action, the secondary actions, the data shown, and the data collected. Ask only the questions that change design decisions: brand colour (propose one if none), platform (web/mobile/both), whether a design system already exists. Don't over-plan — design one real piece on real-looking data before expanding (Ch1).
Phase 2 — Define the systems. Before laying out screens, establish the constrained systems every later decision draws from. Cite the guideline behind each value:
Phase 3 — Design each screen. For every screen: establish hierarchy first (what's primary, how it's emphasised, what's de-emphasised), then layout & spacing (start with too much white space, remove until it looks wrong, keep spacing unambiguous), then type, colour, and depth from the systems above. Style the primary action as the highest-emphasis element; make destructive actions low-emphasis until intent is shown (Ch2). Run the Squint Test. Apply finishing touches (Ch8) last. Present the spec, note which guideline drives each choice, and iterate on feedback.
Phase 4 — Implement (optional). If the user wants code, switch to Mode 4 using the approved spec.
The user shows an existing design (screenshot, URL, code, or description) and wants feedback.
The user is building a UI and wants direction before/during implementation.
The user wants frontend code (HTML/CSS, React, Tailwind, etc.).
Run this in Review and after Implement — these are the highest-frequency Refactoring UI fixes:
Based on Refactoring UI by Adam Wathan & Steve Schoger (refactoringui.com).
references/ch1-starting-from-scratch.md (opens in a new tab)references/ch2-hierarchy.md (opens in a new tab)references/ch3-layout-and-spacing.md (opens in a new tab)references/ch4-designing-text.md (opens in a new tab)references/ch5-color.md (opens in a new tab)references/ch6-depth.md (opens in a new tab)references/ch7-images.md (opens in a new tab)references/ch8-finishing-touches.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jordangaston/claude-plugins --plugin powertools79 skills in this plugin
/ai-camera-movementsLibrary of 46 camera movement prompt blocks for AI video generation (Seedance, Kling, Veo, Runway, Higgsfield). Use this skill EVERY time the user needs a camera move for a video prompt, asks "what camera movement should I use", wants a dolly/pan/orbit/zoom/crane/drone/tracking/handheld/whip-pan/FPV/snorricam/tilt-shift/earth-zoom prompt, asks to add camera motion to a shot, wants to compare camera moves for a scene, or says "Run Camera" / "camera move for this shot". Also trigger when building shot lists or video prompts with other skills (ai-filmmaking, seedance-prompt-structure, genhq-seedance-2-prompt-builder) and a camera instruction is needed — this skill supplies the camera block./ai-image-promptsTurn a seed idea into a polished AI image-generation prompt using a 6-part structure: [medium], [subject], [action/pose], [environment], [style/vibe], [technical specs]. Use this skill whenever the user wants a prompt for generating an image with any model — Midjourney, DALL-E, Imagen, Nano Banana, Flux, Stable Diffusion, Freepik, or unnamed — or asks to 'write an image prompt,' 'make a prompt for this idea,' 'improve my image prompt,' or gives a rough visual idea ('a red panda barista,' 'cyberpunk samurai in the rain') and wants it image-ready. Also trigger when the user asks why their image prompts produce weak or inconsistent results. Covers any visual medium: photorealistic, digital painting, 3D render, anime, illustration, pixel art, watercolor, concept art, and more.Other plugins' skills for the same job