/axe-preview:ui-review <file.swift> [--preview <title|index>]from axe-preview
Captures a SwiftUI preview screenshot and reviews UI/UX quality including layout, spacing, Apple HIG compliance, accessibility, and visual consistency.
Ships in axe-preview. 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.
None: SKILL.md is the whole skill.
Capture a preview screenshot and perform a comprehensive UI/UX review.
Resolve $ARGUMENTS to a .swift file path. $ARGUMENTS may contain only a View name (e.g. ContentView), so use Glob to find the actual path (e.g. TodoApp/ContentView.swift).
axe preview report <path/to/File.swift> --output <output.png>
axe preview report is preferred over oneshot axe preview because it waits for rendering to complete (--wait, default 10s) and retries on failure.
If the file has multiple #Preview blocks, --output file.png will fail (it requires exactly one preview). In that case:
--output to capture all, then review eachaxe preview --preview <title|index> (oneshot, no render wait)Read the captured image with the Read tool.
Read the SwiftUI source file (resolved in the previous step) to understand the implementation alongside the visual output.
Evaluate the preview image and source code against these criteria:
.foregroundStyle / .background) vs hardcoded values for Dark Mode support.font(.body) etc.).accessibilityLabel, .accessibilityHint)Present findings organized by severity:
For each finding, reference the specific line in the source code and suggest a concrete fix.
Run this if the command fails because axe is not found::
curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
swiftui, ui-review, ux-review, hig-compliance, accessibility-review
npx claudepluginhub k-kohey/axe --plugin axe-preview5 skills in this plugin
/fix-uiIteratively 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./inspect-viewInspect the view hierarchy of a running simulator app using axe view. Use when debugging layout issues, investigating view structure, or diagnosing UI problems in a running app./previewCapture a SwiftUI preview screenshot using axe CLI. Use when the user wants to see the current appearance of a SwiftUI View, check layout, or verify changes visually./preview-reportCapture previews of multiple SwiftUI files and generate a visual report. Use when the user wants to see all previews at once, create PR documentation, or batch-check UI across files.Other plugins' skills for the same job