inspect-view

inspect-view is a skill for Claude Code from k-kohey/axe. It costs 35 tokens per session (558 once invoked), scanned C, original, MIT.

A view-hierarchy inspector for a running iOS simulator app. A view hierarchy is the nested structure of the interface elements that make up a screen.

In plain words
What is it for?
Use it to inspect UIKit or SwiftUI views, find unexpected nesting and frame issues, and examine SwiftUI structure.
Why use it?
It helps explain layout problems that are difficult to diagnose from source code alone, such as hidden, overlapping, or incorrectly sized views.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the axe-preview plugin — 5 skills shipped together

Good fit Use it to inspect UIKit or SwiftUI views, find unexpected nesting and frame issues, and examine SwiftUI structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/k-kohey/axe/inspect-view
View source ↗ k-kohey/axe
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add k-kohey/axe --skill inspect-view
Clone the repo
git clone --depth 1 https://github.com/k-kohey/axe

Made for: Claude Code.

Or install axe-preview, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for inspect-view

README.md
[![agentmods](https://agentmods.dev/badge/skills/k-kohey/axe/inspect-view/github.svg)](https://agentmods.dev/skills/k-kohey/axe/inspect-view)
Your own site
<a href="https://agentmods.dev/skills/k-kohey/axe/inspect-view"><img src="https://agentmods.dev/badge/skills/k-kohey/axe/inspect-view/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for inspect-view

Your own site · 80×15
<a href="https://agentmods.dev/skills/k-kohey/axe/inspect-view"><img src="https://agentmods.dev/badge/skills/k-kohey/axe/inspect-view.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 558 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00558
Opus 5.5 $0.00014 $0.00223
Sonnet 5.5 $0.00007 $0.00112
Haiku 4.5 $0.00003 $0.00056

Measured 5d ago against content hash b9a50ebd1ed2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

inspect-view scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh
claude-plugin/skills/inspect-view/SKILL.md · 71 lines

What it actually says

View Hierarchy Inspector

Inspect the UIKit/SwiftUI view hierarchy of a running app to diagnose layout issues.

Steps

1. Identify the running app

If the user hasn't specified an app name, list running processes first:

axe ps

2. Get the view hierarchy

Pass all user arguments directly to axe view:

axe view $ARGUMENTS

Common invocation patterns:

  • Full tree: axe view --app MyApp
  • Frontmost only: axe view --app MyApp --frontmost
  • Limited depth: axe view --app MyApp --depth 3
  • Specific view detail: axe view 0x10150e5a0 --app MyApp --swiftui compact

Note: --swiftui (none/compact/full) is only valid in detail mode (when a 0x address is provided).

3. Analyze the hierarchy

Examine the view tree output (YAML format) and identify:

  • Unexpected nesting: Views wrapped in unnecessary containers
  • Frame issues: Zero-sized frames, overlapping views, off-screen elements
  • Constraint violations: Ambiguous layouts or conflicting constraints
  • Hidden views: Elements with isHidden: true or zero alpha
  • SwiftUI structure: Body composition and modifier chains (when using --swiftui)

4. Correlate with source code

If the user provides source file context, correlate the hierarchy nodes with the SwiftUI/UIKit source to pinpoint where issues originate.

5. Report findings

Present:

  1. A simplified view of the relevant hierarchy section
  2. Identified issues with their view addresses
  3. Suggested code changes to fix layout problems

Tips

  • Use --depth 3 to limit output for deeply nested hierarchies
  • Use --frontmost to focus on the visible view controller
  • In detail mode output, the SwiftUI tree can be large. Focus on the relevant section.

Prerequisites

Run this if the command fails because axe is not found::

curl -fsSL https://raw.githubusercontent.com/k-kohey/axe/main/install.sh | sh
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 71 lines · 0 tokens per session scan C b9a50ebd1ed2

Subscribe to this mod's changes

inspect-view is a skill published in the GitHub repository k-kohey/axe (99 stars, last pushed 22d ago), licensed MIT. It adds 35 tokens to every session and 558 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

inspect-view compared with skills from other repositories

inspect-view next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
inspect-viewk-kohey/axeSkill9922d agoMITC35Claude Code
workflow-auditTerryc21/workflow-auditSkill5917d agoApache-2.0A59Claude Code
ios-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0A64Claude Code
ttb-skill-bugfixtqtuan1201/TTBaseUIKitSkill233mo agoMITA34Claude Code, Codex
ax-performanceKasempiternal/axiom-v2Skill48mo agoMITA50Claude Code
swiftui-performancethiennc-tesoglobal/ios-skillsSkill31mo agononeA57Claude Code
ios-ettrace-performancethiennc-tesoglobal/ios-skillsSkill31mo agononeA69Claude Code