Skip to content
Skill

Inspect view

Lets your agent inspect a running iOS simulator app's UIKit and SwiftUI view hierarchy

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

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.

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

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/inspect-view 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/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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/inspect-view 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/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.

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/inspect-view

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

Gemini CLI docs on skills

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

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.

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/inspect-view into your agent's skills folder as inspect-view. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

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

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

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. Captures screenshots of SwiftUI #Preview blocks so the agent can see the view

    • Open source
    • 102 GitHub stars
    • Developer tools
  3. Captures SwiftUI #Preview screenshots across files into one visual report

    • 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