From axe-preview
Inspects UIKit/SwiftUI view hierarchies in running iOS simulator apps using axe to diagnose layout issues like unexpected nesting, frame problems, hidden views, and constraint violations.
npx claudepluginhub k-kohey/axe --plugin axe-previewThis skill uses the workspace's default tool permissions.
Inspect the UIKit/SwiftUI view hierarchy of a running app to diagnose layout issues.
Debugs iOS app issues in simulator via structured loop: captures screenshots/logs with ios-simulator/XcodeBuildMCP, analyzes problems, proposes specific fixes, confirms with user, rebuilds, and verifies changes.
Debugs iOS Auto Layout constraint conflicts, ambiguous layouts, and positioning errors using symbolic breakpoints, view hierarchy, and error message analysis.
Captures SwiftUI preview screenshots and reviews UI/UX for layout, spacing, HIG compliance, accessibility, typography, color contrast, and consistency. Use for UI feedback or View design reviews.
Share bugs, ideas, or general feedback.
Inspect the UIKit/SwiftUI view hierarchy of a running app to diagnose layout issues.
If the user hasn't specified an app name, list running processes first:
axe ps
Pass all user arguments directly to axe view:
axe view $ARGUMENTS
Common invocation patterns:
axe view --app MyAppaxe view --app MyApp --frontmostaxe view --app MyApp --depth 3axe view 0x10150e5a0 --app MyApp --swiftui compactNote: --swiftui (none/compact/full) is only valid in detail mode (when a 0x address is provided).
Examine the view tree output (YAML format) and identify:
isHidden: true or zero alpha--swiftui)If the user provides source file context, correlate the hierarchy nodes with the SwiftUI/UIKit source to pinpoint where issues originate.
Present:
--depth 3 to limit output for deeply nested hierarchies--frontmost to focus on the visible view controllerRun this if the command fails because axe is not found::
curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh