k-kohey/axe/inspect-view
Claude Code and agent skill by k-kohey/axe
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install k-kohey/axe/inspect-viewSKILL.md
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:
2. Get the view hierarchy
Pass all user arguments directly to axe view:
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: trueor 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:
- A simplified view of the relevant hierarchy section
- Identified issues with their view addresses
- Suggested code changes to fix layout problems
Tips
- Use
--depth 3to limit output for deeply nested hierarchies - Use
--frontmostto 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::
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude-plugin/skills/inspect-view/SKILL.md
Popularity
- Repository stars
- 67
- Repository forks
- 4
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/k-kohey/axe/inspect-view)