# Fix UI

> Fix UI is an open-source agent skill for developer tools. Iteratively adjusts a SwiftUI view until its preview matches a design image. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/k-kohey/axe/tree/main/claude-plugin/skills/fix-ui
- **Repository:** https://github.com/k-kohey/axe
- **GitHub stars:** 102
- **License:** MIT
- **Skill name:** fix-ui
- **Collection:** https://github.com/k-kohey/axe
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/k-kohey/axe/tree/HEAD/claude-plugin/skills/fix-ui)
- [Asks for: Bash(axe *), Bash(cat *), Read, Edit, Glob, Grep](https://github.com/k-kohey/axe/blob/HEAD/claude-plugin/skills/fix-ui/SKILL.md)
- [License: MIT](https://github.com/k-kohey/axe/tree/HEAD/claude-plugin/skills/fix-ui)

## Features

- **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

## Install

### Claude Code

This skill ships in the `axe-preview` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add k-kohey/axe
/plugin install axe-preview@axe
```

Or copy only this skill to `~/.claude/skills/fix-ui`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/fix-ui` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/fix-ui` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/k-kohey/axe.git --path claude-plugin/skills/fix-ui
```

Or copy the folder to `~/.gemini/skills/fix-ui` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/fix-ui`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/k-kohey/axe.git
```

Then 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.

## 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.

## Alternatives

- [UI review](https://ai-powered.com/skills/ui-review): UI review is an open-source agent skill for developer tools.
- [Preview report](https://ai-powered.com/skills/preview-report): Preview report is an open-source agent skill for developer tools.
- [Preview](https://ai-powered.com/skills/preview): Preview is an open-source agent skill for developer tools.
- [Build swiftui interface](https://ai-powered.com/skills/build-swiftui-interface): Build swiftui interface is an open-source agent skill for developer tools.
- [Design kit](https://ai-powered.com/skills/design-kit): Design kit is an open-source agent skill for design and media.
- [Mac design](https://ai-powered.com/skills/mac-design): Mac design is an open-source agent skill for developer tools.
- [Build and verify](https://ai-powered.com/skills/build-and-verify): Build and verify is an open-source agent skill for developer tools.
- [Inspect view](https://ai-powered.com/skills/inspect-view): Inspect view is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/fix-ui
