Skip to content
Skill

Preview report

Captures SwiftUI #Preview screenshots across files into one visual report

Preview report 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 Preview report

This skill renders the #Preview blocks found in several SwiftUI files and assembles the results into a single report. By default it looks at Swift files changed in the current git diff, or it accepts explicit file paths or View names that it resolves to files with a file search.

The agent runs the axe command-line tool to capture each preview, writing a Markdown report with embedded screenshot references, or an interactive HTML report with a lightbox view. It then opens the report and the images so it can summarize how many previews were found, flag any that failed to capture, and note the visible UI state of each view.

The workflow needs the axe CLI installed, and the skill includes an install command to run if axe is missing. Options cover parallel simulator count and reusing a recent build to speed up capture.

When your agent uses it

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

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 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@axe

Or copy only this skill to ~/.claude/skills/preview-report:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k-kohey/axe.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/preview-report &&
cp -R "$tmp/claude-plugin/skills/preview-report" ~/.claude/skills/preview-report &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/preview-report inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/preview-report 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/preview-report &&
cp -R "$tmp/claude-plugin/skills/preview-report" ~/.agents/skills/preview-report &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/preview-report inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/preview-report 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/preview-report &&
cp -R "$tmp/claude-plugin/skills/preview-report" ~/.cursor/skills/preview-report &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/preview-report inside it instead.

Cursor docs on skills

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/preview-report

Or copy the folder to ~/.gemini/skills/preview-report yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/preview-report:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k-kohey/axe.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/preview-report &&
cp -R "$tmp/claude-plugin/skills/preview-report" ~/.copilot/skills/preview-report &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/preview-report inside it instead.

VS Code docs on skills

Get the folder:

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

Then copy axe/claude-plugin/skills/preview-report into your agent's skills folder as preview-report. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Batch preview capture
Renders every #Preview block across several SwiftUI files in one run.
Changed-file detection
Finds modified Swift files from the git diff when no files are given.
Markdown and HTML reports
Produces a Markdown report with images or an interactive HTML report.
Visual summary
Reviews the screenshots and reports failed captures and UI observations.
Parallel capture options
Lets the user set simulator parallelism and reuse existing builds.

Good for

  • Review all SwiftUI previews changed on my branch
  • Create visual documentation for a pull request
  • Check the UI of several views at once
  • Build a visual catalog of my SwiftUI components

Preview report FAQ

What does Preview report need to run?

It needs the axe command-line tool. If axe is not found, the skill suggests installing it with a provided curl script.

Which files does Preview report check if I give no arguments?

It runs git diff against HEAD and picks up added, copied, modified or renamed Swift files, and stops with a message if none are found.

What output does Preview report produce?

A Markdown report named axe_swiftui_preview_report.md plus PNG screenshots in an assets folder; an HTML format is also available.

Can I pass view names instead of file paths?

Yes, View names such as ContentView are resolved to matching .swift paths using a file search.

How do I install Preview report in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/preview-report to use it in all your projects, or to .claude/skills/preview-report 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 Preview report 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 Preview report?

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 Preview report?

The closest alternatives to Preview report are Preview, UI review, Fix UI, Build and verify and Inspect view.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from k-kohey/axe

  1. Iteratively adjusts a SwiftUI view until its preview matches a design image

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

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

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

    • Open source
    • 102 GitHub stars
    • Developer tools