# Inspect view

> Inspect view is an open-source agent skill for developer tools. Lets your agent inspect a running iOS simulator app's UIKit and SwiftUI view hierarchy. 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/inspect-view
- **Repository:** https://github.com/k-kohey/axe
- **GitHub stars:** 102
- **License:** MIT
- **Skill name:** inspect-view
- **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 lets the agent pull the view hierarchy of an app running in the iOS simulator using the axe command line tool, with output in YAML. It can list running processes to find the target app, dump the full tree, limit depth, restrict output to the frontmost view controller, or drill into a single view by its memory address.

The workflow focuses on diagnosis. The agent looks for unexpected nesting, zero-sized or overlapping frames, off-screen elements, hidden or transparent views, and SwiftUI body and modifier structure when the SwiftUI detail mode is used. If source files are available, it can match hierarchy nodes against the code to locate the cause, then propose changes.

It expects the axe tool to be installed, and the skill includes an install command for cases where it is missing. Its allowed tools are limited to running axe commands, reading files and searching with grep.

## When your agent uses it

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

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

## Features

- **Process listing:** Lists running simulator processes so the agent can identify the target app.
- **Full and filtered trees:** Dumps the whole view tree, the frontmost controller only, or a depth-limited slice.
- **Single view detail:** Inspects one view by address, with optional SwiftUI detail at several levels.
- **Layout issue checks:** Flags zero-sized frames, overlaps, off-screen elements and hidden views.
- **Source correlation:** Matches hierarchy nodes to SwiftUI or UIKit source when files are provided.

## Good for

- Why is this button not showing up on the simulator screen?
- Find zero-sized or overlapping frames in my running app's layout
- Show me the frontmost view controller's hierarchy
- Check how a SwiftUI body and its modifiers are composed in a running view
- Trace a layout bug back to the code that creates the view

## 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/inspect-view`:

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

For one project only, put the folder in `.claude/skills/inspect-view` inside it instead.

### Codex

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

For one repository only, put the folder in `.agents/skills/inspect-view` inside it instead.

### Cursor

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

For one project only, put the folder in `.cursor/skills/inspect-view` 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/inspect-view
```

Or copy the folder to `~/.gemini/skills/inspect-view` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/inspect-view` 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/inspect-view` into your agent's skills folder as `inspect-view`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs the axe command line tool. If axe is not found, the skill gives an install command using a curl script from the axe repository.

### Does Inspect view change anything in my app?

The skill only runs axe view and axe ps to read the hierarchy, along with reading and searching files. It reports findings and suggests code changes rather than applying them.

### How do I limit a large hierarchy dump?

Use the depth option to cap the tree depth, or the frontmost option to show only the visible view controller.

### Which SwiftUI detail levels are available?

The swiftui option accepts none, compact or full, but only when a view address is given for detail mode.

### How do I install Inspect view in Claude Code?

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

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 Inspect view?

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

## Where this comes from

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

## Alternatives

- [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 swiftui interface](https://ai-powered.com/skills/build-swiftui-interface): Build swiftui interface is an open-source agent skill for developer tools.
- [Preview report](https://ai-powered.com/skills/preview-report): Preview report is an open-source agent skill for developer tools.
- [Preview](https://ai-powered.com/skills/preview): Preview 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.
- [Android UI](https://ai-powered.com/skills/android-ui): Android UI is an open-source agent skill for developer tools.
- [Improve architecture](https://ai-powered.com/skills/improve-architecture): Improve architecture is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/inspect-view
