# Preview report

> Preview report is an open-source agent skill for developer tools. Captures SwiftUI #Preview screenshots across files into one visual report. 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/preview-report
- **Repository:** https://github.com/k-kohey/axe
- **GitHub stars:** 102
- **License:** MIT
- **Skill name:** preview-report
- **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 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.

## 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/preview-report)
- [Asks for: Bash(axe *), Bash(cat *), Bash(git diff *), Read, Glob, Grep](https://github.com/k-kohey/axe/blob/HEAD/claude-plugin/skills/preview-report/SKILL.md)
- [License: MIT](https://github.com/k-kohey/axe/tree/HEAD/claude-plugin/skills/preview-report)

## Features

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

## 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/preview-report`:

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

### Codex

Copy the skill folder to `~/.agents/skills/preview-report` 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/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/preview-report` 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/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.

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

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

### VS Code

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

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

### Other agents

Get the folder:

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

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

## Alternatives

- [Preview](https://ai-powered.com/skills/preview): Preview is an open-source agent skill for developer tools.
- [UI review](https://ai-powered.com/skills/ui-review): UI review is an open-source agent skill for developer tools.
- [Fix UI](https://ai-powered.com/skills/fix-ui): Fix UI 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.
- [Build swiftui interface](https://ai-powered.com/skills/build-swiftui-interface): Build swiftui interface is an open-source agent skill for developer tools.
- [PR screenshots](https://ai-powered.com/skills/pr-screenshots-getsentry): PR screenshots is an open-source agent skill for developer tools.
- [Layout grid](https://ai-powered.com/skills/layout-grid): Layout grid is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/preview-report
