
Fix UI
Iteratively adjusts a SwiftUI view until its preview matches a design image
Fix UI is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 102
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Fix UI
This skill guides an agent through a capture-compare-edit loop for SwiftUI. The agent reads a target design image and the View's source file, renders the current preview with the axe command-line tool, and compares layout, spacing, fonts, colors, corner radius and image sizing against the design. It then makes small edits to the Swift file and re-renders, stopping after at most five passes.
The workflow handles a few practical cases: a View name can be resolved to its file path with Glob, files with several #Preview blocks can be targeted by title or index, and re-renders reuse the existing build when only the View source has changed. Missing assets or fonts and platform limits are reported back rather than worked around.
It expects a SwiftUI project on macOS with axe installed, plus the design image as a file path. The skill is built for Claude Code and its allowed tools are limited to axe, cat, Read, Edit, Glob and Grep.
When your agent uses it
Iteratively fix a SwiftUI View to match a design image. Captures previews with axe, compares against the target design, and modifies the code until the UI matches. Use when the user provides a design image and wants the View adjusted to match it.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Bash(axe *), Bash(cat *), Read, Edit, Glob, Grep(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (3 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the axe-preview plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add k-kohey/axe
/plugin install axe-preview@axeOr copy only this skill to ~/.claude/skills/fix-ui:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k-kohey/axe.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fix-ui &&
cp -R "$tmp/claude-plugin/skills/fix-ui" ~/.claude/skills/fix-ui &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/fix-ui inside it instead.
Copy the skill folder to ~/.agents/skills/fix-ui to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k-kohey/axe.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fix-ui &&
cp -R "$tmp/claude-plugin/skills/fix-ui" ~/.agents/skills/fix-ui &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/fix-ui inside it instead.
Copy the skill folder to ~/.cursor/skills/fix-ui to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k-kohey/axe.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fix-ui &&
cp -R "$tmp/claude-plugin/skills/fix-ui" ~/.cursor/skills/fix-ui &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/fix-ui inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/k-kohey/axe.git --path claude-plugin/skills/fix-uiOr copy the folder to ~/.gemini/skills/fix-ui yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/fix-ui:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k-kohey/axe.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fix-ui &&
cp -R "$tmp/claude-plugin/skills/fix-ui" ~/.copilot/skills/fix-ui &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/fix-ui inside it instead.
Get the folder:
git clone --depth 1 https://github.com/k-kohey/axe.gitThen copy axe/claude-plugin/skills/fix-ui into your agent's skills folder as fix-ui. Agents that support SKILL.md read one folder per skill.
What it does
- Preview capture loop
- Renders the SwiftUI preview with axe and reviews the resulting image on each pass.
- Design comparison checklist
- Checks layout, spacing, typography, colors, corner radius and image sizing against the target.
- Targeted source edits
- Applies small, modifier-focused changes to the Swift file, prioritizing the most visible differences.
- Multi-preview support
- Selects the correct #Preview block by title or index when a file contains several.
- Build reuse on re-render
- Skips rebuilding on later passes when only the View source has changed.
- Limitations report
- Lists missing assets, fonts or platform constraints that prevent an exact match.
Good for
- Match a SwiftUI screen to a Figma export or mockup image
- Adjust padding and font weights so a view lines up with a design
- Fix colors and corner radii in a SwiftUI card to match a reference
- Find which SwiftUI modifiers differ from a design and update them
Fix UI FAQ
What does the skill need to run?
It needs the axe command-line tool installed, a SwiftUI source file with a preview, and a design image path. The install script is provided in the skill if axe is missing.
What does Fix UI change in my project?
It edits the SwiftUI source file you pass in, using targeted modifier changes, and reports the final preview and a summary of edits.
How many iterations does Fix UI run?
It stops after at most five compare-and-edit iterations and reports any remaining differences.
How do I install Fix UI in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/fix-ui to use it in all your projects, or to .claude/skills/fix-ui in one project. Or install the axe-preview plugin, which includes it: /plugin marketplace add k-kohey/axe, then /plugin install axe-preview@axe.
Does Fix UI run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Fix UI?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Fix UI?
The closest alternatives to Fix UI are UI review, Preview report, Preview, Build swiftui interface and Design kit.
Where this comes from
- Description: from the skill's own SKILL.md.
More from k-kohey/axe

Lets your agent inspect a running iOS simulator app's UIKit and SwiftUI view hierarchy
- Open source
- 102 GitHub stars
- Developer tools

Captures screenshots of SwiftUI #Preview blocks so the agent can see the view
- Open source
- 102 GitHub stars
- Developer tools

Captures SwiftUI #Preview screenshots across files into one visual report
- Open source
- 102 GitHub stars
- Developer tools

Captures a SwiftUI preview and reviews its layout, HIG fit and accessibility
- Open source
- 102 GitHub stars
- Developer tools


