npx claudepluginhub k-kohey/axe --plugin axe-previewThis skill is limited to using the following tools:
Capture screenshots of all `#Preview` blocks across multiple SwiftUI files and generate a report.
Captures screenshots of SwiftUI #Preview blocks using axe CLI. Visualize View appearance, check layouts, and verify visual changes.
Builds and captures screenshots of SwiftUI previews from standalone files, Xcode projects, SPM packages, or running simulators for visual UI analysis.
Converts Claude HTML/CSS prototypes (via design URL or .tar.gz) to single self-contained SwiftUI View files in active Xcode workspaces. Generates code, builds, previews, and visually diffs for layout fidelity.
Share bugs, ideas, or general feedback.
Capture screenshots of all #Preview blocks across multiple SwiftUI files and generate a report.
If $ARGUMENTS specifies files, use those directly. $ARGUMENTS may contain only View names (e.g. ContentView) instead of file paths, so resolve each to a .swift path (e.g. TodoApp/ContentView.swift) using Glob.
If no arguments are provided, detect changed Swift files:
FILES=$(git diff --name-only --diff-filter=ACMR HEAD -- '*.swift')
if [ -z "$FILES" ]; then
echo "No changed Swift files found. Specify files explicitly."
exit 1
fi
axe preview report $FILES --format md --output <output-dir>
When $ARGUMENTS is provided, use $ARGUMENTS instead of $FILES:
axe preview report $ARGUMENTS --format md --output <output-dir>
This generates:
axe_swiftui_preview_report.md — Markdown report with embedded image referencesaxe_swiftui_preview_report_assets/*.png — Individual preview screenshotsRead the generated Markdown report with the Read tool. Then read each preview image in the assets directory to show them to the user.
Provide a summary of all captured previews, noting:
#Preview blocks found-j <n> to control parallel simulator count for faster capture--reuse-build to skip rebuilding if the project was recently built--format md with --format html for an interactive HTML report with lightboxRun this if the command fails because axe is not found::
curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh